baibaichen opened a new issue, #8580:
URL: https://github.com/apache/incubator-gluten/issues/8580

   ### Problem description
   
   Both ch and velox support `InputFileName`, `InputFileBlockStart` and 
`InputFileBlockLength`, but we still get the following warning: 
   
   ```shell
   WARN org.apache.gluten.execution.ProjectExecTransformer: Validation failed 
with exception for plan: ProjectExecTransformer, due to: Not supported to map 
spark function name to substrait function name: input_file_name(), class name: 
InputFileName.
   ```
   
   In addition, spark supports `InputXXX` through `ThreadLocal`, while Gluten 
supports them through push down. IIUC, the following codes colud be removed, 
after this [pr](https://github.com/apache/incubator-gluten/pull/7188) and 
https://github.com/apache/incubator-gluten/pull/7124.
   
   ```
   GlutenWholeStageColumnarRDD::compute()
       // To support input_file_name(). According to semantic we should return
       // the exact file name a row belongs to. However in columnar engine it's
       // not easy to accomplish this. so we return a list of file(part) names
       split match {
         case FirstZippedPartitionsPartition(_, g: GlutenPartition, _) =>
           InputFileBlockHolderProxy.set(g.files.mkString(","))
         case _ =>
           InputFileBlockHolderProxy.unset()
       }
   ```
   
   ### System information
   
   no
   
   ### CMake log
   
   ```bash
   
   ```


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