jackwener opened a new pull request, #4192:
URL: https://github.com/apache/arrow-datafusion/pull/4192
# Which issue does this PR close?
Closes #3864.
We can propagate `empty_relation` to eliminate useless plan.
```sql
| logical_plan after eliminate_filter | Projection:
t1.column1 |
| | Inner Join:
t1.column1 = ta1.column1 |
| |
TableScan: t1 |
| |
Projection: ta1.column1, alias=ta1 |
| |
Projection: t2.column1, alias=ta1 |
| | Inner
Join: t2.column1 = ta2.column1 |
| |
TableScan: t2 |
| |
Projection: ta2.column1, alias=ta2 |
| |
Projection: t3.column1, alias=ta2 |
| |
EmptyRelation |
| logical_plan after eliminate_limit | EmptyRelation
|
```
# Rationale for this change
# What changes are included in this PR?
# Are these changes tested?
# Are there any user-facing changes?
<!--
If there are user-facing changes then we may require documentation to be
updated before approving the PR.
-->
<!--
If there are any breaking changes to public APIs, please add the `api
change` label.
-->
--
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]