-
Notifications
You must be signed in to change notification settings - Fork 762
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
chore(query): support domain contains in string type #15023
Merged
Merged
Conversation
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
github-actions
bot
added
the
pr-feature
this PR introduces a new feature to the codebase
label
Mar 19, 2024
sundy-li
changed the title
feat(query): support domain contains in string type
chore(query): support domain contains in string type
Mar 19, 2024
github-actions
bot
added
the
pr-chore
this PR only has small changes that no need to record, like coding styles.
label
Mar 19, 2024
mysql> select min(counterid), max(counterid) from hits;
+----------------+----------------+
| min(counterid) | max(counterid) |
+----------------+----------------+
| 17 | 262115 |
+----------------+----------------+
1 row in set (4.90 sec)
Read 99997497 rows, 381.46 MiB in 4.860 sec., 20.58 million rows/sec., 78.49 MiB/sec.
mysql> explain select counterid from hits where counterid in (1,32,3,2453,5,435,4,54,645,65,65,6,5,65, 434,43,4,3,43,4,3,4,3,43,4,3,43);
+-------------------------------------------------------------------------------------------------------------------------------------+
| explain |
+-------------------------------------------------------------------------------------------------------------------------------------+
| TableScan |
| ├── table: default.default.hits |
| ├── output columns: [counterid (#6)] |
| ├── read rows: 17294727 |
| ├── read bytes: 246878 |
| ├── partitions total: 761 |
| ├── partitions scanned: 133 |
| ├── pruning stats: [segments: <range pruning: 1 to 1>, blocks: <range pruning: 761 to 133, bloom pruning: 0 to 0>] |
| ├── push downs: [filters: [contains([1, 32, 3, 2453, 5, 435, 4, 54, 645, 65, 6, 434, 43], hits.counterid (#6))], limit: NONE] |
| └── estimated rows: 19999499.40 |
+-------------------------------------------------------------------------------------------------------------------------------------+
10 rows in set (4.29 sec)
Read 0 rows, 0.00 B in 4.236 sec., 0 rows/sec., 0.00 B/sec.
|
leiysky
approved these changes
Mar 19, 2024
andylokandy
reviewed
Mar 19, 2024
andylokandy
reviewed
Mar 19, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
pr-chore
this PR only has small changes that no need to record, like coding styles.
pr-feature
this PR introduces a new feature to the codebase
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.
I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/
Summary
support domain contains in string type
Tests
Type of change