After a call to CAST, results cannot be compared. #9185
Labels
bug
streaming-engine
Tickets owned by the ksqlDB Streaming Team
user-defined-functions
Tickets about UDF, UDAF, UDTF
Describe the bug
A query like
hits an error like
Invalid Predicate: Line 19, Column 14: A method named "compareTo" is not declared in any enclosing class nor any supertype, nor through a static import. expression: (CAST(FROM_UNIXTIME(REGISTERTIME) AS DATE) <= DATESUB(DAYS, 365, '2018-09-23')), schema:REGISTERTIME BIGINT, USERID STRING, REGIONID STRING, GENDER STRING, ROWTIME BIGINT, ROWPARTITION INTEGER, ROWOFFSET BIGINT Statement: Select * FROM DataGen_Stream WHERE CAST( FROM_UNIXTIME(REGISTERTIME) as DATE) <= DATESUB(DAYS,365,'2018-09-23') EMIT CHANGES;
Expected behavior
That one would be able to compare values after calling
CAST
.The text was updated successfully, but these errors were encountered: