-
Type:
New Feature
-
Status: Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Table SQL / API
-
Labels:None
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"}}
.
- is blocked by
-
FLINK-8039 Add a type SQL DDL
-
- Open
-
1.
|
Fix Row value constructor |
|
Resolved | Rong Rong |