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

Implicitly cast strings in datetime arithmetic operations

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 2.4.4
    • None
    • SQL
    • None

    Description

      To improve Spark SQL UX, strings can be cast to the `INTERVAL` or `TIMESTAMP` types in the cases:

      1. Cast string to interval in interval - string
      2. Cast string to interval in datetime + string or string + datetime
      3. Cast string to timestamp in datetime - string or string - datetime

      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:
                Resolved: