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

feat: StorageCnchMergeTree properly supports skipping indices #113

Merged
merged 6 commits into from
Mar 10, 2023

Conversation

canhld94
Copy link
Collaborator

@canhld94 canhld94 commented Feb 27, 2023

I hereby agree to the terms of the CLA available at: [placeholder]

Changelog category (leave one):

  • New Feature

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

  • StorageCnchMergeTree supports using skipping indices in query
  • StorageCnchMergeTree supports ALTER table MATERIALIZE INDEX ...

Closes #102

If you are doing this for the first time, it's recommended to read the lightweight Contributing to ByConity Documentation guide first.

@canhld94
Copy link
Collaborator Author

@Clark0 I temporary disable adaptive index granularity tests, seem it's not working with secondary indexes

@canhld94 canhld94 changed the title WIP: StorageCnchMergeTree supports skipping indices WIP: StorageCnchMergeTree properly supports skipping indices Feb 27, 2023
@canhld94 canhld94 changed the title WIP: StorageCnchMergeTree properly supports skipping indices StorageCnchMergeTree properly supports skipping indices Feb 28, 2023
@canhld94
Copy link
Collaborator Author

canhld94 commented Mar 6, 2023

@hustnn @Clark0 @linkwk7 pls help to review, thanks!

DROP TABLE IF EXISTS indexed_table;
CREATE TABLE indexed_table
( `tm` DateTime,
`log_message` String,
INDEX log_message log_message TYPE tokenbf_v1(4096, 2, 0) GRANULARITY 1
)ENGINE = CnchMergeTree ORDER BY (tm) SETTINGS index_granularity_bytes = 50; --, min_index_granularity_bytes = 40;
) ENGINE = CnchMergeTree ORDER BY (tm); -- SETTINGS index_granularity_bytes = 50; --, min_index_granularity_bytes = 40;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the table with adaptive index granularity support secondary index now?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, loading marks of index files has an exception if enable adaptive index granularity

@canhld94 canhld94 merged commit f2af0b9 into master Mar 10, 2023
@WillemJiang WillemJiang changed the title StorageCnchMergeTree properly supports skipping indices feat: StorageCnchMergeTree properly supports skipping indices May 17, 2023
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.

Several issues with secondary indexes
2 participants