J-HowHuang commented on code in PR #16624:
URL: https://github.com/apache/pinot/pull/16624#discussion_r2286434650


##########
pinot-spi/src/main/java/org/apache/pinot/spi/recordtransformer/RecordTransformer.java:
##########
@@ -40,6 +41,11 @@ default Collection<String> getInputColumns() {
     return List.of();
   }
 
+  /// Provides hint to the transformer that which columns are required as 
input across all the downstream transformers
+  /// in the TransformPipeline.
+  default void withInputColumnsForDownstreamTransformers(Set<String> 
inputColumnsOfDownstream) {

Review Comment:
   done



##########
pinot-segment-local/src/main/java/org/apache/pinot/segment/local/recordtransformer/ComplexTypeTransformer.java:
##########
@@ -195,18 +207,20 @@ public List<GenericRow> transform(List<GenericRow> 
records) {
           flattenMap(record, columns);
           transformedRecords.add(record);
         } else {
-          Map<String, Object> originalValues = 
record.copy(_fieldsToUnnest).getFieldToValueMap();
+          Map<String, Object> originalValues = 
record.copy(_fieldsToUnnestAndKeepOriginalValue).getFieldToValueMap();

Review Comment:
   done



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