Amazon Athena JDBC Driver Wrapper Supporting the 'metis' Package
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

91 lines
2.6 KiB

преди 7 години
преди 5 години
[![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)
преди 5 години
преди 5 години
# metis.jars
преди 6 години
преди 5 години
Amazon Athena JDBC Driver Wrapper Supporting the ‘metis’ Package
преди 7 години
преди 6 години
## Description
преди 7 години
преди 5 години
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.
преди 7 години
преди 5 години
## IMPORTANT
преди 5 години
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`:
преди 5 години
преди 5 години
``` r
преди 5 години
options(
"java.parameters" = c(getOption("java.parameters", default = NULL), "-Xrs")
)
преди 5 години
```
преди 6 години
## What’s Inside The Tin?
преди 7 години
The following functions are implemented:
преди 5 години
- `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
преди 6 години
## Installation
преди 7 години
``` r
преди 5 години
devtools::install_git("https://git.sr.ht/~hrbrmstr/metis-jars")
преди 5 години
# OR
преди 5 години
devtools::install_gitlab("hrbrmstr/metis-jars")
преди 5 години
# OR
преди 5 години
devtools::install_github("hrbrmstr/metis-jars")
преди 7 години
```
преди 6 години
## Usage
преди 7 години
``` r
преди 5 години
library(metis.jars)
преди 7 години
# current verison
преди 5 години
packageVersion("metis.jars")
преди 6 години
```
преди 4 години
## [1] '2.0.9'
преди 6 години
``` r
преди 5 години
simba_driver_version()
преди 7 години
```
преди 4 години
## [1] "02.00.09.1018"
преди 5 години
``` r
преди 5 години
athena_supported_types()
преди 5 години
```
преди 5 години
## [1] "BOOLEAN" "TINYINT" "SMALLINT" "INT" "INTEGER" "BIGINT" "REAL" "FLOAT" "DOUBLE"
## [10] "DECIMAL" "DATE" "TIMESTAMP" "BINARY" "VARBINARY" "CHAR" "VARCHAR" "STRING" "ARRAY"
## [19] "MAP" "ROW" "STRUCT"
преди 5 години
``` r
преди 5 години
metis_jar_path()
преди 5 години
```
преди 4 години
## [1] "/Library/Frameworks/R.framework/Versions/3.6/Resources/library/metis.jars/java/AthenaJDBC42_2.0.9.jar"
преди 6 години
## 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.