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

[POC] function reg full transform scalar merge #91

Conversation

walterddr
Copy link
Owner

No description provided.

Rong Rong added 5 commits December 12, 2023 11:50
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
@walterddr walterddr changed the title POC function reg full transform scalar merge [POC] function reg full transform scalar merge Dec 18, 2023
@walterddr walterddr changed the base branch from master to poc_function_reg_full January 4, 2024 23:11
@walterddr walterddr force-pushed the poc_function_reg_full branch from 5f65e91 to 89c8335 Compare January 5, 2024 17:39
@@ -41,7 +41,7 @@
* - byte[]
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
@Target({ElementType.METHOD, ElementType.TYPE})
Copy link

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?

Copy link
Owner Author

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)

@walterddr
Copy link
Owner Author

part of the design in this POC is merged into apache#12302

Comment on lines 1072 to +1073
@ScalarFunction(names = {"dateTrunc", "date_trunc"})
public static class dateTruncScalarFunctions {
Copy link
Owner Author

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

@walterddr walterddr closed this Mar 9, 2024
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