We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
json_set
Is your feature request related to a problem?
As part of the RFC to add JSON functions, the json_set function would be useful to set or update elements of an existing json_object.
JSON
What solution would you like?
### `JSON_SET` **Description** `json_set(doc, path, value [, path, value]...)` Updates existing or adds new json elements to a json document at the specified paths. Returns the updated document. **Arguments type:** JSON_OBJECT, STRING, STRING | JSON_OBJECT | JSON_ARRAY, ... **Return type:** JSON_OBJECT Example: os> source=people | eval updated = json_set('{"a":[{"b":1},{"b":2}]}', '$.a[*].b', 3) | head 1 | fields updated fetched rows / total rows = 1/1 +-------------------------+ | updated | +-------------------------+ | {"a":[{"b":3},{"b":3}]} | +-------------------------+
What alternatives have you considered?
N/A
Do you have any additional context?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Is your feature request related to a problem?
As part of the RFC to add JSON functions, the
json_set
function would be useful to set or update elements of an existing json_object.JSON
extended functions support #3027JSON
extended functions support #3028JSON
functions: construction and extraction opensearch-spark#780What solution would you like?
What alternatives have you considered?
N/A
Do you have any additional context?
The text was updated successfully, but these errors were encountered: