[Bug]: no distinction between path and array subscript for json expr #39298
Labels
kind/bug
Issues or changes related a bug
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
Is there an existing issue for this?
Environment
Current Behavior
for current json expr, not differ json path or array subscript, for example:
json['0'][0] means json key is '0', and next 0 is array subscript. json[0][0] means the first array's first element.
but now json['0'][0] and json[0][0] all convert key path to 0.0, and can not differ them.
for postgres, it use different string flag to split them like:
json->'0'->>0, first '0' means path, second 0 means array subscript.
for mysql, it also do it, like:
json_extract(data, '$.'0'[0]), using [0] to specify it is array subscript.
so, we also need to distinct these two situation.
Expected Behavior
No response
Steps To Reproduce
Milvus Log
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: