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: [email protected]
For additional commands, e-mail: [email protected]