Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
SELECT JSON_QUERY('{"items": [{"itemId":1234, "count":10}]}', '$.items' RETURNING ARRAY<STRING>)
returns
['{itemId=1234, count=10}']
but it should:
['{"itemId":1234, "count":10}']
We should call jsonize for Collection types here: https://github.com/apache/flink/blob/f6f88135b3a5fa5616fe905346e5ab6dce084555/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/SqlJsonUtils.java#L268
Attachments
Issue Links
- is related to
-
FLINK-35216 Support for RETURNING clause of JSON_QUERY
- Closed
- links to