[ https://issues.apache.org/jira/browse/FLINK-4294?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15683462#comment-15683462 ]
ASF GitHub Bot commented on FLINK-4294: --------------------------------------- Github user twalthr commented on a diff in the pull request: https://github.com/apache/flink/pull/2319#discussion_r88884877 --- Diff: docs/dev/table_api.md --- @@ -1656,6 +1656,29 @@ temporalOverlaps(TIMEPOINT, TEMPORAL, TIMEPOINT, TEMPORAL) </td> </tr> + <tr> + <td> + {% highlight java %} +ANY.flatten() +{% endhighlight %} + </td> + <td> + <p>Converts a Flink composite type (such as Tuple, POJO, etc.) and all of its subtypes into a flat representation where every subtype is a separate field.</p> --- End diff -- Currently, they are named "_c0", "_c1" etc. but after thinking about it this is not very nice, because it is difficult to identify POJO fields that don't have a field order. I will try to improve that. > Allow access of composite type fields > ------------------------------------- > > Key: FLINK-4294 > URL: https://issues.apache.org/jira/browse/FLINK-4294 > Project: Flink > Issue Type: New Feature > Components: Table API & SQL > Reporter: Timo Walther > Assignee: Timo Walther > > Currently all Flink CompositeTypes are treated as GenericRelDataTypes. It > would be better to access individual fields of composite types, too. e.g. > {code} > SELECT composite.name FROM composites > SELECT tuple.f0 FROM tuples > 'f0.getField(0) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)