[fix](fe) Reject multi-column NGRAM_BF indexes#64343
Open
airborne12 wants to merge 1 commit into
Open
Conversation
### What problem does this PR solve?
Issue Number: DORIS-19296
Problem Summary: Creating an NGRAM_BF index with multiple columns passed FE validation and could reach BE tablet creation, where tablet metadata expects each NGRAM_BF index to bind exactly one column. This rejects invalid DDL during FE analysis for both inline table indexes and CREATE INDEX.
### Release note
Reject invalid multi-column NGRAM_BF index definitions during DDL analysis.
### Check List (For Author)
- Test: Unit Test / Build
- ./run-fe-ut.sh --run org.apache.doris.nereids.trees.plans.commands.IndexDefinitionTest
- ./build.sh --fe
- Added regression coverage under index_p0; not run locally because no worktree Doris cluster was started.
- Behavior changed: Yes. Invalid multi-column NGRAM_BF index definitions now fail in FE analysis.
- Does this need documentation: No
Contributor
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
Member
Author
|
run buildall |
Contributor
FE UT Coverage ReportIncrement line coverage |
Contributor
TPC-H: Total hot run time: 29324 ms |
Contributor
TPC-DS: Total hot run time: 169439 ms |
Contributor
FE Regression Coverage ReportIncrement line coverage |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What problem does this PR solve?
Issue Number: DORIS-19296
Related PR: None
Problem Summary:
Creating an NGRAM_BF index with multiple columns passed FE validation and could reach BE tablet creation, where tablet metadata expects each NGRAM_BF index to bind exactly one column. This rejects invalid multi-column NGRAM_BF definitions during FE analysis for both inline table indexes and CREATE INDEX.
Release note
Reject invalid multi-column NGRAM_BF index definitions during DDL analysis.
Check List (For Author)
Test
regression-test/suites/index_p0/test_ngram_bloomfilter_index.groovyfor inline table index and CREATE INDEX paths. Not run locally because no worktree Doris cluster was started../run-fe-ut.sh --run org.apache.doris.nereids.trees.plans.commands.IndexDefinitionTest./build.sh --feBehavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)