wForget commented on code in PR #13657:
URL: https://github.com/apache/gluten/pull/13657#discussion_r4600329281


##########
backends-velox/src/main/scala/org/apache/gluten/execution/GenerateExecTransformer.scala:
##########
@@ -273,8 +273,11 @@ object PullOutGenerateProjectHelper extends 
PullOutProjectHelper {
       generate.generator match {
         case PosExplode(_) =>
           val originalOrdinal = generate.generatorOutput.head
+          // Velox Unnest emits a one-based BIGINT ordinality. Give it its own 
attribute;
+          // the post projection restores Spark's zero-based INT position and 
exprId.
+          val nativeOrdinal = 
originalOrdinal.withDataType(LongType).newInstance()

Review Comment:
   ```suggestion
             val nativeOrdinal = 
originalOrdinal.newInstance().withDataType(LongType)
   ```



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