You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2019/03/15 11:02:00 UTC

[jira] [Assigned] (SPARK-27174) Support casting integer types to BinaryType

     [ https://issues.apache.org/jira/browse/SPARK-27174?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Apache Spark reassigned SPARK-27174:
------------------------------------

    Assignee:     (was: Apache Spark)

> Support casting integer types to BinaryType
> -------------------------------------------
>
>                 Key: SPARK-27174
>                 URL: https://issues.apache.org/jira/browse/SPARK-27174
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 3.0.0
>            Reporter: Martin Junghanns
>            Priority: Minor
>
> Currently, only {{StringType}} can be cast to {{BinaryType}}.
> Integer types also have a well known two's complement binary representation and can therefore be unambiguously cast to {{BinaryType}}.
> This PR adds support for casting
> * {{ByteType}}
> * {{ShortType}}
> * {{IntegerType}}
> * {{LongType}}
> to {{BinaryType}}.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org