Closed vspinu closed 2 years ago
Hey @vspinu, try downgrading RPostgres to 1.4.1. There was a breaking change introduced in 1.4.2. https://github.com/r-dbi/RPostgres/issues/357
Wow, your reaction time is amazing! That worked. I must have done something stupid on my side when I was downgrading RPostgres earlier.
Thanks a bunch!!! You saved my day :grinning:
It works for date and timestamp columns, looks like the data has strings:
library(RPostgres)
con <- postgresDefault()
dbQuoteLiteral(con, dttr2::NA_Date_)
#> <SQL> NULL::date
dbQuoteLiteral(con, dttr2::NA_POSIXct_)
#> <SQL> NULL::timestamp
Created on 2022-02-04 by the reprex package (v2.0.1)
Not sure what the right way is here. I'd like to keep the typed literals.
I started seeing errors in my upsert jobs after an update. I couldn't track the working version of neither dbx or Rpostgres, so it could be that some other dep changed something (or it could be on my side, though unlikely as nothing changed in a year except of the upgrade).
When a date column contains NAs the sql generated in dbxUpsert looks like this:
I get the following error from Postgres
Any ideas would be super appreciated as I have many tables pushed with dbxUpsert into datawarehouse with loads of dependents which currently fail :fearful: Thanks!