You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds multiple values to an array, json_extend flattens arrays into their component values and appends those values to the ends of the arrays.
objects: the Json object is the field being evaluated
[(path key, array values) list]): path key is the json path name of the array and the array values are the values to be added
Each designates an array or value within the object json document. The json_extend function adds the values of the corresponding after the last value of the array designated by the .
Is your feature request related to a problem?
Continue Supporting the PPL Json grammar with adding the next functions:
json_delete(object,[keys list])
objects
: the Json object is the field being evaluated[keys list]
: keys is the list of keys to remove from the objectjson_extend(object, [(path key, array values) list])
json_extend
flattens arrays into their component values and appends those values to the ends of the arrays.objects
: the Json object is the field being evaluated[(path key, array values) list])
: path key is the json path name of the array and the array values are the values to be addedEach designates an array or value within the
object
json document. Thejson_extend
function adds the values of the corresponding after the last value of the array designated by the .What solution would you like?
support the following json_delete
source = accounts | eval contacts = json_delete(contacts, ["addresses.email"])
support the following json_extend
` source = accounts | eval contacts = json_extend(contacts, "addresses.email", json_array("[email protected]", "[email protected]"))
Do you have any additional context?
JSON
extended functions support #667The text was updated successfully, but these errors were encountered: