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

RelToSqlConverter generates NULLA LAST and NULLS FIRST wrongly when converting RexOver to sql using MysqlSqlDialect

    XMLWordPrintableJSON

    Details

      Description

      As for sql :

      String query = "SELECT row_number() over (order by \"hire_date\") FROM \"employee\"";
      

      using RelToSqlConverter  to generate a sql for mysql , the result is :

      SELECT ROW_NUMBER() OVER (ORDER BY `hire_date` NULLS LAST)
      FROM `foodmart`.`employee`
      

      However, mysql does not support NULLS LAST.

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                winipanda TANG Wen-hui
                Reporter:
                winipanda TANG Wen-hui
              • Votes:
                0 Vote for this issue
                Watchers:
                5 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 - 3h 10m
                  3h 10m