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

Bug fix for pushdownSort handling missing cols qualified with a table name #1354

Merged
merged 2 commits into from Oct 28, 2022

Conversation

fulghum
Copy link
Contributor

@fulghum fulghum commented Oct 28, 2022

The Dolt bump for my GMS change to fix an alias issue in sort node pushdown triggered an error with matching missing column names now that we can include qualified column names.

This PR adds a repro for that case to GMS and fixes the issue by ensuring we create a UnresolvedQualifiedColumn when the missing column is qualified with a table name. I've run Dolt tests locally and confirmed there shouldn't be any other test failures in the next bump.

…track qualified columns as the missing columns in pushdownSort, we need to make sure to create UnresolvedQualifiedColumns when we have a table name present.
@fulghum fulghum requested a review from zachmu October 28, 2022 17:56
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!

sql/analyzer/resolve_orderby.go Outdated Show resolved Hide resolved
@fulghum fulghum merged commit adb56cc into main Oct 28, 2022
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.

None yet

2 participants