[
https://issues.apache.org/jira/browse/FLINK-10273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16598919#comment-16598919
]
Timo Walther commented on FLINK-10273:
--------------------------------------
The function returns a proper row type. Registering a view and access the
fields on the view works without problems. I assume that this is a pure Calcite
issue. Or we are not using Calcite correctly. Feel free to dig deeper into
this, if you find time. I will take a deeper look into FLINK-10019 soon, maybe
this issue is just a duplicate of FLINK-10019.
> Access composite type fields after a function
> ---------------------------------------------
>
> Key: FLINK-10273
> URL: https://issues.apache.org/jira/browse/FLINK-10273
> Project: Flink
> Issue Type: Bug
> Components: Table API & SQL
> Affects Versions: 1.7.0
> Reporter: Timo Walther
> Priority: Major
>
> If a function returns a composite type, for example, {{Row(lon: Float, lat:
> Float)}}. There is currently no way of accessing fields.
> Both queries fail with exceptions:
> {code}
> select t.c.lat, t.c.lon FROM (select toCoords(12) as c) AS t
> {code}
> {code}
> select toCoords(12).lat
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)