Skip to content

Conversation

@ueshin
Copy link
Member

@ueshin ueshin commented Aug 16, 2018

What changes were proposed in this pull request?

This is a follow-up pr of #22017 which added map_zip_with function.
In the test, when creating a lambda function, we use the valueContainsNull values for the nullabilities of the value arguments, but we should've used true as the same as bind method because the values might be null if the keys don't match.

How was this patch tested?

Added small tests and existing tests.

@ueshin
Copy link
Member Author

ueshin commented Aug 16, 2018

cc @mn-mikke @kiszk

@kiszk
Copy link
Member

kiszk commented Aug 16, 2018

LGTM

Copy link
Contributor

@mn-mikke mn-mikke 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!

val MapType(kt, vt1, vcn1) = left.dataType.asInstanceOf[MapType]
val MapType(_, vt2, vcn2) = right.dataType.asInstanceOf[MapType]
MapZipWith(left, right, createLambda(kt, false, vt1, vcn1, vt2, vcn2, f))
val MapType(kt, vt1, _) = left.dataType.asInstanceOf[MapType]
Copy link
Contributor

Choose a reason for hiding this comment

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

Optional suggestion: Maybe we could removeasInstanceOf[MapType] here?

@SparkQA
Copy link

SparkQA commented Aug 16, 2018

Test build #94863 has finished for PR 22126 at commit c005109.

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

@SparkQA
Copy link

SparkQA commented Aug 17, 2018

Test build #94871 has finished for PR 22126 at commit 45d044c.

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

@ueshin
Copy link
Member Author

ueshin commented Aug 17, 2018

Thanks! merging to master.

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.

4 participants