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

Convert datetime to string by `to_char`/`to_varchar`

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.0.0
    • 4.0.0
    • SQL
    • None

    Description

      Expand to_char() to take date and timestamp expression as the first argument. For date and timestamp expression, the function will be equivalent to date_format(expr, fmt)

      The goal is to achieve feature parity with other systems, and make the migration to Spark SQL easier:

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: