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

Add constant folding #44

Open
JohannesLichtenberger opened this issue Aug 20, 2022 · 2 comments
Open

Add constant folding #44

JohannesLichtenberger opened this issue Aug 20, 2022 · 2 comments

Comments

@JohannesLichtenberger
Copy link
Member

No description provided.

@dvlpsh
Copy link

dvlpsh commented Sep 21, 2024

Hi @JohannesLichtenberger could you add a description for this issue as to what really is to be done?

@JohannesLichtenberger
Copy link
Member Author

At compile time certain expressions can be evaluated already and thus, the AST has to be rewritten: https://gavinray97.github.io/blog/what-good-are-record-patterns

In brackit some rewrites (not constant folding) are already performed: https://github.com/sirixdb/brackit/tree/master/src/main/java/io/brackit/query/compiler/optimizer/walker/topdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants