[FEATURE] Add json_object
constructor function to PPL
#3208
Labels
enhancement
New feature or request
json_object
constructor function to PPL
#3208
Is your feature request related to a problem?
As part of the RFC to add JSON functions, the
json_object
function would be useful to construct json objects from multi-values, scalars, and complex objects (and arrays).JSON
extended functions support #3027JSON
extended functions support #3028JSON
functions: construction and extraction opensearch-spark#780What solution would you like?
To consider: Returning JSON objects OR json-encoded strings
to_json_string
or casting to String to output fields or call string-operations.Tasks to complete:
json_object(key, scalar_value [, key, scalar_value])
->json_object
function, where scalar_value is a scalar expression.json_object(key, value [, key, value]*)
->json_object
function, where value may be another json_object.json_object(key, value [, key, value]*)
->json_object
function, where value can be a field expression (for multi-valued fields, take the first value).json_object(key, value [, key, value]*)
->json_object
function, where value can be of json_array.What alternatives have you considered?
N/A
Do you have any additional context?
opensearch-project/opensearch-spark#780 - PR to add feature to opensearch-spark PPL
The text was updated successfully, but these errors were encountered: