-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix](hive) support query hive view created by spark #43530
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:
|
|
run buildall |
|
run buildall |
|
PR approved by anyone and no changes requested. |
kaka11chen
left a comment
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. |
### What problem does this PR solve? Problem Summary: 1. When using Spark to create hive view, the `inputFormat` saved in hive view is `SequenceFileInputFormat`. I think this is a bug of Spark. Actually, we don't need to check input format for view, so we skip the format check for hive view. 2. Fix a bug that when analyzing hive view, we should set both catalog and db in temporary connection context, otherwise, the parse of hive view sql may fail, and will also reset the default db of current connection context, causing following statement executed in this session failed because no default db is found. Co-authored-by: morningman <yunyou@selectdb.com>
### What problem does this PR solve? Problem Summary: 1. When using Spark to create hive view, the `inputFormat` saved in hive view is `SequenceFileInputFormat`. I think this is a bug of Spark. Actually, we don't need to check input format for view, so we skip the format check for hive view. 2. Fix a bug that when analyzing hive view, we should set both catalog and db in temporary connection context, otherwise, the parse of hive view sql may fail, and will also reset the default db of current connection context, causing following statement executed in this session failed because no default db is found. Co-authored-by: morningman <yunyou@selectdb.com>
) Cherry-picked from #43530 Co-authored-by: Mingyu Chen (Rayner) <morningman@163.com> Co-authored-by: morningman <yunyou@selectdb.com>
) Cherry-picked from #43530 Co-authored-by: Mingyu Chen (Rayner) <morningman@163.com> Co-authored-by: morningman <yunyou@selectdb.com>
What problem does this PR solve?
Problem Summary:
When using Spark to create hive view, the
inputFormatsaved in hive view isSequenceFileInputFormat.I think this is a bug of Spark.
Actually, we don't need to check input format for view, so we skip the format check for hive view.
Fix a bug that when analyzing hive view, we should set both catalog and db in temporary connection context,
otherwise, the parse of hive view sql may fail, and will also reset the default db of current connection context,
causing following statement executed in this session failed because no default db is found.
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)