Skip to content
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

branch-3.0: [fix](hive) support query hive view created by spark #43552

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

github-actions[bot]
Copy link
Contributor

Cherry-picked from #43530

### 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>
@doris-robot
Copy link

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@doris-robot
Copy link

run buildall

@morningman morningman closed this Nov 11, 2024
@morningman morningman reopened this Nov 11, 2024
@morningman
Copy link
Contributor

run buildall

@morningman morningman merged commit fbf81f4 into branch-3.0 Nov 12, 2024
22 of 23 checks passed
@dataroaring dataroaring deleted the auto-pick-43530-branch-3.0 branch December 27, 2024 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants