-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[improve](schema-change) support nested type with varchar type to support length growing #46639
base: master
Are you sure you want to change the base?
[improve](schema-change) support nested type with varchar type to support length growing #46639
Conversation
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
run buildall |
TPC-H: Total hot run time: 32732 ms
|
TPC-DS: Total hot run time: 195928 ms
|
ClickBench: Total hot run time: 31.5 s
|
fe/fe-core/src/main/java/org/apache/doris/alter/SchemaChangeHandler.java
Outdated
Show resolved
Hide resolved
regression-test/suites/schema_change_p0/test_varchar_sc_in_complex.groovy
Show resolved
Hide resolved
regression-test/suites/schema_change_p0/test_varchar_sc_in_complex.groovy
Show resolved
Hide resolved
} | ||
|
||
|
||
sql """ alter table ${tableName} modify column c_a array<varchar(20)> """ |
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.
plz add a case as such like:
alter table ${tableName} modify column c_a array<varchar(20)> after c_s
cuz modify type
+reorder
will do link schema change rather than light schema change
we shall test this case additionaly
regression-test/suites/schema_change_p0/test_varchar_sc_in_complex.groovy
Show resolved
Hide resolved
regression-test/suites/schema_change_p0/test_varchar_sc_in_complex.groovy
Show resolved
Hide resolved
run buildall |
// This method defines the char type or complex type nested char type | ||
// to support the schema-change behavior of length growth. | ||
public boolean isSupportSchemaChangeForCharType(Type other) throws TypeException { | ||
if ((this.getPrimitiveType() == PrimitiveType.VARCHAR && other.getPrimitiveType() == PrimitiveType.VARCHAR) || ( |
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.
seperate this if to a function , and check PrimitiveType.VARCHAR/ isComplexType in seperate branch
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.
done!
TPC-H: Total hot run time: 32793 ms
|
TPC-DS: Total hot run time: 195459 ms
|
ClickBench: Total hot run time: 32.3 s
|
run buildall |
TPC-H: Total hot run time: 32535 ms
|
TPC-DS: Total hot run time: 195776 ms
|
ClickBench: Total hot run time: 31.75 s
|
fe/fe-core/src/main/java/org/apache/doris/alter/SchemaChangeHandler.java
Outdated
Show resolved
Hide resolved
run buildall |
TPC-H: Total hot run time: 32838 ms
|
TPC-DS: Total hot run time: 187817 ms
|
ClickBench: Total hot run time: 31.63 s
|
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.
LGTM
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
run buildall |
TPC-H: Total hot run time: 32562 ms
|
TPC-DS: Total hot run time: 187509 ms
|
ClickBench: Total hot run time: 31.14 s
|
run buildall |
TPC-H: Total hot run time: 32692 ms
|
TPC-DS: Total hot run time: 194958 ms
|
ClickBench: Total hot run time: 31.68 s
|
What problem does this PR solve?
The array|map|struct schema-change behavior supports moditfy to change the length of the varchar type in the current column type.
before
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)