-
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
[Feature] Support orc_use_column_names property in session variable #42777
Conversation
b8deca7
to
d7d6266
Compare
fe/fe-core/src/main/java/com/starrocks/connector/hive/ORCFormatDesc.java
Outdated
Show resolved
Hide resolved
fe/fe-core/src/main/java/com/starrocks/connector/RemoteFileDesc.java
Outdated
Show resolved
Hide resolved
613201d
to
9fe6300
Compare
Signed-off-by: Smith Cruise <chendingchao1@126.com>
Signed-off-by: Smith Cruise <chendingchao1@126.com>
9fe6300
to
134a84a
Compare
Quality Gate passedIssues Measures |
[FE Incremental Coverage Report]✅ pass : 2 / 2 (100.00%) file detail
|
[BE Incremental Coverage Report]✅ pass : 84 / 101 (83.17%) file detail
|
@@ -827,6 +827,7 @@ Status HiveDataSource::_init_scanner(RuntimeState* state) { | |||
} else if (format == THdfsFileFormat::PARQUET) { | |||
scanner = _pool.add(new HdfsParquetScanner()); | |||
} else if (format == THdfsFileFormat::ORC) { | |||
scanner_params.orc_use_column_names = state->query_options().orc_use_column_names; |
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.
CHECK IF SET or not. And bette put in the same aread as other query options.
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.
I've already defined the default value in thrift
@mergify backport branch-3.2 branch-3.1 |
✅ Backports have been created
|
Why I'm doing:
We only support to mapping orc column by position, but we need also support mapping by column name(Support Hive schema evolution).
What I'm doing:
Support it by session variable.
If you want to mapping orc by column names, set
orc_use_column_names=true
in session variable.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: