You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Nick Dimiduk (JIRA)" <ji...@apache.org> on 2017/02/16 19:09:41 UTC
[jira] [Closed] (SPARK-19614) add type-preserving null function
[ https://issues.apache.org/jira/browse/SPARK-19614?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nick Dimiduk closed SPARK-19614.
--------------------------------
Resolution: Invalid
> add type-preserving null function
> ---------------------------------
>
> Key: SPARK-19614
> URL: https://issues.apache.org/jira/browse/SPARK-19614
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 2.1.0
> Reporter: Nick Dimiduk
> Priority: Trivial
>
> There's currently no easy way to extend the columns of a DataFrame with null columns that also preserves the type. {{lit(null)}} evaluates to {{Literal(null, NullType)}}, despite any subsequent hinting, for instance with {{Column.as(String, Metadata)}}. This comes up when programmatically munging data from disparate sources. A function such as {{null(DataType)}} would be nice.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org