Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sql/analyzer: Avoid pruning columns of nodes under an IndexedJoin, since the IndexedJoin expression itself is inscrutable. #319

Merged
merged 2 commits into from
Mar 2, 2021

Conversation

reltuk
Copy link
Contributor

@reltuk reltuk commented Feb 27, 2021

No description provided.

…nce the IndexedJoin expression itself is inscrutable.
@reltuk reltuk requested a review from zachmu February 27, 2021 00:36
@@ -52,6 +52,9 @@ func getFiltersByTable(n sql.Node) (filtersByTable, error) {
}
filters.merge(fs)
}
if o, ok := node.(sql.OpaqueNode); ok {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This got mixed in here. Finding filter expressions across opaque nodes is not what we want.

Copy link
Member

@zachmu zachmu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but should have a test to reproduce the bug you fixed

@reltuk reltuk merged commit b294161 into master Mar 2, 2021
@Hydrocharged Hydrocharged deleted the aaron/do-not-prune-columns-under-indexedjoin branch December 8, 2021 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants