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

Reply via email to