-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Fix early constant folding for isNull/isNotNul and analyzer. #64695
Merged
Merged
Changes from 1 commit
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
c9ce136
Fix early constant folding for isNull/isNotNul and analyzer.
KochetovNicolai c45f574
Merge branch 'master' into fix-early-const-folding-analyzer
KochetovNicolai c8def45
Fixing tests.
KochetovNicolai c108c51
Fixing test.
KochetovNicolai 0525eeb
Fixing test.
KochetovNicolai 90fdcaa
Merge branch 'master' into fix-early-const-folding-analyzer
KochetovNicolai 2131877
Fixing other tests.
KochetovNicolai 6baae1d
Merge branch 'master' into fix-early-const-folding-analyzer
KochetovNicolai 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
1 change: 1 addition & 0 deletions
1
tests/queries/0_stateless/03164_early_constant_folding_analyzer.reference
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ReadFromPreparedSource (Optimized trivial count) |
30 changes: 30 additions & 0 deletions
30
tests/queries/0_stateless/03164_early_constant_folding_analyzer.sql
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
CREATE TABLE checks | ||
( | ||
`pull_request_number` UInt32, | ||
`commit_sha` LowCardinality(String), | ||
`check_name` LowCardinality(String), | ||
`check_status` LowCardinality(String), | ||
`check_duration_ms` UInt64, | ||
`check_start_time` DateTime, | ||
`test_name` LowCardinality(String), | ||
`test_status` LowCardinality(String), | ||
`test_duration_ms` UInt64, | ||
`report_url` String, | ||
`pull_request_url` String, | ||
`commit_url` String, | ||
`task_url` String, | ||
`base_ref` String, | ||
`base_repo` String, | ||
`head_ref` String, | ||
`head_repo` String, | ||
`test_context_raw` String, | ||
`instance_type` LowCardinality(String), | ||
`instance_id` String, | ||
`date` Date MATERIALIZED toDate(check_start_time) | ||
) | ||
ENGINE = MergeTree ORDER BY (date, pull_request_number, commit_sha, check_name, test_name, check_start_time); | ||
|
||
insert into checks select * from generateRandom() limit 1; | ||
|
||
|
||
select trimLeft(explain) from (explain SELECT count(1) FROM checks WHERE test_name IS NOT NULL SETTINGS allow_experimental_analyzer = 1, allow_experimental_parallel_reading_from_replicas = 0) where explain like '%ReadFromPreparedSource%'; |
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.
Strange formatting