You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/11/15 11:42:56 UTC
[GitHub] [arrow-datafusion] mingmwang opened a new issue, #4222: Introduce QueryConstraints to LogicalPlan
mingmwang opened a new issue, #4222:
URL: https://github.com/apache/arrow-datafusion/issues/4222
**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 processing and will be able to cover more cases.
struct QueryConstraints {
eq_props: EquivalenceProperties,
null_props: NullProperties,
not_null_props: NotNullProperties,
other_constraints: Vec<Expr>,
}
pub struct EquivalenceProperties {
eq_classes: Vec<EquivalentClass>,
}
pub struct NullProperties {
null_columns: Vec<Column>,
}
pub struct NotNullProperties {
not_null_columns: Vec<Column>,
}
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.
--
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: github-unsubscribe@arrow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [arrow-datafusion] isidentical commented on issue #4222: Introduce QueryConstraints to LogicalPlan
Posted by GitBox <gi...@apache.org>.
isidentical commented on issue #4222:
URL: https://github.com/apache/arrow-datafusion/issues/4222#issuecomment-1320542364
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 🤔
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Introduce QueryConstraints to LogicalPlan [datafusion]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb closed issue #4222: Introduce QueryConstraints to LogicalPlan
URL: https://github.com/apache/datafusion/issues/4222
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
[GitHub] [arrow-datafusion] alamb commented on issue #4222: Introduce QueryConstraints to LogicalPlan
Posted by GitBox <gi...@apache.org>.
alamb commented on issue #4222:
URL: https://github.com/apache/arrow-datafusion/issues/4222#issuecomment-1318949877
Maybe this could be unified somehow with the analysis framework that @isidentical is working on
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Introduce QueryConstraints to LogicalPlan [datafusion]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on issue #4222:
URL: https://github.com/apache/datafusion/issues/4222#issuecomment-3746088977
DataFusion now has https://docs.rs/datafusion/latest/datafusion/common/struct.Constraints.html which is what I think this PR proposes. Closing down
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org