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-40426][SQL] Return a map from SparkThrowable.getMessageParameters #37871

Closed
wants to merge 2 commits into from

Conversation

MaxGekk
Copy link
Member

@MaxGekk MaxGekk commented Sep 13, 2022

What changes were proposed in this pull request?

In the PR, I propose to change the SparkThrowable interface:

  1. Return a map of parameters names to their values from getMessageParameters()
  2. Remove getParameterNames() because the names can be retrieved from getMessageParameters().

Why are the changes needed?

To simplifies implementation and improve code maintenance.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

By running affected test suites:

$ build/sbt "core/testOnly *SparkThrowableSuite"
$ build/sbt "sql/testOnly org.apache.spark.sql.SQLQueryTestSuite"

@MaxGekk MaxGekk changed the title [WIP][SQL] Return a map from SparkThrowable.getMessageParameters [SPARK-40426][SQL] Return a map from SparkThrowable.getMessageParameters Sep 14, 2022
@MaxGekk MaxGekk marked this pull request as ready for review September 14, 2022 16:07
@MaxGekk
Copy link
Member Author

MaxGekk commented Sep 14, 2022

cc @srielau @anchovYu Could you review this PR, please.

@HyukjinKwon
Copy link
Member

Merged to master.

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