uros-b commented on code in PR #56942:
URL: https://github.com/apache/spark/pull/56942#discussion_r3524931236


##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/types/ops/TimestampNanosParquetOps.scala:
##########
@@ -167,3 +186,69 @@ private[ops] object TimestampNanosParquetOps {
         case _ => false
       })
 }
+
+/**
+ * Vectorized (batch) updater for nanosecond-precision timestamps: reads an 
INT64 epoch-nanos
+ * column and decomposes each value into the two-child column vector 
(epochMicros: Long,
+ * nanosWithinMicro: Short). Sub-microsecond digits are truncated to the 
requested precision.
+ * Mirrors the row-based `newConverter` path which calls
+ * `DateTimeUtils.epochNanosToTimestampNanos(value, precision)`.
+ *
+ * No datetime rebase is applied (TIMESTAMP(NANOS) postdates the proleptic 
Gregorian switch).
+ * No timezone conversion is applied at the storage level.
+ *
+ * Replaces the former `ParquetVectorUpdaterFactory.TimestampNanosUpdater`, 
now owned by the

Review Comment:
   Nit: stale reference to `TimestampNanosUpdater`.



-- 
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]

Reply via email to