Amazon Athena JDBC Driver Wrapper Supporting the 'metis' Package
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

91 lignes
2.6 KiB

il y a 7 ans
il y a 5 ans
[![Travis-CI Build
Status](https://travis-ci.org/hrbrmstr/metis-jars.svg?branch=master)](https://travis-ci.org/hrbrmstr/metis-jars)
[![Coverage
Status](https://codecov.io/gh/hrbrmstr/metis-jars/branch/master/graph/badge.svg)](https://codecov.io/gh/hrbrmstr/metis-jars)
[![CRAN\_Status\_Badge](http://www.r-pkg.org/badges/version/metis-jars)](https://cran.r-project.org/package=metis.jars)
il y a 5 ans
il y a 5 ans
# metis.jars
il y a 6 ans
il y a 5 ans
Amazon Athena JDBC Driver Wrapper Supporting the ‘metis’ Package
il y a 7 ans
il y a 6 ans
## Description
il y a 7 ans
il y a 5 ans
Contents of the Amazon Athena JDBC Driver
<https://docs.aws.amazon.com/athena/latest/ug/connect-with-jdbc.html>
provided to support functions in the ‘metis’ package. Version number
reflects the version number of the included ‘JAR’ file.
il y a 7 ans
il y a 5 ans
## IMPORTANT
il y a 5 ans
Until a release of ‘rJava’ newer than ‘0.9.10’ is on CRAN signals sent
from interrupting Athena JDBC calls crash the R interpreter. You
therefore need to set the `-Xrs` option to avoid signals being passed on
to the JVM owner. That has to be done *before* `rJava` is loaded so you
either need to remember to put it at the top of all scripts *or* stick
this in your local `~/.Rprofile` and/or sitewide `Rprofile`:
il y a 5 ans
``` r
il y a 5 ans
options(
"java.parameters" = c(getOption("java.parameters", default = NULL), "-Xrs")
)
il y a 5 ans
```
il y a 6 ans
## What’s Inside The Tin?
il y a 7 ans
The following functions are implemented:
il y a 5 ans
- `athena_supported_types`: Retrieve the current supported type names
in Athena
- `metis_jar_path()` : Retrieve the fully-qualified path to the
included Athena JAR file
- `simba_driver_version`: Retrieve the version of the Simba Athena
JDBC driver included with the package
il y a 6 ans
## Installation
il y a 7 ans
``` r
il y a 5 ans
devtools::install_git("https://git.sr.ht/~hrbrmstr/metis-jars")
# OR
il y a 5 ans
devtools::install_gitlab("hrbrmstr/metis-jars")
# OR
il y a 5 ans
devtools::install_github("hrbrmstr/metis-jars")
il y a 7 ans
```
il y a 6 ans
## Usage
il y a 7 ans
``` r
il y a 5 ans
library(metis.jars)
il y a 7 ans
# current verison
il y a 5 ans
packageVersion("metis.jars")
il y a 6 ans
```
il y a 4 ans
## [1] '2.0.9'
il y a 6 ans
``` r
il y a 5 ans
simba_driver_version()
```
il y a 4 ans
## [1] "02.00.09.1018"
``` r
il y a 5 ans
athena_supported_types()
```
il y a 5 ans
## [1] "BOOLEAN" "TINYINT" "SMALLINT" "INT" "INTEGER" "BIGINT" "REAL" "FLOAT" "DOUBLE"
## [10] "DECIMAL" "DATE" "TIMESTAMP" "BINARY" "VARBINARY" "CHAR" "VARCHAR" "STRING" "ARRAY"
## [19] "MAP" "ROW" "STRUCT"
``` r
il y a 5 ans
metis_jar_path()
```
il y a 4 ans
## [1] "/Library/Frameworks/R.framework/Versions/3.6/Resources/library/metis.jars/java/AthenaJDBC42_2.0.9.jar"
il y a 6 ans
## Code of Conduct
Please note that this project is released with a [Contributor Code of
Conduct](CONDUCT.md). By participating in this project you agree to
abide by its terms.