You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Yury Gerzhedovich (Jira)" <ji...@apache.org> on 2022/12/07 08:36:00 UTC
[jira] [Created] (IGNITE-18345) SQL. Cannot use java Date/Time classes as parameters for query
Yury Gerzhedovich created IGNITE-18345:
------------------------------------------
Summary: SQL. Cannot use java Date/Time classes as parameters for query
Key: IGNITE-18345
URL: https://issues.apache.org/jira/browse/IGNITE-18345
Project: Ignite
Issue Type: Bug
Components: sql
Reporter: Yury Gerzhedovich
Simple broken scenario looks as
{code:java}
assertQuery("SELECT LAST_DAY(?)").withParams(Date.valueOf("2022-01-01"))
.returns(Date.valueOf("2022-01-31")).check();
{code}
In the case we have the following error:
{code:java}
org.apache.ignite.lang.IgniteException: IGN-CMN-65535 TraceId:86aeab6a-5aa9-4f4e-a69d-5809e53f60b9 class java.lang.Integer cannot be cast to class java.lang.Long (java.lang.Integer and java.lang.Long are in module java.base of loader 'bootstrap')
{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)