You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "holdenk (via GitHub)" <gi...@apache.org> on 2026/01/12 21:00:03 UTC
[PR] [WIP][FOLLOW-ON][SPARK-55014][SQL] Split projection with splitting complex non-pushable filters [spark]
holdenk opened a new pull request, #53773:
URL: https://github.com/apache/spark/pull/53773
### What changes were proposed in this pull request?
This is a follow on to [SPARK-47672](https://issues.apache.org/jira/browse/SPARK-47672). For example if you have a filter referencing two different columns added in a projection with regexes (or arbitrary functional calls, etc.) we should split the projection into two so the second regex need only be evaluated on the smaller data set.
The logic for doing this gets kind of complex, and it can increase the size of the query plan, but it only increases the plan size where it would likely reduce the amount of data evaluated. There is a working implementation proposed as part of 47672, but it was decided it was too complex for part of a regressionfix.
### Why are the changes needed?
Reducing the data being evaluated earlier in projection/filters can improve performance.
### Does this PR introduce _any_ user-facing change?
We'd probably add a flag for this and queries would behave differently.
### How was this patch tested?
More tests in the filter pushdown suite.
### Was this patch authored or co-authored using generative AI tooling?
Gen AI was used for some of the test generation, although it got most of it backwards to start with and then we had to invert it's tests. Honestly that might have taken more time.
--
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: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [WIP][FOLLOW-ON][SPARK-55014][SQL] Split projection with splitting complex non-pushable filters [spark]
Posted by "ahshahid (via GitHub)" <gi...@apache.org>.
ahshahid commented on PR #53773:
URL: https://github.com/apache/spark/pull/53773#issuecomment-3745805432
@holdenk We had implemented something similar for workday few years back... The idea was to firdt allow complete collpase of projects, and then expand the collapsed projects in a controlled manner to ensure that repeat calculations are evaluated only once and available as an attribute in the expanded project tree. Something similar to this, I believe is happening in master now... but the main difference we did was that these expanded projects were treated as a group of nodes, on which all other rules would get applied only once and in next iterations, these blocks would be skipped.
--
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: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [WIP][FOLLOW-ON][SPARK-55014][SQL] Split projection with splitting complex non-pushable filters [spark]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed pull request #53773: [WIP][FOLLOW-ON][SPARK-55014][SQL] Split projection with splitting complex non-pushable filters
URL: https://github.com/apache/spark/pull/53773
--
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: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [WIP][FOLLOW-ON][SPARK-55014][SQL] Split projection with splitting complex non-pushable filters [spark]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #53773:
URL: https://github.com/apache/spark/pull/53773#issuecomment-4309632700
We're closing this PR because it hasn't been updated in a while. This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable.
If you'd like to revive this PR, please reopen it and ask a committer to remove the Stale 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: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [WIP][FOLLOW-ON][SPARK-55014][SQL] Split projection with splitting complex non-pushable filters [spark]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #53773:
URL: https://github.com/apache/spark/pull/53773#issuecomment-3740467521
## JIRA Issue Information
=== Improvement SPARK-55014 ===
Summary: When a filter has multiple conditions with expensive references we should try and split it
Assignee: None
Status: Open
Affected: ["4.2.0"]
---
*This comment was automatically generated by GitHub Actions*
--
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: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org