Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-26651 Use Proleptic Gregorian calendar
  3. SPARK-26618

Make typed Timestamp/Date literals consistent to casting

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.0
    • Fix Version/s: 3.0.0
    • Component/s: SQL
    • Labels:
      None

      Description

      Currently values of typed literals TIMESTAMP and DATE are parsed to desired values by Timestamp.valueOf and Date.valueOf. This restricts date and timestamp pattern, and makes inconsistent to casting to TimestampType/DateType. Also using Timestamp.valueOf and Date.valueOf assumes hybrid calendar while parsing textual representation of timestamps/dates. This should be fixed by re-using cast functionality.

        Attachments

          Activity

            People

            • Assignee:
              maxgekk Maxim Gekk
              Reporter:
              maxgekk Maxim Gekk
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: