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-43252][SQL] Replace the error class _LEGACY_ERROR_TEMP_2016 with an internal error #42846

Closed
wants to merge 3 commits into from

Conversation

dengziming
Copy link
Member

What changes were proposed in this pull request?

Replace the legacy error class _LEGACY_ERROR_TEMP_2016 with an internal error as it is not triggered by the user space.

Why are the changes needed?

As the error is not triggered by the user space, the legacy error class can be replaced by an internal error.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Existing test cases.

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

No.

@github-actions github-actions bot added the SQL label Sep 7, 2023
@dengziming
Copy link
Member Author

ping @MaxGekk

@@ -117,7 +117,7 @@ class CodeBlockSuite extends SparkFunSuite {

test("Throws exception when interpolating unexpected object in code block") {
val obj = Tuple2(1, 1)
val e = intercept[IllegalArgumentException] {
val e = intercept[SparkException] {
code"$obj"
}
assert(e.getMessage().contains(s"Can not interpolate ${obj.getClass.getName}"))
Copy link
Member

Choose a reason for hiding this comment

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

As you are here, please, use checkError to check the error class and other parameters.

@MaxGekk
Copy link
Member

MaxGekk commented Sep 11, 2023

Waiting for CI.

@MaxGekk
Copy link
Member

MaxGekk commented Sep 11, 2023

@dengziming Could you resolve conflicts, please.

@MaxGekk
Copy link
Member

MaxGekk commented Sep 12, 2023

+1, LGTM. Merging to master.
Thank you, @dengziming.

@MaxGekk MaxGekk closed this in 6565ae4 Sep 12, 2023
@dengziming dengziming deleted the SPARK-43252 branch September 12, 2023 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants