[
https://issues.apache.org/jira/browse/SPARK-33292?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dongjoon Hyun resolved SPARK-33292.
-----------------------------------
Fix Version/s: 2.4.8
3.0.2
3.1.0
Resolution: Fixed
Issue resolved by pull request 30190
[https://github.com/apache/spark/pull/30190]
> Make Literal ArrayBasedMapData string representation disambiguous
> -----------------------------------------------------------------
>
> Key: SPARK-33292
> URL: https://issues.apache.org/jira/browse/SPARK-33292
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 2.0.2, 2.1.3, 2.2.3, 2.3.4, 2.4.7, 3.0.1, 3.1.0
> Reporter: Dongjoon Hyun
> Assignee: Dongjoon Hyun
> Priority: Major
> Fix For: 3.1.0, 3.0.2, 2.4.8
>
>
> Literal ArrayBasedMapData has inconsistent string representation from
> `LogicalPlan` to `Optimized Logical Plan/Physical Plan`. Also, the
> representation at `Optimized Logical Plan` and `Physical Plan` is ambiguous
> like `keys: [key1], values: [value1] AS c#0`.
> {code}
> scala> spark.version
> res0: String = 2.4.7
> scala> sql("SELECT map('key1', 'value1') c").explain(true)
> == Parsed Logical Plan ==
> 'Project ['map(key1, value1) AS c#0]
> +- OneRowRelation
> == Analyzed Logical Plan ==
> c: map<string,string>
> Project [map(key1, value1) AS c#0]
> +- OneRowRelation
> == Optimized Logical Plan ==
> Project [keys: [key1], values: [value1] AS c#0]
> +- OneRowRelation
> == Physical Plan ==
> *(1) Project [keys: [key1], values: [value1] AS c#0]
> +- Scan OneRowRelation[]
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]