-
Notifications
You must be signed in to change notification settings - Fork 28.5k
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-31999][SQL][FOLLOWUP] Adds negative test cases with typo fixes #29453
Conversation
cc @gatorsmile I have not changed any code for the #comment, please let me know if you want to do it. |
Test build #127517 has finished for PR 29453 at commit
|
Test build #127542 has finished for PR 29453 at commit
|
Test build #127560 has finished for PR 29453 at commit
|
@@ -3035,7 +3035,10 @@ abstract class DDLSuite extends QueryTest with SQLTestUtils { | |||
val msg = intercept[AnalysisException] { | |||
sql("REFRESH FUNCTION md5") | |||
}.getMessage | |||
assert(msg.contains("Cannot refresh builtin function")) | |||
assert(msg.contains("Cannot refresh built-in function")) | |||
intercept[NoSuchFunctionException] { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added.
sql("CREATE FUNCTION func1 AS 'test.org.apache.spark.sql.MyDoubleAvg'") | ||
assert(!spark.sessionState.catalog.isRegisteredFunction(func)) | ||
sql("REFRESH FUNCTION func1") | ||
assert(spark.sessionState.catalog.isRegisteredFunction(func)) | ||
intercept[NoSuchFunctionException] { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
Test build #127619 has finished for PR 29453 at commit
|
thanks, merging to master! |
BTW @ulysses-you don't forget about #28840 (comment) :) |
thanks for merging! |
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.