You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Martin Junghanns (JIRA)" <ji...@apache.org> on 2019/03/15 10:20:00 UTC
[jira] [Created] (SPARK-27174) Support casting integer types to
BinaryType
Martin Junghanns created SPARK-27174:
----------------------------------------
Summary: 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
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