spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nick Dimiduk (JIRA)" <>
Subject [jira] [Created] (SPARK-19614) add type-preserving null function
Date Wed, 15 Feb 2017 22:46:41 GMT
Nick Dimiduk created SPARK-19614:

             Summary: add type-preserving null function
                 Key: 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 {{, 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

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

View raw message