Skip to content

Conversation

@rxin
Copy link
Contributor

@rxin rxin commented Jul 31, 2018

What changes were proposed in this pull request?

When user calls anUDAF with the wrong number of arguments, Spark previously throws an AssertionError, which is not supposed to be a user-facing exception. This patch updates it to throw AnalysisException instead, so it is consistent with a regular UDF.

How was this patch tested?

Updated test case udaf.sql.

@holdensmagicalunicorn
Copy link

@rxin, thanks! I am a bot who has found some folks who might be able to help with the review:@gatorsmile, @cloud-fan and @yhuai

@SparkQA
Copy link

SparkQA commented Aug 1, 2018

Test build #93843 has finished for PR 21938 at commit 84262dc.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@gatorsmile
Copy link
Member

retest this please

@SparkQA
Copy link

SparkQA commented Aug 1, 2018

Test build #93862 has finished for PR 21938 at commit 84262dc.

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

Copy link
Member

@gatorsmile gatorsmile left a comment

Choose a reason for hiding this comment

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

LGTM

Thanks! Merged to master.

@asfgit asfgit closed this in 1efffb7 Aug 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants