It looks like in mysqltableref.cc all of the SValue's created in MySQLTableRef::executeScan are strings, so the underlying backend type data is lost.
I ran into this when my mysql DATETIME columns couldn't be used in a GROUP OVER TIMEWINDOW, because SValue::getTimestamp is invoked on the data, which was created as a string.
I've started on a patch to create typed SValues based on the column type, but just want to make sure this is something you'd accept (rather than maybe changing SValue::getTimestamp to attempt to parse the string data into a timestamp.
It looks like in
mysqltableref.cc
all of the SValue's created inMySQLTableRef::executeScan
are strings, so the underlying backend type data is lost.I ran into this when my mysql
DATETIME
columns couldn't be used in aGROUP OVER TIMEWINDOW
, becauseSValue::getTimestamp
is invoked on the data, which was created as a string.I've started on a patch to create typed SValues based on the column type, but just want to make sure this is something you'd accept (rather than maybe changing
SValue::getTimestamp
to attempt to parse the string data into a timestamp.