[
https://issues.apache.org/jira/browse/FLINK-8185?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Timo Walther closed FLINK-8185.
-------------------------------
Resolution: Not A Problem
Blink planner adds a lot of implicits casts and conversion logic to make this
smooth nevertheless.
> Make first level flattening optional for input and output
> ---------------------------------------------------------
>
> Key: FLINK-8185
> URL: https://issues.apache.org/jira/browse/FLINK-8185
> Project: Flink
> Issue Type: Improvement
> Components: Table SQL / API
> Reporter: Timo Walther
> Priority: Minor
> Labels: auto-deprioritized-major
>
> When converting a {{DataSet}}/{{DataStream}} into a table. A composite type
> is automatically flattened to a row of fields, e.g. {{MyPojo<String,
> String>}} becomes {{Row<String, String>}}. There is no possibility to keep
> {{Row<MyPojo<String, String>>}}. This would be especially interesting for
> POJOs that should not be flattened and be converted back to the same type:
> {{toTable[MyPojo]}}.
> At the moment a user has to specify all fields in order to get the same
> behavior.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)