Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-6485

AssertionError When an IN list containing NULL has an implicit coercion type converter

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.38.0
    • None

    Description

        @Test void testInOperation() {
          sql("select 1 in (null, '2', '3') as f0 from (values (true, true, true))").ok();
        }
      
      Conversion to relational algebra failed to preserve datatypes:
      validated type:
      RecordType(BOOLEAN NOT NULL F0) NOT NULL
      converted type:
      RecordType(BOOLEAN F0) NOT NULL
      rel:
      LogicalValues(tuples=[[{ null }]]) 

      Attachments

        Issue Links

          Activity

            People

              nobigo xiong duan
              nobigo xiong duan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: