You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2023/03/10 16:10:00 UTC

[jira] [Commented] (SPARK-41498) Union does not propagate Metadata output

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

Apache Spark commented on SPARK-41498:
--------------------------------------

User 'cloud-fan' has created a pull request for this issue:
https://github.com/apache/spark/pull/40371

> Union does not propagate Metadata output
> ----------------------------------------
>
>                 Key: SPARK-41498
>                 URL: https://issues.apache.org/jira/browse/SPARK-41498
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 3.1.2, 3.2.0, 3.1.3, 3.2.1, 3.3.0, 3.2.2, 3.3.1
>            Reporter: Fredrik Klauß
>            Assignee: Fredrik Klauß
>            Priority: Major
>             Fix For: 3.4.0
>
>
> Currently, the Union operator does not propagate any metadata output. This makes it impossible to access any metadata if a Union operator is used, even though the children have the exact same metadata output.
> Example:
>  
> {code:java}
> val df1 = spark.read.load(path1)
> val df2 = spark.read.load(path2)
> df1.union(df2).select("_metadata.file_path"). // <-- fails{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org