Skip to content

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

Development

Successfully merging this pull request may close these issues.

3 participants