-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[multistage] clean up transform function type #11726
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
[multistage] clean up transform function type #11726
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #11726 +/- ##
=========================================
Coverage 63.08% 63.08%
Complexity 1117 1117
=========================================
Files 2342 2342
Lines 125797 125889 +92
Branches 19336 19360 +24
=========================================
+ Hits 79358 79419 +61
- Misses 40785 40817 +32
+ Partials 5654 5653 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
db184f3 to
0d9a304
Compare
| "arraylength", "arrayaverage", "arraymin", "arraymax", "arraysum", | ||
| "valuein", "mapvalue", "inidset", "lookup", "groovy", | ||
| "timeconvert", "datetimeconvert", "jsonextractscalar", "jsonextractkey", "clpdecode", | ||
| "arraylength", "arrayaverage", "arraymin", "arraymax", "arraysum", "clpdecode", "groovy", |
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.
other than the ignored list here, all other functions (including their alternative naming are registered in FunctionRegistry (e.g. has correspondent in ScalarFunction impl)
| NOT_EQUALS("not_equals"), | ||
| GREATER_THAN("greater_than"), | ||
| GREATER_THAN_OR_EQUAL("greater_than_or_equal"), | ||
| NOT_EQUALS("not_equals", "notEquals"), |
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.
Do we need these aliases for auto-generated functions? If so, why skipping LESS_THAN and NOT_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.
lol good catch. :-)
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.
technically we dont need any of these. but we already have ComparisonFunctions in scalar with these names so added lessThan but not notIn b/c we dont have that
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.
This is not the correct way to decide whether to add them though. Eventually we need scalar function for all of them, but that is orthogonal to this problem.
Does postgreSQL support these functions? If so, we need to add them, if not, we should not add them
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.
So 2 options. Either we allow underscore on both scalar and transform. Or we don't allow them in neither.
Problem is that transform function in v1 allows underscore so for backward compatibility we need to register them. It is not about syntax.
For syntax sake we should not allow underscore format all together.
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.
discussed offline. will remove these in separate PR as we should not allow these function explicitly being called. They are not consider SqlFunction but SqlOperators to begin with
due to the fact that we do allow these already in release 1.0, we will use a separate PR to deprecate them explicitly with backward-incompat flag
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.
see #11734
registration of the transform function is not complete with
_separate and camelCase naming.TODO: add tests to pinot-query-runtime (separate b/c there are bug fixes required)
CC @xiangfu0 @Jackie-Jiang