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

Create date formatter only once in HiveResult

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0, 3.1.0
    • Fix Version/s: 3.0.0
    • Component/s: SQL
    • Labels:
      None

      Description

      Currently, dateFormatter in HiveResult is created per every date value to be sure that catches zone id but this is not necessary because date formatter doesn't depend on any time zone. Time zone is needed only for parsing. So, dateFormatter can be created only once. The ticket aims to changeĀ def dateFormatter to val dateFormatter.

        Attachments

          Activity

            People

            • Assignee:
              maxgekk Max Gekk
              Reporter:
              maxgekk Max Gekk
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: