Skip to content

[SPARK-28962][SPARK-27297][SQL] Add overload for filter with index to functions object#26007

Closed
nvander1 wants to merge 1 commit into
apache:masterfrom
nvander1:add_index_overload_for_filter
Closed

[SPARK-28962][SPARK-27297][SQL] Add overload for filter with index to functions object#26007
nvander1 wants to merge 1 commit into
apache:masterfrom
nvander1:add_index_overload_for_filter

Conversation

@nvander1

@nvander1 nvander1 commented Oct 3, 2019

Copy link
Copy Markdown
Contributor

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

@ueshin ueshin left a comment

Copy link
Copy Markdown
Member

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

nvander1 commented Oct 3, 2019

Copy link
Copy Markdown
Contributor Author

Sure thing!

@SparkQA

SparkQA commented Oct 3, 2019

Copy link
Copy Markdown

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

ueshin commented Oct 3, 2019

Copy link
Copy Markdown
Member

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