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

Enable a function to perform work during construction rather than each time it is invoked #1583

Open
RCHowell opened this issue Sep 16, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@RCHowell
Copy link
Contributor

Requested Solution/Feature

I was unable to find the old/existing issue related to this, but for some scalar functions it would be useful to pre-compile some inputs or memoize some state. Calcite supports this with FunctionContext on instantiation.

The original example was pre-compiling IonSchema so you can validate inputs without having to recompute the ISL every time.

https://github.com/apache/calcite/blob/main/core/src/main/java/org/apache/calcite/schema/FunctionContext.java

@RCHowell RCHowell added the enhancement New feature or request label Sep 16, 2024
@RCHowell RCHowell changed the title Add Enable a function to perform work during construction rather than each time it is invoked Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant