LuciferYang commented on PR #13714:
URL: https://github.com/apache/gluten/pull/13714#issuecomment-7181231953

   @zml1206 Reproduced on Spark 4.1.1 with Parquet V2: on `8ba56b74` that query 
returns only the block length, with project offload on and off (the base commit 
too, with it on). Fixed in ff99c5d9 as you suggested: PostOffload folds the 
projection PreOffload adds over a DSv2 scan into the scan, so the scan outputs 
the input file columns with the exprIds PreOffload assigned. The nested-project 
case and `isPassThrough` are gone. The fix also keeps the scan's own data 
columns, because Iceberg renames them for the native reader. When the outer 
projection calls the same function again, as in `concat(input_file_name, 
input_file_name())`, the scan reads it once and a project above copies it to 
the second attribute, since the native scan rejects two `input_file_name` 
columns. Your query is in the second new `FallbackSuite` test, run with DSv1 
and DSv2 and project offload on and off. It fails on `8ba56b74` and passes now.
   


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