zhztheplayer commented on code in PR #5447:
URL: https://github.com/apache/incubator-gluten/pull/5447#discussion_r1590502221
##########
gluten-core/src/main/scala/org/apache/gluten/extension/columnar/TransformSingleNode.scala:
##########
@@ -303,7 +303,15 @@ object TransformOthers {
class ReplaceSingleNode() extends LogLevelUtil with Logging {
def doReplace(p: SparkPlan): SparkPlan = {
- val plan = p
+ val plan = p match {
+ case plan: FileSourceScanExec
+ if plan.relation.fileFormat.getClass.getSimpleName ==
"ArrowCSVFileFormat" =>
+ val arrowScan = ArrowFileSourceScanExec(plan)
+ TransformHints.tagNotTransformable(arrowScan, "Arrow scan cannot
transform")
+ return arrowScan
+ case p => p
+ }
Review Comment:
The code is placed in `gluten-core` but relies on code in `backend-velox`.
Would you like to check whether we can add a rule via backend API?
Probably through
`BackendsApiManager.getSparkPlanExecApiInstance.genExtendedColumnarValidationRules`
?
--
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]