Casting integer -> numeric is not currently possible with SQLlite #171
Labels
bug
an unexpected problem or unintended behavior
func trans 🌍
Translation of individual functions to SQL
I'm not exactly sure why this is happening, but using the sql translation of
CAST(x as NUMERIC)
does not actually cast an integer to a double value in SQLlite.I would've thought that it would work, because the documentation seems to suggest this would be the expected behavior, but maybe I am reading it wrong.
https://www.sqlite.org/datatype3.html#affname
At the very least, I think an "easy" solution would just be providing a translation for
as.double
andas.numeric
that casts toREAL
orDOUBLE
rather than the base scalar default ofNUMERIC
Created on 2018-10-06 by the reprex
package (v0.2.0).
Session info
The text was updated successfully, but these errors were encountered: