-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default for valid_on breaks on more recent version of dependencies #250
Comments
Let's move the check:
|
And while we're at it add a check that valid_on is a date vector of length 1. |
The problem was that RPostgres 1.4.3 adds type casts in |
HomoCodens
added a commit
that referenced
this issue
Jan 24, 2022
newer versions of RPostgres append a type cast to dbQuoteLiteral(con, NA) we don't use Sys.date() because the db should be in charge of time closes #250
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It looks like either
R
4.x orRPostgres
1.4.x translates NA to a boolean instead of NULL, which breaks this default forvalid_on
:It produces
There is no
ts_read_raw(boolean, boolean)
, onlyts_read_raw(date, boolean)
which makes me suspect that the NA is now getting trandlated into a boolean instead of the NULL it used to.The workaround for now is to just supply
valid_on = Sys.Date()
instead of leaving it empty.Sessioninfo where it works:
SessionInfo where it does not:
The text was updated successfully, but these errors were encountered: