You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2022/02/08 00:21:54 UTC

[GitHub] [spark] bersprockets commented on a change in pull request #35430: [SPARK-38133][SQL] UnsafeRow should treat TIMESTAMP_NTZ as mutable and fixed width

bersprockets commented on a change in pull request #35430:
URL: https://github.com/apache/spark/pull/35430#discussion_r801168017



##########
File path: sql/core/src/main/scala/org/apache/spark/sql/execution/aggregate/udaf.scala
##########
@@ -187,7 +187,7 @@ sealed trait BufferSetterGetterUtils {
               row.setNullAt(ordinal)
             }
 
-        case TimestampType =>
+        case TimestampType | TimestampNTZType =>

Review comment:
       This change is unrelated to the bug. However, once I added `TimestampNTZType` to `UnsafeRow.mutableFieldTypes`, the several UDAF-related unit tests in `HashAggregationQuerySuite` pick up this data type and try to test it. However, BufferSetterGetterUtils could not handle this data type (and actually, now that I look, I made the change only for the setter, not the getter).
   
   Alternatively, I could filter out TimestampNTZType in the two HashAggregationQuerySuite unit tests.




-- 
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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org