Skip to content

Conversation

@viirya
Copy link
Member

@viirya viirya commented Dec 20, 2015

JIRA: https://issues.apache.org/jira/browse/SPARK-12445

Current toCatalystArray doesn't check if given array is null or not. We should check it to prevent java.lang.NullPointerException.

@SparkQA
Copy link

SparkQA commented Dec 20, 2015

Test build #48079 has finished for PR 10401 at commit 086bf00.

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Can this test be done with the encoder tests?

@SparkQA
Copy link

SparkQA commented Dec 22, 2015

Test build #48196 has finished for PR 10401 at commit 296196e.

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

@viirya
Copy link
Member Author

viirya commented Dec 23, 2015

retest this please.

@viirya
Copy link
Member Author

viirya commented Dec 23, 2015

retest this please.

@SparkQA
Copy link

SparkQA commented Dec 23, 2015

Test build #48228 has finished for PR 10401 at commit 296196e.

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

@viirya
Copy link
Member Author

viirya commented Dec 28, 2015

ping @marmbrus @davies @cloud-fan Can you see if this patch is ok to merge? Thanks.

Copy link
Contributor

Choose a reason for hiding this comment

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

A simple idea is to set propafateNull = true for NewInstance, and it's also fixed in #10443 which makes false as default value for propagateNull.

Copy link
Member Author

Choose a reason for hiding this comment

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

ok. I think this can be closed.

Copy link
Member Author

Choose a reason for hiding this comment

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

Will #10443 be merged soon? I think I have another pr depending this fixing.

@viirya viirya closed this Dec 28, 2015
asfgit pushed a commit that referenced this pull request Dec 30, 2015
…Instance

Most of cases we should propagate null when call `NewInstance`, and so far there is only one case we should stop null propagation: create product/java bean. So I think it makes more sense to propagate null by dafault.

This also fixes a bug when encode null array/map, which is firstly discovered in #10401

Author: Wenchen Fan <[email protected]>

Closes #10443 from cloud-fan/encoder.
marmbrus pushed a commit to marmbrus/spark that referenced this pull request Jan 7, 2016
…Instance

Most of cases we should propagate null when call `NewInstance`, and so far there is only one case we should stop null propagation: create product/java bean. So I think it makes more sense to propagate null by dafault.

This also fixes a bug when encode null array/map, which is firstly discovered in apache#10401

Author: Wenchen Fan <[email protected]>

Closes apache#10443 from cloud-fan/encoder.
@viirya viirya deleted the fix-array-null branch December 27, 2023 18:32
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