[ https://issues.apache.org/jira/browse/SPARK-31762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17111486#comment-17111486 ]
Apache Spark commented on SPARK-31762: -------------------------------------- User 'MaxGekk' has created a pull request for this issue: https://github.com/apache/spark/pull/28582 > Fix perf regression of date/timestamp formatting in toHiveString > ---------------------------------------------------------------- > > Key: SPARK-31762 > URL: https://issues.apache.org/jira/browse/SPARK-31762 > Project: Spark > Issue Type: Bug > Components: SQL > Affects Versions: 3.0.0, 3.1.0 > Reporter: Maxim Gekk > Priority: Major > > HiveResult.toHiveString has to convert incoming Java date/timestamps types to > days/microseconds because existing API of DateFormatter/TimestampFormatter > don't accept java.sql.Timestamp/java.util.Date and > java.time.Instant/java.time.LocalDate. Internally, the formatters perform > conversions to Java types again. This badly impacts on the performance. The > ticket aims to add new APIs to DateFormatter and TimestampFormatter that > should accept Java types. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org