With pydbtools 3.0.0, the existing functions used by dbtools are being deprecated. While it's possible to run the awswrangler read_sql_query code, the output is a bit weird. Rather than looking like a Pandas dataframe, it seems to look like an R dataframe with Pandas datatypes. This means that reticulate::py_to_r() doesn't work as "it's not a python object", but something like as.tibble doesn't work either as it thinks the columns aren't vectors. Additionally, dbtools currently uses s3tools::get_credentials(). Neither that function nor s3tools in general are necessary any more.
Hence there are two options: either
- to have some custom conversion function to fix the awswrangler output, or
- switch to something more natively R, such as Noctua
With
pydbtools 3.0.0, the existing functions used by dbtools are being deprecated. While it's possible to run theawswranglerread_sql_query code, the output is a bit weird. Rather than looking like a Pandas dataframe, it seems to look like an R dataframe with Pandas datatypes. This means thatreticulate::py_to_r()doesn't work as "it's not a python object", but something likeas.tibbledoesn't work either as it thinks the columns aren't vectors. Additionally,dbtoolscurrently usess3tools::get_credentials(). Neither that function nors3toolsin general are necessary any more.Hence there are two options: either