Closed DyfanJones closed 3 years ago
Possible solution, is to add a formatting parameter for dbGetPartition
:
This way previous behaviour is maintain, if a user wants to use the new behaviour then they can use the following.
library(DBI)
library(data.table)
library(RAthena)
con <- dbConnect(athena())
dbGetPartition(con, "test_df2", .format = T)
# Info: (Data scanned: 0 Bytes)
# year month day
# 1: 2020 11 17
dbGetPartition(con, "test_df2")
# Info: (Data scanned: 0 Bytes)
# partition
# 1: year=2020/month=11/day=17
PR #1330 adds new format
Currently
RAthena
has a functiondbGetPartition
which returns adata.table
in the default AWS Athena format:This format isn't too bad as it just returns format from Athena. Would it be useful to reformat this into the following?
Problem is that
dbGetPartition
has been in the package for sometime and changing it now would break possible solutions users have developed.