spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "mahmoud mehdi (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-24943) Convert a SQL Struct to StructType
Date Fri, 27 Jul 2018 09:07:00 GMT

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

mahmoud mehdi commented on SPARK-24943:
---------------------------------------

I am working on the ticket.

> Convert a SQL Struct to StructType
> ----------------------------------
>
>                 Key: SPARK-24943
>                 URL: https://issues.apache.org/jira/browse/SPARK-24943
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 2.3.1
>            Reporter: mahmoud mehdi
>            Priority: Minor
>             Fix For: 2.4.0
>
>
> The main goal of this User Story is to add a method to StructType which does the opposite
to what does the sql method.
> For example, for the following SQL Struct : 
> {code:java}
> df.schema.sql
> //STRUCT<`price`: STRUCT<`amount`: BIGINT, `currency`: STRING>>{code}
>  We'll have the following output : 
> {code:java}
> StructType.fromSql(df.schema.sql)
> //StructType(StructField(price,StructType(StructField(amount,LongType,true), //StructField(currency,StringType,true)),true))
> {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


Mime
View raw message