Details

    • Sub-task
    • Status: In Progress
    • Major
    • Resolution: Unresolved
    • 3.1.0
    • None
    • SQL
    • None

    Description

      Currently, Spark requires particular order of interval units in casting from strings - `YEAR` .. `MICROSECOND`. PostgreSQL allows any order:

      maxim=# select interval '1 second 2 hours';
       interval
      ----------
       02:00:01
      (1 row)
      

      but Spark fails on while parsing:

      spark-sql> select interval '1 second 2 hours';
      NULL
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              maxgekk Max Gekk
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: