Skip to content

Conversation

@nvander1
Copy link
Contributor

@nvander1 nvander1 commented Oct 3, 2019

What changes were proposed in this pull request?

Add an overload for the higher order function filter that takes array index as its second argument to org.apache.spark.sql.functions.

Why are the changes needed?

See: SPARK-28962 and SPARK-27297. Specifically @ueshin pointing out the discrepency here: #24232 (comment)

Does this PR introduce any user-facing change?

How was this patch tested?

Updated the these test suites:

test.org.apache.spark.sql.JavaHigherOrderFunctionsSuite
and
org.apache.spark.sql.DataFrameFunctionsSuite

Copy link
Member

@ueshin ueshin left a comment

Choose a reason for hiding this comment

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

LGTM, pending tests.
Could you add tags to the PR title? [SPARK-28962][SPARK-27297][SQL] should be fine.

@nvander1 nvander1 changed the title Add overload for filter with index to functions object [SPARK-28962][SPARK-27297][SQL] Add overload for filter with index to functions object Oct 3, 2019
@nvander1
Copy link
Contributor Author

nvander1 commented Oct 3, 2019

Sure thing!

@SparkQA
Copy link

SparkQA commented Oct 3, 2019

Test build #111707 has finished for PR 26007 at commit 215df8e.

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

@ueshin
Copy link
Member

ueshin commented Oct 3, 2019

Thanks! merging to master.

@ueshin ueshin closed this in 6f68769 Oct 3, 2019
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