dbStatistics: Show AWS Athena Statistics

Description Usage Arguments Value Examples

Description

Returns AWS Athena Statistics from execute queries dbSendQuery

Usage

1
2
3
4
dbStatistics(res, ...)

## S4 method for signature 'AthenaResult'
dbStatistics(res, ...)

Arguments

res

An object inheriting from DBIResult.

...

Other arguments passed on to methods.

Value

dbStatistics() returns list containing Athena Statistics return from boto3.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## Not run: 
# Note: 
# - Require AWS Account to run below example.
# - Different connection methods can be used please see `RAthena::dbConnect` documnentation

library(DBI)
library(RAthena)

# Demo connection to Athena using profile name 
con <- dbConnect(RAthena::athena())

res <- dbSendQuery(con, "show databases")
dbStatistics(res)

# Clean up
dbClearResult(res)


## End(Not run)

RAthena documentation built on Nov. 26, 2021, 5:19 p.m.