calcite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julian Hyde <jh...@apache.org>
Subject Re: Issue with date literal in where clause
Date Tue, 05 Apr 2016 05:20:13 GMT
This might be related to https://issues.apache.org/jira/browse/CALCITE-1054 <https://issues.apache.org/jira/browse/CALCITE-1054>
or https://issues.apache.org/jira/browse/CALCITE-1075 <https://issues.apache.org/jira/browse/CALCITE-1075>.
I think the problem is that Calcite uses Integer (or int) internally to represent dates, and
forgets to convert java.sql.Date values coming from a custom table.

Try my patch to 1054. If might just work.

Julian

> On Apr 4, 2016, at 9:36 PM, Sanjay Prasad <sanjay.prasad@kalkitech.in> wrote:
> 
> java.lang.ClassCastException: java.sql.Date cannot be cast to java.lang.Integer


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message