You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Touopi Touopi (Jira)" <ji...@apache.org> on 2020/05/12 14:41:00 UTC
[jira] [Created] (SPARK-31686) Return of String instead of array in
function get_json_object
Touopi Touopi created SPARK-31686:
-------------------------------------
Summary: Return of String instead of array in function get_json_object
Key: SPARK-31686
URL: https://issues.apache.org/jira/browse/SPARK-31686
Project: Spark
Issue Type: Bug
Components: SQL
Affects Versions: 2.4.5
Environment: {code:json}
// code placeholder
{
customer:{
addesses:[ { {code}
location : arizona
}
]
}
}
get_json_object(string(customer),'$addresses[*].location')
return "arizona"
result expected should be
["arizona"]
Reporter: Touopi Touopi
when we selecting a node of a json object that is array,
When the array contains One element , the get_json_object return a String with " characters instead of an array of One element.
--
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