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

[no-release-notes] BinaryExpression refactor #2272

Merged
merged 6 commits into from
Jan 18, 2024
Merged

[no-release-notes] BinaryExpression refactor #2272

merged 6 commits into from
Jan 18, 2024

Conversation

zachmu
Copy link
Member

@zachmu zachmu commented Jan 18, 2024

Pulled out a BinaryExpression interface. It's used in the planbuilder phase to determine the type of any bindvars in binary expressions. This makes bindvar type inference for statements like select * from t1 where :v1 + 1 = :v2 work as expected, and works for any binary expression involving a column and a bindvar.

Copy link
Contributor

@max-hoffman max-hoffman left a comment

Choose a reason for hiding this comment

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

LGTM, having binary expressions share a common interface is nice

sql/expression/common.go Show resolved Hide resolved
@zachmu zachmu merged commit 3c0fb56 into main Jan 18, 2024
7 checks passed
@Hydrocharged Hydrocharged deleted the zachmu/prepare2 branch February 7, 2024 13:45
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