YannByron commented on a change in pull request #4203:
URL: https://github.com/apache/hudi/pull/4203#discussion_r778511325
##########
File path:
hudi-spark-datasource/hudi-spark/src/main/scala/org/apache/spark/sql/hudi/command/SqlKeyGenerator.scala
##########
@@ -96,7 +96,7 @@ class SqlKeyGenerator(props: TypedProperties) extends
ComplexKeyGenerator(props)
val timeMs = if (rowType) { // In RowType, the
partitionPathValue is the time format string, convert to millis
SqlKeyGenerator.sqlTimestampFormat.parseMillis(_partitionValue)
} else {
- MILLISECONDS.convert(_partitionValue.toLong, MICROSECONDS)
+ Timestamp.valueOf(_partitionValue).getTime
Review comment:
right to change this.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]