Skip to content

Conversation

@rxin
Copy link
Contributor

@rxin rxin commented May 9, 2017

What changes were proposed in this pull request?

For some reason we don't have an API to register UserDefinedFunction as named UDF. It is a no brainer to add one, in addition to the existing register functions we have.

How was this patch tested?

Added a test case in UDFSuite for the new API.

@SparkQA
Copy link

SparkQA commented May 9, 2017

Test build #76642 has started for PR 17915 at commit 55421ea.

@gatorsmile
Copy link
Member

retest this please

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

def register(
name: String,
udaf: UserDefinedAggregateFunction): UserDefinedAggregateFunction = {
def register(name: String, udaf: UserDefinedAggregateFunction): UserDefinedAggregateFunction = {
Copy link
Member

Choose a reason for hiding this comment

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

nit: Is there any change from the previous one at this line?

Copy link
Member

Choose a reason for hiding this comment

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

No, I think it's just style change.

Copy link
Member

Choose a reason for hiding this comment

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

Is it better to change the style?

@SparkQA
Copy link

SparkQA commented May 9, 2017

Test build #76646 has finished for PR 17915 at commit 55421ea.

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

@viirya
Copy link
Member

viirya commented May 9, 2017

LGTM

@gatorsmile
Copy link
Member

Thanks! Merging to master/2.2

@asfgit asfgit closed this in d099f41 May 9, 2017
asfgit pushed a commit that referenced this pull request May 9, 2017
## What changes were proposed in this pull request?
For some reason we don't have an API to register UserDefinedFunction as named UDF. It is a no brainer to add one, in addition to the existing register functions we have.

## How was this patch tested?
Added a test case in UDFSuite for the new API.

Author: Reynold Xin <[email protected]>

Closes #17915 from rxin/SPARK-20674.

(cherry picked from commit d099f41)
Signed-off-by: Xiao Li <[email protected]>
liyichao pushed a commit to liyichao/spark that referenced this pull request May 24, 2017
## What changes were proposed in this pull request?
For some reason we don't have an API to register UserDefinedFunction as named UDF. It is a no brainer to add one, in addition to the existing register functions we have.

## How was this patch tested?
Added a test case in UDFSuite for the new API.

Author: Reynold Xin <[email protected]>

Closes apache#17915 from rxin/SPARK-20674.
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