You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Konstantin Orlov (Jira)" <ji...@apache.org> on 2021/06/16 11:46:00 UTC

[jira] [Commented] (IGNITE-14724) Calcite engine. Create table with DATE column creates INTEGER column

    [ https://issues.apache.org/jira/browse/IGNITE-14724?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17364259#comment-17364259 ] 

Konstantin Orlov commented on IGNITE-14724:
-------------------------------------------

[~alex_pl], LGTM!

> Calcite engine. Create table with DATE column creates INTEGER column
> --------------------------------------------------------------------
>
>                 Key: IGNITE-14724
>                 URL: https://issues.apache.org/jira/browse/IGNITE-14724
>             Project: Ignite
>          Issue Type: Bug
>            Reporter: Aleksey Plekhanov
>            Assignee: Aleksey Plekhanov
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Reproducer:
> {code:java}
> sql("CREATE TABLE t(d DATE)", true); 
> sql("INSERT INTO t VALUES (date '2021-01-01')", true);
> {code}
> Fails with:
> {noformat}
> org.apache.calcite.runtime.CalciteContextException: At line 0, column 0: Cannot assign to target field 'D' of type INTEGER from source field 'DATE '2021-01-01'' of type DATE{noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)