spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Capwell (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SPARK-23552) Dataset.withColumn does not allow overriding of a struct field
Date Thu, 01 Mar 2018 18:27:00 GMT
David Capwell created SPARK-23552:
-------------------------------------

             Summary: 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


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


Mime
View raw message