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

RelToSqlConverter support IGNORE NULLS for window functions

    XMLWordPrintableJSON

Details

    Description

      CALCITE-883(https://issues.apache.org/jira/browse/CALCITE-883) Support  IGNORE NULLS option for LEAD, LAG, FIRST_VALUE, LAST_VALUE and NTH_VALUE window functions.

      But RelToSqlConverter not support them, IGNORE NULLS will be lost.

       

      For example

       

      SELECT LAG("employee_id", 2) IGNORE NULLS OVER (ORDER BY "hire_date") 
      FROM "employee"

       

      It lost `IGNORE NULLS `

      SELECT LAG("employee_id", 2) OVER (ORDER BY "hire_date") 
      FROM "employee"

      Attachments

        Issue Links

          Activity

            People

              jiajunbernoulli Jiajun Xie
              jiajunbernoulli Jiajun Xie
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: