spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davies Liu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SPARK-10593) sql lateral view same name gives wrong value
Date Mon, 14 Sep 2015 18:48:47 GMT
Davies Liu created SPARK-10593:
----------------------------------

             Summary: sql lateral view same name gives wrong value
                 Key: SPARK-10593
                 URL: https://issues.apache.org/jira/browse/SPARK-10593
             Project: Spark
          Issue Type: Bug
          Components: SQL
            Reporter: Davies Liu


This query will return wrong result:
{code}
select 
id as creativeId, 
insideLayer1.json as json_insideLayer1, 
insideLayer2.json as json_insideLayer2 
from (select '1' id) creatives 
lateral view json_tuple('{"layer1": {"layer2": "text inside layer 2"}}', 'layer1') insideLayer1
as json 
lateral view json_tuple(insideLayer1.json, 'layer2') insideLayer2 as json 
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message