spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Spark (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-2854) Finalize _acceptable_types in pyspark.sql
Date Tue, 05 Aug 2014 22:11:11 GMT

    [ https://issues.apache.org/jira/browse/SPARK-2854?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14086877#comment-14086877
] 

Apache Spark commented on SPARK-2854:
-------------------------------------

User 'yhuai' has created a pull request for this issue:
https://github.com/apache/spark/pull/1793

> Finalize _acceptable_types in pyspark.sql
> -----------------------------------------
>
>                 Key: SPARK-2854
>                 URL: https://issues.apache.org/jira/browse/SPARK-2854
>             Project: Spark
>          Issue Type: Task
>          Components: SQL
>            Reporter: Yin Huai
>            Priority: Blocker
>
> In PySpark, _acceptable_types defines accepted Python data types for every Spark SQL
data type. The list is shown below. 
> {code}
> _acceptable_types = {
>     BooleanType: (bool,),
>     ByteType: (int, long),
>     ShortType: (int, long),
>     IntegerType: (int, long),
>     LongType: (int, long),
>     FloatType: (float,),
>     DoubleType: (float,),
>     DecimalType: (decimal.Decimal,),
>     StringType: (str, unicode),
>     TimestampType: (datetime.datetime, datetime.time, datetime.date),
>     ArrayType: (list, tuple, array),
>     MapType: (dict,),
>     StructType: (tuple, list),
> }
> {code}
> Let's double check this mapping before 1.1 release.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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


Mime
View raw message