-
Notifications
You must be signed in to change notification settings - Fork 594
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
frontend: merge is_const
and fold_const
(eval
)
#15768
Comments
is_const
and fold_const
is_const
and fold_const
This even seems unnecessary. What about always building the expressions and evaluating it on an empty row, then treat any returned error as "not able to do constant-folding"? The point is that we don't have to care about select true or (k / 0)::boolean from (values (1)) t(k); |
is_const
and fold_const
is_const
and fold_const
(eval
)
A draft demonstrating the idea: #15777 |
I believe this will increase building cost especially when the expression takes a relatively long time to build, narrowing down the types of expressions to build at the beginning (e.g., only from |
Does it sound like this, but have we verified it (for example, through flamegraph)? I'm unsure if this overhead is non-negligible. |
This issue has been open for 60 days with no activity. Could you please update the status? Feel free to continue discussion or close as not planned. |
Originally posted by @BugenZhao in #15758 (review)
cc @xxchan @st1page @xiangjinwu for discussion
The text was updated successfully, but these errors were encountered: