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

zero literal is appended as a paramer for FIRST/LAST but Spark requires boolean

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.32.0
    • None
    • core
    • None

    Description

      give the sql parser s simple input:

      first(`my_column`)

      After the SQL string is parsed as SqlNode, then an extra parameter is added to the first function, and the sql becomes:

      first(`my_column`, 0) 

      Error would be thrown when the above sql is executed by spark:
      "The second argument in first should be a boolean literal"

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            diddowill peng wu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: