jinchengchenghh commented on code in PR #5447:
URL: https://github.com/apache/incubator-gluten/pull/5447#discussion_r1581973308
##########
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
+ }
+
if (TransformHints.isNotTransformable(plan)) {
Review Comment:
No, we the partitionFilters is null, it is taged not transformable,
https://github.com/apache/incubator-gluten/blob/main/gluten-core/src/main/scala/org/apache/gluten/extension/columnar/TransformHintRule.scala#L343,
otherwise, the plan has no tag
--
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]