XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.2.0
    • 3.2.0
    • SQL
    • None

    Description

      If the sign '-' inside of interval string, everything is fine after https://github.com/apache/spark/commit/bb5459fb26b9d0d57eadee8b10b7488607eeaeb2:

      spark-sql> SELECT INTERVAL '-178956970-8' YEAR TO MONTH;
      -178956970-8
      

      but the sign outside of interval string is not handled properly:

      spark-sql> SELECT INTERVAL -'178956970-8' YEAR TO MONTH;
      Error in query:
      Error parsing interval year-month string: integer overflow(line 1, pos 16)
      
      == SQL ==
      SELECT INTERVAL -'178956970-8' YEAR TO MONTH
      ----------------^^^
      

      Attachments

        Activity

          People

            angerszhuuu angerszhu
            maxgekk Max Gekk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: