beliefer commented on a change in pull request #34495:
URL: https://github.com/apache/spark/pull/34495#discussion_r744244003
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetWriteSupport.scala
##########
@@ -223,6 +223,12 @@ class ParquetWriteSupport extends
WriteSupport[InternalRow] with Logging {
recordConsumer.addLong(millis)
}
+ case TimestampNTZType =>
+ // For TimestampNTZType column, Spark always output as INT64 with
Timestamp annotation in
+ // MICROS time unit.
+ (row: SpecializedGetters, ordinal: Int) =>
+ recordConsumer.addLong(row.getLong(ordinal))
Review comment:
`(row: SpecializedGetters, ordinal: Int) =>
recordConsumer.addLong(row.getLong(ordinal))`
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]