zml1206 commented on PR #13714: URL: https://github.com/apache/gluten/pull/13714#issuecomment-7150729969
I agree with checking for actual function calls in `PreOffload`. I found one DSv2 regression in `PostOffload`, though. On Spark 4.1.1, with Parquet V2 and `spark.gluten.sql.columnar.project=false`, the following query returns the file path followed by the block length on the base commit. On `8ba56b74`, it returns only the block length. ```sql SELECT concat(input_file_name, input_file_block_length()) FROM (SELECT input_file_name() AS input_file_name FROM t) ``` The new `isPassThrough` check rejects the generated `Alias(InputFileName(), "input_file_name")`. The native scan then outputs only `input_file_block_length`, leaving Spark to evaluate `input_file_name()` above the scan, where it returns an empty string. Could we have the scan produce the metadata attribute with the `exprId` that `PreOffload` already assigned to it? That would let the outer projection reference it directly and avoid inferring from the column name whether an alias was generated by this rule. Could we also add this query as a regression test? -- 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]
