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:13:41 UTC

[jira] [Resolved] (SPARK-23552) Dataset.withColumn does not allow overriding of a struct field

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

Hyukjin Kwon resolved SPARK-23552.
----------------------------------
    Resolution: Incomplete

> Dataset.withColumn does not allow overriding of a struct field
> --------------------------------------------------------------
>
>                 Key: SPARK-23552
>                 URL: https://issues.apache.org/jira/browse/SPARK-23552
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.2.0
>            Reporter: David Capwell
>            Priority: Major
>              Labels: bulk-closed
>
> We have a Dataset with a schema such as the following: 
>  
>  
> {code:java}
> struct<foo: struct<bar: string>>
> {code}
>  
>  
> if we do the following, one would expect to override the type of bar, but instead a new column gets added
>  
>  
> {code:java}
> ds.withColumn("foo.bar", ...){code}
>  
> This produces the following schema
>  
> {code:java}
> struct<foo: struct<bar: string>, foo.bar: ...>{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