-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
HIVE-28579: Add query id to HiveSQLException #5520
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
difin
force-pushed
the
fix_exception_handling
branch
from
October 28, 2024 22:45
29dcc1c
to
bb75904
Compare
asf-ci-hive
added
tests pending
tests unstable
and removed
tests unstable
tests pending
labels
Oct 28, 2024
deniskuzZ
reviewed
Oct 29, 2024
deniskuzZ
reviewed
Oct 29, 2024
deniskuzZ
reviewed
Oct 29, 2024
service/src/java/org/apache/hive/service/cli/HiveSQLException.java
Outdated
Show resolved
Hide resolved
deniskuzZ
reviewed
Oct 29, 2024
difin
force-pushed
the
fix_exception_handling
branch
from
October 29, 2024 16:00
46fc494
to
fb79fdd
Compare
difin
force-pushed
the
fix_exception_handling
branch
from
October 29, 2024 17:53
fb79fdd
to
5649012
Compare
asf-ci-hive
added
tests pending
tests unstable
and removed
tests unstable
tests pending
labels
Oct 29, 2024
difin
force-pushed
the
fix_exception_handling
branch
from
October 29, 2024 23:53
5649012
to
00a085c
Compare
asf-ci-hive
added
tests pending
tests unstable
and removed
tests unstable
tests pending
labels
Oct 30, 2024
difin
force-pushed
the
fix_exception_handling
branch
from
October 30, 2024 11:41
00a085c
to
632e997
Compare
difin
force-pushed
the
fix_exception_handling
branch
from
November 2, 2024 17:18
7d1fa31
to
93e9a51
Compare
asf-ci-hive
added
tests pending
tests unstable
and removed
tests passed
tests pending
labels
Nov 2, 2024
difin
force-pushed
the
fix_exception_handling
branch
from
November 5, 2024 22:31
93e9a51
to
d5e4f82
Compare
asf-ci-hive
added
tests pending
tests unstable
and removed
tests unstable
tests pending
labels
Nov 5, 2024
ayushtkn
reviewed
Nov 6, 2024
itests/hive-unit/src/test/java/org/apache/hive/jdbc/TestExceptionMessageWithJdbc.java
Outdated
Show resolved
Hide resolved
service/src/java/org/apache/hive/service/cli/HiveSQLException.java
Outdated
Show resolved
Hide resolved
service/src/java/org/apache/hive/service/cli/operation/Operation.java
Outdated
Show resolved
Hide resolved
asf-ci-hive
added
tests pending
tests passed
tests failed
and removed
tests unstable
tests pending
tests passed
labels
Nov 6, 2024
difin
force-pushed
the
fix_exception_handling
branch
from
November 11, 2024 15:49
755aca2
to
8c3bacd
Compare
Quality Gate passedIssues Measures |
ayushtkn
approved these changes
Nov 12, 2024
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
Add query id to HiveSQLException's message. Using query id more info can easily be retrieved from Hiveserver2 log.
Why are the changes needed?
'hive.server2.async.exec.async.compile' = 'true'
and an exception happens, an operational log is not displayed in Beeline and Hue (because stmtHandle is empty) and only exception message is displayed. Query id is not displayed.'hive.server2.async.exec.async.compile' = 'false'
and operational log level != 'NONE', operational log is displayed with query id and exception stack trace and also exception message is displayed.When a query users should know Query ID, because using one they can find stack traces and other info in HiveServer2 log.
Does this PR introduce any user-facing change?
Yes
Is the change a dependency upgrade?
No
How was this patch tested?
Added new JDBC test to test that query id is added to exception message.