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

[SPARK-48808][SQL] Fix NPE when connecting thriftserver through Hive 1.2.1 and the result schema is empty #47213

Closed
wants to merge 2 commits into from

Conversation

yaooqinn
Copy link
Member

@yaooqinn yaooqinn commented Jul 4, 2024

What changes were proposed in this pull request?

Lower Hive JDBC/Thrift Client doesn't test whether columns are null or not before handling it. In this PR, we set an empty list to it if the result schema is empty

Why are the changes needed?

bugfix for lower hive clients

Does this PR introduce any user-facing change?

no

How was this patch tested?

tested offline by @wangyum

Was this patch authored or co-authored using generative AI tooling?

no

@github-actions github-actions bot added the SQL label Jul 4, 2024
@yaooqinn
Copy link
Member Author

yaooqinn commented Jul 4, 2024

cc @wangyum

Copy link
Member

@wangyum wangyum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

@yaooqinn yaooqinn closed this in c73c412 Jul 4, 2024
@yaooqinn
Copy link
Member Author

yaooqinn commented Jul 4, 2024

Thank you @wangyum for the review and test. Merged to master

@yaooqinn yaooqinn deleted the SPARK-48808 branch July 4, 2024 13:59
ericm-db pushed a commit to ericm-db/spark that referenced this pull request Jul 10, 2024
…1.2.1 and the result schema is empty

### What changes were proposed in this pull request?

Lower Hive JDBC/Thrift Client doesn't test whether columns are null or not before handling it. In this PR, we set an empty list to it if the result schema is empty

### Why are the changes needed?

bugfix for lower hive clients

### Does this PR introduce _any_ user-facing change?

no

### How was this patch tested?

tested offline by wangyum

### Was this patch authored or co-authored using generative AI tooling?

no

Closes apache#47213 from yaooqinn/SPARK-48808.

Lead-authored-by: Kent Yao <yao@apache.org>
Co-authored-by: Yuming Wang <yumwang@ebay.com>
Signed-off-by: Kent Yao <yao@apache.org>
attilapiros pushed a commit to attilapiros/spark that referenced this pull request Oct 4, 2024
…1.2.1 and the result schema is empty

### What changes were proposed in this pull request?

Lower Hive JDBC/Thrift Client doesn't test whether columns are null or not before handling it. In this PR, we set an empty list to it if the result schema is empty

### Why are the changes needed?

bugfix for lower hive clients

### Does this PR introduce _any_ user-facing change?

no

### How was this patch tested?

tested offline by wangyum

### Was this patch authored or co-authored using generative AI tooling?

no

Closes apache#47213 from yaooqinn/SPARK-48808.

Lead-authored-by: Kent Yao <yao@apache.org>
Co-authored-by: Yuming Wang <yumwang@ebay.com>
Signed-off-by: Kent Yao <yao@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants