Skip to content

Conversation

@viirya
Copy link
Member

@viirya viirya commented May 13, 2021

What changes were proposed in this pull request?

This patch replaces sys.err usages with explicit exception types.

Why are the changes needed?

Motivated by the previous comment #32519 (comment), it sounds better to replace sys.err usages with explicit exception type.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Existing tests.

@github-actions github-actions bot added the SQL label May 13, 2021
case _ =>
sys.error("Unsupported natural join type " + joinType)
throw QueryExecutionErrors.unsupportedNaturalJoinTypeError(joinType)

Copy link
Member

Choose a reason for hiding this comment

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

nit. extra space.

Copy link
Member Author

Choose a reason for hiding this comment

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

Removed. Thanks.

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

Looks fine and consistent to me.

@SparkQA
Copy link

SparkQA commented May 13, 2021

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/43023/

@SparkQA
Copy link

SparkQA commented May 13, 2021

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/43023/

@SparkQA
Copy link

SparkQA commented May 13, 2021

Test build #138503 has finished for PR 32535 at commit 122d853.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
  • new RuntimeException(s\"Failed to convert value $value (class of $cls) \" +

Copy link
Member

@srowen srowen left a comment

Choose a reason for hiding this comment

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

It will change the exception type, but, the exception generated now is uselessly broad anyway. I think it's fine.

@SparkQA
Copy link

SparkQA commented May 13, 2021

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/43038/

@SparkQA
Copy link

SparkQA commented May 13, 2021

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/43038/

@dongjoon-hyun
Copy link
Member

Merged to master for Apache Spark 3.2.0.
Thank you, @viirya and all!

@viirya
Copy link
Member Author

viirya commented May 13, 2021

Thank you @dongjoon-hyun @maropu @srowen

@SparkQA
Copy link

SparkQA commented May 13, 2021

Test build #138517 has finished for PR 32535 at commit 98b2183.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@viirya viirya deleted the replace-sys-err branch December 27, 2023 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants