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

SqlValidator need to maintain forceNullable across joins and renaming

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.14.0
    • None
    • None

    Description

      In the following query below, SqlValidator return rowtype with the second column as NOT NULL. Since this is a left outer join, it should be nullable.

      select * from
        (select row_number() over (order by sal) from emp) as emp1(r1) 
        left outer join 
        (select  dense_rank() over(order by sal) from emp) as emp2(r2) 
        on (emp1.r1 = emp2.r2)
      

      Attachments

        Activity

          People

            julianhyde Julian Hyde
            minjikim MinJi Kim
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: