-
Notifications
You must be signed in to change notification settings - Fork 526
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
refactor(frontend): cleanup infer_type and align with pg #1931
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1931 +/- ##
==========================================
- Coverage 70.94% 70.93% -0.02%
==========================================
Files 617 617
Lines 79946 79870 -76
==========================================
- Hits 56719 56652 -67
+ Misses 23227 23218 -9
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
2818fc0
to
6793bd4
Compare
E::Equal, | ||
E::NotEqual, | ||
E::LessThan, | ||
E::LessThanOrEqual, | ||
E::GreaterThan, | ||
E::GreaterThanOrEqual, | ||
E::In, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did In
go away
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In
is a variadic function that cannot be handled by this func signature map lookup. It will be handled in a later refactor together with case when
.
#1910 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My fault to add it. It should not have been to put in this map.
What's changed and what's your intention?
num_types
should beint2->int4->int8->numeric->float4->float8
.build_binary_funcs
produces all combinations ofexprs * arg1 * arg2
and requires the return types to be the same, which is only useful forcmp
.Checklist
Refer to a related PR or issue link (optional)