Skip to content

[no-release-notes] BinaryExpression refactor#2272

Merged
zachmu merged 6 commits intomainfrom
zachmu/prepare2
Jan 18, 2024
Merged

[no-release-notes] BinaryExpression refactor#2272
zachmu merged 6 commits intomainfrom
zachmu/prepare2

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

@zachmu zachmu merged commit 3c0fb56 into main Jan 18, 2024
@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