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

CalendarInterval sub-second part should be padded before parsing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.2, 2.1.3, 2.2.3, 2.3.3, 2.4.3
    • 2.3.4, 2.4.4, 3.0.0
    • Spark Core

    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

              dongjoon Dongjoon Hyun
              dongjoon Dongjoon Hyun
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: