zhztheplayer commented on code in PR #8082:
URL: https://github.com/apache/incubator-gluten/pull/8082#discussion_r1868615356


##########
gluten-substrait/src/main/scala/org/apache/gluten/execution/ScanTransformerFactory.scala:
##########
@@ -55,6 +56,11 @@ object ScanTransformerFactory {
           scanExec.tableIdentifier,
           scanExec.disableBucketedScan
         )
+        if (!transform.doValidate().ok()) {
+          transform.copy(dataFilters = 
PushDownUtil.pushFilters(scanExec.dataFilters))
+        } else {
+          transform
+        }

Review Comment:
   The code in `ScanTransformerFactory` is used by validator and offload rules. 
It feels a little weird to do validation in it? Do we have better choices?



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