-
Notifications
You must be signed in to change notification settings - Fork 590
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
feat(frontend): apply SessionTimezone
and ConstEvalRewriter
expr rewriters to during gen_{batch,stream}_plan
#7761
Merged
Merged
Changes from 19 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
4b24e1b
apply for stream
jon-chuang 53cd4f4
fix
jon-chuang 7e2e10a
remove the const eval, still need session timezone
jon-chuang 41632e4
commit
jon-chuang 7fd06c6
fix clippy
jon-chuang e3fac9d
stash
jon-chuang ec5ea0d
fix
jon-chuang df8a231
try disable
jon-chuang 36970f0
fix
jon-chuang f942903
minor
jon-chuang a94e7c5
Merge branch 'main' of https://github.com/singularity-data/risingwave…
jon-chuang 2c49c0a
add test changes
jon-chuang 7fa7c22
add fix
jon-chuang f7c6bea
Merge branch 'jon/correclty-evaluate-field-expr' into jon/expr-rewrit…
jon-chuang e286e1b
fix
jon-chuang 1c63997
minor
jon-chuang 3e483d2
fix
jon-chuang 4ffa9e5
minor
jon-chuang 83a24a6
Merge branch 'jon/fix-interval' into jon/expr-rewrite-session-timezone
jon-chuang 8901f4f
Merge branch 'main' of https://github.com/singularity-data/risingwave…
jon-chuang d4cad1e
fix
jon-chuang 375b87c
fix
jon-chuang d3070b6
minor
jon-chuang ecd865a
minor
jon-chuang c10eed3
minor
jon-chuang 5960682
fix
jon-chuang 4cb1966
Merge branch 'main' of https://github.com/singularity-data/risingwave…
jon-chuang 9bf89fa
Merge branch 'main' of https://github.com/singularity-data/risingwave…
jon-chuang a8e05f7
apply
jon-chuang e542b15
fix
jon-chuang 68234db
fix
jon-chuang 305803f
fix
jon-chuang de81675
minor
jon-chuang b35f4cc
fix
jon-chuang 9b3d394
minor
jon-chuang 0c89a49
fix
jon-chuang d9d0301
Merge branch 'jon/fix-array-to-string' into jon/expr-rewrite-session-…
jon-chuang fd65a00
Merge branch 'main' into jon/expr-rewrite-session-timezone
jon-chuang ba62977
Merge branch 'main' into jon/expr-rewrite-session-timezone
jon-chuang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Not necessary to fix in this PR, but we need to investigate why
true AND true
is not folded intotrue
.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.
That is because condition contains conjunctive expressions that are not folded. We can apply the reduction on condition after expressions are rewritten to only retain non-True predicates.
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.
Make sense. The predicate is a
Vec<Expr>
of conjunctions rather than a single expr. So this is expected rather than a bug at some unknown places. We can add this optimization separately (maybe same phase but also handlesCondition(Vec<Expr>)
as an expr).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.
Semantically, a
Condition
with an expressionTrue
is as good as it without that expression. So I think folding the expression away after rewriting it in the same phase is good enough.