felipepessoto commented on code in PR #12967:
URL: https://github.com/apache/gluten/pull/12967#discussion_r4031435191


##########
cpp/velox/substrait/VeloxToSubstraitType.cc:
##########
@@ -31,6 +31,14 @@ const ::substrait::Type& 
VeloxToSubstraitTypeConvertor::toSubstraitType(
     substraitType->set_allocated_date(substraitDate);
     return *substraitType;
   }
+  if (type->equivalent(*velox::TIMESTAMP_UTC())) {
+    auto substraitPrecisionTimestamp =
+        
google::protobuf::Arena::CreateMessage<::substrait::Type_PrecisionTimestamp>(&arena);
+    substraitPrecisionTimestamp->set_precision(6);
+    
substraitPrecisionTimestamp->set_nullability(::substrait::Type_Nullability_NULLABILITY_NULLABLE);

Review Comment:
   I've separated the NTZ literal work into 
[apache/gluten#13041](https://github.com/apache/gluten/pull/13041), opened as a 
draft.
   
   The follow-up addresses literal field selection and decoding, logical-type 
preservation for constants and typed nulls, and the missing JVM literal wiring. 
It has dedicated native and Spark literal regressions.
   
   It is based directly on `main` and includes the NTZ type mapping it needs, 
so it can be reviewed and merged independently of this PR. This keeps the 
aggregation and Delta statistics changes here separate from the 
literal-conversion work.
   



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