sqlData {noctua} | R Documentation |
Converts data frame into suitable format to be uploaded to Athena
Description
This method converts data.frame columns into the correct format so that it can be uploaded Athena.
Usage
## S4 method for signature 'AthenaConnection'
sqlData(
con,
value,
row.names = NA,
file.type = c("tsv", "csv", "parquet", "json"),
...
)
Arguments
con |
A database connection. |
value |
A data frame |
row.names |
Either If A string is equivalent to For backward compatibility, |
file.type |
What file type to store data.frame on s3, noctua currently supports ["csv", "tsv", "parquet", "json"]. Note: This parameter is used for format any special characters that clash with file type separator. |
... |
Other arguments used by individual methods. |
Value
sqlData
returns a dataframe formatted for Athena. Currently converts list
variable types into character
split by '|'
, similar to how data.table
writes out to files.