-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[BugFix] Disable Gin for shared data mode and alter gin column into non-string type #44970
Conversation
…on-string type Fix two problem: 1. Disable using Gin in shared data mode. 2. Disable modify column with Gin into non-string type Signed-off-by: srlch <linzichao@starrocks.com>
if (index.getIndexType() == IndexDef.IndexType.GIN) { | ||
if (index.getColumns().contains(oriColumn.getName()) && | ||
!modColumn.getType().isStringType()) { | ||
throw new DdlException("Can't not modify a Column with Gin into Non-String type"); |
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.
throw new DdlException("Can't not modify a Column with Gin into Non-String type"); | |
throw new DdlException("Cannot modify a column with GIN into non-string type"); |
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.
Fixed it
Signed-off-by: srlch <linzichao@starrocks.com>
fe/fe-core/src/test/java/com/starrocks/analysis/GINIndexTest.java
Outdated
Show resolved
Hide resolved
Signed-off-by: srlch <linzichao@starrocks.com>
Quality Gate passedIssues Measures |
[BE Incremental Coverage Report]✅ pass : 0 / 0 (0%) |
[FE Incremental Coverage Report]✅ pass : 8 / 8 (100.00%) file detail
|
@Mergifyio backport branch-3.3 |
✅ Backports have been created
|
…on-string type (StarRocks#44970) Signed-off-by: srlch <linzichao@starrocks.com>
Fix two problem:
Fixes #issue
What type of PR is this:
Does this PR entail a change in behavior?
If yes, please specify the type of change:
Checklist:
Bugfix cherry-pick branch check: