Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-14724

Calcite engine. Create table with DATE column creates INTEGER column

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      Reproducer:

      sql("CREATE TABLE t(d DATE)", true); 
      sql("INSERT INTO t VALUES (date '2021-01-01')", true);
      

      Fails with:

      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

      Attachments

        Issue Links

          Activity

            People

              alex_pl Aleksey Plekhanov
              alex_pl Aleksey Plekhanov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m