gengliangwang commented on a change in pull request #33607:
URL: https://github.com/apache/spark/pull/33607#discussion_r680914041



##########
File path: 
external/avro/src/main/scala/org/apache/spark/sql/avro/AvroSerializer.scala
##########
@@ -180,9 +180,8 @@ private[sql] class AvroSerializer(
         }
 
       case (TimestampNTZType, LONG) => avroType.getLogicalType match {
-        // For backward compatibility, if the Avro type is Long and it is not 
logical type
-        // (the `null` case), output the timestamp value without time zone
-        // as with millisecond precision.
+        // For keep consistent with TimestampLTZ, if the Avro type is Long and 
it is not
+        // logical type (the `null` case), output the long with millisecond 
precision.

Review comment:
       ```suggestion
           // logical type (the `null` case), output the TimestampNTZ as long 
value in millisecond precision.
   ```




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