XMLWordPrintableJSON

Details

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

    Description

      Extract should process only existing fields of interval types. For example:

      spark-sql> SELECT EXTRACT(MONTH FROM INTERVAL '2021-11' YEAR TO MONTH);
      11
      spark-sql> SELECT EXTRACT(MONTH FROM INTERVAL '2021' YEAR);
      0
      

      The last command should fail as the month field doesn't present in INTERVAL YEAR.

      Attachments

        Activity

          People

            sarutak Kousuke Saruta
            maxgekk Max Gekk
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: