Access and Query Amazon Athena via DBI/JDBC
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

40 строки
1.4KB

  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/jdbc.r
  3. \docType{methods}
  4. \name{dbConnect,AthenaDriver-method}
  5. \alias{dbConnect,AthenaDriver-method}
  6. \title{AthenaJDBC}
  7. \usage{
  8. \S4method{dbConnect}{AthenaDriver}(drv,
  9. provider = "com.simba.athena.amazonaws.auth.DefaultAWSCredentialsProviderChain",
  10. region = "us-east-1",
  11. s3_staging_dir = Sys.getenv("AWS_S3_STAGING_DIR"),
  12. schema_name = "default", max_error_retries = 10,
  13. connection_timeout = 10000, socket_timeout = 10000, log_path = "",
  14. log_level = 0, ...)
  15. }
  16. \arguments{
  17. \item{provider}{JDBC auth provider (ideally leave default)}
  18. \item{region}{AWS region the Athena tables are in}
  19. \item{s3_staging_dir}{A write-able bucket on S3 that you have permissions for}
  20. \item{schema_name}{LOL if only this actually worked with Amazon's hacked Presto driver}
  21. \item{max_error_retries, connection_timeout, socket_timeout}{technical connection info that you should only muck with if you know what you're doing.}
  22. \item{log_path, log_level}{The Athena JDBC driver can (shockingly) provide a decent bit
  23. of data in logs. Set this to a temporary directory or something log4j can use. For
  24. `log_level` use the names ("INFO", "DEBUG", "WARN", "ERROR", "ALL", "OFF", "FATAL", "TRACE") or
  25. their corresponding integer values 0-6.}
  26. \item{...}{unused}
  27. }
  28. \description{
  29. AthenaJDBC
  30. }
  31. \references{
  32. <https://docs.aws.amazon.com/athena/latest/ug/connect-with-jdbc.html>
  33. }