You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
(This section helps Arrow developers understand the context and why for this feature, in addition to the what)
I would like to introduce below structs to LogicalPlan and implement the QueryConstraints propagation logic.
Couple of logical optimization Rules(FilterPushDown, ReduceOuterJoin, FilterNullJoinKeys, EliminateFilter, ReduceCrossJoin...) can benefit from it and will simply the logic to deal with predicate/expr processing and will be able to cover more cases.
Exactly! The only major distinction I see is that, these seems to be constraints only for stuff that can be inferred at the logical planning time (so no stats, only schema + the existing query) which in turn might restrict some use cases but also might be much more reliable source. I am still in the middle on how we can unify these though 🤔
Activity
alamb commentedon Nov 17, 2022
Maybe this could be unified somehow with the analysis framework that @isidentical is working on
isidentical commentedon Nov 18, 2022
Exactly! The only major distinction I see is that, these seems to be constraints only for stuff that can be inferred at the logical planning time (so no stats, only schema + the existing query) which in turn might restrict some use cases but also might be much more reliable source. I am still in the middle on how we can unify these though 🤔
alamb commentedon Jan 13, 2026
DataFusion now has https://docs.rs/datafusion/latest/datafusion/common/struct.Constraints.html which is what I think this PR proposes. Closing down