Details
-
New Feature
-
Status: Open
-
Not a Priority
-
Resolution: Unresolved
-
None
-
None
Description
We want to use the row value constructor and CAST to create a named row, or even nested named row, e.g.
CREATE TYPE myrowtype AS (f1 INTEGER, f2 VARCHAR(10)) SELECT CAST(ROW(intField, "test") AS myrowtype) AS myRow FROM myTable;
So if converted to JSON, the output will be
{"myRow":{"f0": ${intField}, "f1":"test"}}
.
Attachments
Issue Links
- is blocked by
-
FLINK-8039 Add a type SQL DDL
- Open
There are no Sub-Tasks for this issue.