You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dongjoon Hyun (Jira)" <ji...@apache.org> on 2020/10/29 22:58:00 UTC
[jira] [Created] (SPARK-33292) Make Literal ArrayBasedMapData
string representation disambiguous
Dongjoon Hyun created SPARK-33292:
-------------------------------------
Summary: 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: 3.0.1, 2.4.7, 3.1.0
Reporter: Dongjoon Hyun
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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org