-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[opt](hive) add option to get schema from table object #50038
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
Conversation
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
Possible file(s) that should be tracked in LFS detected: 🚨The following file(s) exceeds the file size limit:
Consider using |
|
run buildall |
TPC-H: Total hot run time: 34043 ms |
TPC-DS: Total hot run time: 185333 ms |
ClickBench: Total hot run time: 29.56 s |
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
### What problem does this PR solve? Sometimes user may meet error: ``` Storage schema reading not supported ``` when using hive catalog to query table. Because there are some compatibility issue in hive metastore, see trinodb/trino#2678. So here we provide a catalog property: `get_schema_from_table`. Default is false, which will still get schema from hive metastore like before. If set to true, the schema will be got from `table` object directly, to avoid above error. But notice that if set to true, the default value of column will be ignored because the `table` object does not store this information.
### What problem does this PR solve? Sometimes user may meet error: ``` Storage schema reading not supported ``` when using hive catalog to query table. Because there are some compatibility issue in hive metastore, see trinodb/trino#2678. So here we provide a catalog property: `get_schema_from_table`. Default is false, which will still get schema from hive metastore like before. If set to true, the schema will be got from `table` object directly, to avoid above error. But notice that if set to true, the default value of column will be ignored because the `table` object does not store this information.
…0038 (#50269) Cherry-picked from #50038 Co-authored-by: Mingyu Chen (Rayner) <[email protected]>
…0038 (#50268) Cherry-picked from #50038 Co-authored-by: Mingyu Chen (Rayner) <[email protected]>
### What problem does this PR solve? Sometimes user may meet error: ``` Storage schema reading not supported ``` when using hive catalog to query table. Because there are some compatibility issue in hive metastore, see trinodb/trino#2678. So here we provide a catalog property: `get_schema_from_table`. Default is false, which will still get schema from hive metastore like before. If set to true, the schema will be got from `table` object directly, to avoid above error. But notice that if set to true, the default value of column will be ignored because the `table` object does not store this information.
What problem does this PR solve?
Sometimes user may meet error:
when using hive catalog to query table.
Because there are some compatibility issue in hive metastore, see trinodb/trino#2678.
So here we provide a catalog property:
get_schema_from_table.Default is false, which will still get schema from hive metastore like before.
If set to true, the schema will be got from
tableobject directly, to avoid above error.But notice that if set to true, the default value of column will be ignored because the
tableobjectdoes not store this information.
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)