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

[feature][dingo-executor] Support document index scan filter #1333

Merged
merged 1 commit into from
Jan 14, 2025

Conversation

githubgxll
Copy link
Contributor

[feature][dingo-executor] Support document index scan filter
mysql> describe select count(DESCRIPTION) from test3 where DESCRIPTION = 'Keyboard' group by(id);
+------------------------+---------+------------+--------------+--------------------------------------------------------------------------------+
| id | estRows | task | accessObject | info |
+------------------------+---------+------------+--------------+--------------------------------------------------------------------------------+
| root-collect | 15.0 | root | | |
| dingoRelOp | 15.0 | root | | PROJECT: [_[1]] |
| dingoReduceAggregate | 15.0 | root | | AGG: [0][COUNT()] |
| streaming | 15.0 | root | | |
| dingoScanRelOp | 15.0 | root | | batchSize:40960 |
| tableFullScan | 100.0 | cop[store] | TEST3 | parallel = true,FILTER: [3] == 'Keyboard', PROJECT: [[0]], AGG: [0][COUNT()] |
+------------------------+---------+------------+--------------+--------------------------------------------------------------------------------+
6 rows in set (0.17 sec)

mysql> set enable_document_scan_filter = 'on';
Query OK, 0 rows affected (0.01 sec)

mysql> describe select count(DESCRIPTION) from test3 where DESCRIPTION = 'Keyboard' group by(id);
+--------------------------+---------+------+--------------+--------------------------------------------------------------------------------------------------+
| id | estRows | task | accessObject | info |
+--------------------------+---------+------+--------------+--------------------------------------------------------------------------------------------------+
| root-collect | 15.0 | root | | |
| dingoRelOp | 15.0 | root | | PROJECT: [[1]] |
| dingoReduceAggregate | 15.0 | root | | AGG: [0][COUNT()] |
| streaming | 15.0 | root | | |
| dingoRelOp | 15.0 | root | | AGG: [0][COUNT()] |
| dingoRelOp | 15.0 | root | | PROJECT: [
[0]] |
| documentScanFilter | 15.0 | root | TEXT_INDEX | parallel=true, condition==($3, _UTF-8'Keyboard'), queryStr: DESCRIPTION:"Keyboard", lookup:false |
+--------------------------+---------+------+--------------+--------------------------------------------------------------------------------------------------+

@guojn1 guojn1 merged commit 3f5ad3d into dingodb:develop Jan 14, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants