spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wenchen Fan (JIRA)" <>
Subject [jira] [Commented] (SPARK-15140) ensure input object of encoder is not null
Date Sun, 22 May 2016 00:01:20 GMT


Wenchen Fan commented on SPARK-15140:

I'm a little worried about supporting null input object here, what should the serialized row
be? a null row or a row with all fields null?

> ensure input object of encoder is not null
> ------------------------------------------
>                 Key: SPARK-15140
>                 URL:
>             Project: Spark
>          Issue Type: Improvement
>            Reporter: Wenchen Fan
> Current we assume the input object for encoder won't be null, but we don't check it.
For example, in 1.6 `Seq("a", null).toDS.collect` will throw NPE, in 2.0 this will return
Array("a", null).
> We should define this behaviour more clearly.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message