Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-28308

CalendarInterval sub-second part should be padded before parsing

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.2, 2.1.3, 2.2.3, 2.3.3, 2.4.3
    • Fix Version/s: 2.3.4, 2.4.4, 3.0.0
    • Component/s: Spark Core
    • Labels:

      Description

      spark-sql> select interval '0 0:0:0.123456789' day to second;
      interval 123 milliseconds 456 microseconds
      
      spark-sql> select interval '0 0:0:0.12345678' day to second;
      interval 12 milliseconds 345 microseconds
      
      spark-sql> select interval '0 0:0:0.1234' day to second;
      interval 1 microseconds
      Time taken: 0.024 seconds, Fetched 1 row(s)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dongjoon Dongjoon Hyun
                Reporter:
                dongjoon Dongjoon Hyun
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: