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-45899][CONNECT] Set errorClass in errorInfoToThrowable #43772

Closed
wants to merge 3 commits into from

Conversation

heyihong
Copy link
Contributor

What changes were proposed in this pull request?

  • Set errorClass in errorInfoToThrowable

Why are the changes needed?

  • errorClass should be set even when error enrichment is not working

Does this PR introduce any user-facing change?

No

How was this patch tested?

build/sbt "connect-client-jvm/testOnly *ClientE2ETestSuite"

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

No

@heyihong
Copy link
Contributor Author

@HyukjinKwon Please take a look

@heyihong heyihong changed the title [SPARK-45899] Set errorClass in errorInfoToThrowable [SPARK-45899][CONNECT] Set errorClass in errorInfoToThrowable Nov 12, 2023
@HyukjinKwon
Copy link
Member

Merged to master.

.setMessage(message)
.addAllErrorTypeHierarchy(classes.toImmutableArraySeq.asJava)
.build()))
.setErrorClass(errorClass)
Copy link
Member

Choose a reason for hiding this comment

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

Just set an error class and don't set message parameters doesn't make any sense. The errorClass is just a "type", it is impossible to create an object SparkThrowable without parameters. The message above is a hole that we will close soon.

Copy link
Member

Choose a reason for hiding this comment

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

Here is the PR #44468

Copy link
Contributor Author

@heyihong heyihong Dec 28, 2023

Choose a reason for hiding this comment

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

Thanks for letting me know! I left some comments in #44468 (comment)

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