You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (JIRA)" <ji...@apache.org> on 2019/05/21 04:21:35 UTC
[jira] [Updated] (SPARK-10501) support UUID as an atomic type
[ https://issues.apache.org/jira/browse/SPARK-10501?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hyukjin Kwon updated SPARK-10501:
---------------------------------
Labels: bulk-closed (was: )
> support UUID as an atomic type
> ------------------------------
>
> Key: SPARK-10501
> URL: https://issues.apache.org/jira/browse/SPARK-10501
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Reporter: Jon Haddad
> Priority: Minor
> Labels: bulk-closed
>
> It's pretty common to use UUIDs instead of integers in order to avoid distributed counters.
> I've added this, which at least lets me load dataframes that use UUIDs that I can cast to strings:
> {code}
> class UUIDType(AtomicType):
> pass
> _type_mappings[UUID] = UUIDType
> _atomic_types.append(UUIDType)
> {code}
> But if I try to do anything else with the UUIDs, like this:
> {code}
> ratings.select("userid").distinct().collect()
> {code}
> I get this pile of fun:
> {code}
> scala.MatchError: UUIDType (of class org.apache.spark.sql.cassandra.types.UUIDType$)
> {code}
--
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