Skip to content

Conversation

@ulysses-you
Copy link
Contributor

What changes were proposed in this pull request?

Address the #comment.

Why are the changes needed?

Make code robust.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

ut.

@ulysses-you
Copy link
Contributor Author

ulysses-you commented Aug 18, 2020

cc @gatorsmile

I have not changed any code for the #comment, please let me know if you want to do it.

@HyukjinKwon HyukjinKwon changed the title [SPARK-31999][SQL][FOLLOWUP] fix nit and more test case [SPARK-31999][SQL][FOLLOWUP] Adds negative test cases with typos Aug 18, 2020
@SparkQA
Copy link

SparkQA commented Aug 18, 2020

Test build #127517 has finished for PR 29453 at commit 3633d89.

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

@SparkQA
Copy link

SparkQA commented Aug 18, 2020

Test build #127542 has finished for PR 29453 at commit 69b45be.

  • This patch fails due to an unknown error code, -9.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Aug 18, 2020

Test build #127560 has finished for PR 29453 at commit f0a36a1.

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

}.getMessage
assert(msg.contains("Cannot refresh builtin function"))
assert(msg.contains("Cannot refresh built-in function"))
intercept[NoSuchFunctionException] {
Copy link
Member

@maropu maropu Aug 19, 2020

Choose a reason for hiding this comment

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

nit: just in case, could you check the error message, too?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added.

assert(!spark.sessionState.catalog.isRegisteredFunction(func))
sql("REFRESH FUNCTION func1")
assert(spark.sessionState.catalog.isRegisteredFunction(func))
intercept[NoSuchFunctionException] {
Copy link
Member

Choose a reason for hiding this comment

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

ditto

@SparkQA
Copy link

SparkQA commented Aug 19, 2020

Test build #127619 has finished for PR 29453 at commit b99ced4.

  • This patch fails due to an unknown error code, -9.
  • This patch merges cleanly.
  • This patch adds no public classes.

@ulysses-you
Copy link
Contributor Author

cc @maropu @cloud-fan @gatorsmile

@cloud-fan
Copy link
Contributor

thanks, merging to master!

@cloud-fan cloud-fan changed the title [SPARK-31999][SQL][FOLLOWUP] Adds negative test cases with typos [SPARK-31999][SQL][FOLLOWUP] Adds negative test cases with typo fixes Aug 20, 2020
@cloud-fan cloud-fan closed this in 7048fff Aug 20, 2020
@cloud-fan
Copy link
Contributor

BTW @ulysses-you don't forget about #28840 (comment) :)

@ulysses-you
Copy link
Contributor Author

thanks for merging!

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.

4 participants