fix: Do not push down subquery filters on native_datafusion scan#2438
fix: Do not push down subquery filters on native_datafusion scan#2438andygrove merged 1 commit intoapache:mainfrom
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2438 +/- ##
============================================
+ Coverage 56.12% 58.04% +1.91%
- Complexity 976 1402 +426
============================================
Files 119 147 +28
Lines 11743 13469 +1726
Branches 2251 2342 +91
============================================
+ Hits 6591 7818 +1227
- Misses 4012 4417 +405
- Partials 1140 1234 +94 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
|
||
| @transient | ||
| private lazy val pushedDownFilters = getPushedDownFilters(relation, dataFilters) | ||
| private lazy val pushedDownFilters = { |
There was a problem hiding this comment.
should we also document it?
There was a problem hiding this comment.
Where should we document it?
|
@wForget thank you for fixing this. One thought though - The same subquery execution would be completed if the scan were a spark scan, so some investigation is needed to determine why we see this issue with CometNativeScan. |
As commented in #2424 (comment), we called |
Which issue does this PR close?
Closes #2424.
Rationale for this change
We should not push down subquery filters on
native_datafusionscan, becausesubquerieshave not been executed yet when we build thenativeOpforCometNativeScanExec.What changes are included in this PR?
Do not push down subquery filters on native_datafusion scan
How are these changes tested?
After this, tpch q22 ran successfully on spark 4.0.1 with comet: