Learn R Programming

RAthena (version 2.0.0)

dbStatistics: Show AWS Athena Statistics

Description

Returns AWS Athena Statistics from execute queries dbSendQuery

Usage

dbStatistics(res, ...)

# S4 method for 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

Run this code
# 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)

# }

Run the code above in your browser using DataLab