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

update SQL error "column is not compatible with index definition" after upgrading to 2.10.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Not A Bug
    • 2.10
    • 2.10
    • sql
    • None
    • Docs Required, Release Notes Required

    Description

      We have an table "issues" which has columns:

             ID int, ASSINED_DATE timestamp, CATEGORY varchar

      This table is created and inserted with data on 2.7.6 

       

      After upgrading to 2.10.0, when I ran updating SQL:

      update issue set category = 'A' where CATEGORY = 'B';

      It errors: 

      Error: Type for a column 'ASSIGNED_DATE' is not compatible with index definition. Expected 'Timestamp', actual type 'Date' (state=50000,code=1)

       

      I tried drop the index of ASSIGNED_DATE, the updating SQL then works well.

      But, If I recreate the index of the ASSIGNED_DATE, the updating SQL not working again.

      Attachments

        Activity

          People

            Unassigned Unassigned
            nifeng2xing Isaac Zhu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: