-
Notifications
You must be signed in to change notification settings - Fork 0
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
[POC] function reg full transform scalar merge #91
[POC] function reg full transform scalar merge #91
Conversation
1. FunctionRegistry keeps the old FUNCTION_INFO_MAP only 2. moved Calcite Catalog-based schema.Function registry to its own package; along with a SqlOperator based PinotOperatorTable 3. both CatalogReader and OperatorTable utilizes ground truth function from PinotFunctionRegistry --> will be default once deprecate FunctionRegistry 4. PinotFunctionRegistry provides argument-type based lookup via the same method SqlValidator utilize to lookup routine (and lookup operator overload) 5. clean up multi-stage engine side accordingly
…dynamic operand/return inference
5f65e91
to
89c8335
Compare
@@ -41,7 +41,7 @@ | |||
* - byte[] | |||
*/ | |||
@Retention(RetentionPolicy.RUNTIME) | |||
@Target(ElementType.METHOD) | |||
@Target({ElementType.METHOD, ElementType.TYPE}) |
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.
I would suggest to use AutoService instead of this annotation, but in case we still use it, I would remove the ElementType.METHOD, because we are only going to look for classes annotated with this, right?
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.
for majority of the methods we can simply support method annotation (most of these are static, single-impl, concrete type)
part of the design in this POC is merged into apache#12302 |
@ScalarFunction(names = {"dateTrunc", "date_trunc"}) | ||
public static class dateTruncScalarFunctions { |
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.
changes that needs to be made to all ScalarFunction
with TransformFunctionType
associated with
No description provided.