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

Clean up and improve error message for KyuubiBaseResultSet #6828

Closed
wants to merge 2 commits into from

Conversation

pan3793
Copy link
Member

@pan3793 pan3793 commented Nov 28, 2024

Why are the changes needed?

Backport apache/hive@2b0e424

The commit does not have a Hive ticket.

How was this patch tested?

Pass GHA to ensure it breaks nothing, and verify locally that the reported error message does contain the data when failing to parse the illegal date.

image

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

No.

}
} catch (Exception e) {
throw new KyuubiSQLException("Cannot convert column " + columnIndex + " to date: " + e, e);
Copy link
Member Author

Choose a reason for hiding this comment

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

it's horrible that the previously reported error message does not contain the illegal data!

@pan3793 pan3793 self-assigned this Nov 28, 2024
@pan3793 pan3793 added this to the v1.9.3 milestone Nov 28, 2024
@codecov-commenter
Copy link

codecov-commenter commented Nov 28, 2024

Codecov Report

Attention: Patch coverage is 0% with 96 lines in your changes missing coverage. Please review.

Project coverage is 0.00%. Comparing base (2ab2789) to head (b6e03a6).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
...g/apache/kyuubi/jdbc/hive/KyuubiBaseResultSet.java 0.00% 96 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff           @@
##           master   #6828   +/-   ##
======================================
  Coverage    0.00%   0.00%           
======================================
  Files         687     687           
  Lines       42439   42439           
  Branches     5791    5792    +1     
======================================
  Misses      42439   42439           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pan3793
Copy link
Member Author

pan3793 commented Nov 29, 2024

scala 2.13 test failure is irrelevant

@pan3793 pan3793 closed this in 68a6f48 Nov 29, 2024
pan3793 added a commit that referenced this pull request Nov 29, 2024
…tSet

### Why are the changes needed?

Backport apache/hive@2b0e424

The commit does not have a Hive ticket.

### How was this patch tested?

Pass GHA to ensure it breaks nothing, and verify locally that the reported error message does contain the data when failing to parse the illegal date.

![image](https://github.com/user-attachments/assets/ba210160-c9cb-4539-8b28-0f445b6ce9a5)

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

No.

Closes #6828 from pan3793/hive-jdbc-2b0e424.

Closes #6828

b6e03a6 [Cheng Pan] KyuubiSQLException
63861af [Cheng Pan] Backport Hive 2b0e424 - Clean up and improve error message for KyuubiBaseResultSet

Authored-by: Cheng Pan <[email protected]>
Signed-off-by: Cheng Pan <[email protected]>
(cherry picked from commit 68a6f48)
Signed-off-by: Cheng Pan <[email protected]>
pan3793 added a commit that referenced this pull request Nov 29, 2024
…tSet

### Why are the changes needed?

Backport apache/hive@2b0e424

The commit does not have a Hive ticket.

### How was this patch tested?

Pass GHA to ensure it breaks nothing, and verify locally that the reported error message does contain the data when failing to parse the illegal date.

![image](https://github.com/user-attachments/assets/ba210160-c9cb-4539-8b28-0f445b6ce9a5)

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

No.

Closes #6828 from pan3793/hive-jdbc-2b0e424.

Closes #6828

b6e03a6 [Cheng Pan] KyuubiSQLException
63861af [Cheng Pan] Backport Hive 2b0e424 - Clean up and improve error message for KyuubiBaseResultSet

Authored-by: Cheng Pan <[email protected]>
Signed-off-by: Cheng Pan <[email protected]>
(cherry picked from commit 68a6f48)
Signed-off-by: Cheng Pan <[email protected]>
@pan3793
Copy link
Member Author

pan3793 commented Nov 29, 2024

Thanks, merged to master/1.10.1/1.9.3

@bowenliang123
Copy link
Contributor

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants