You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Timo Walther (JIRA)" <ji...@apache.org> on 2018/08/31 12:30:00 UTC

[jira] [Created] (FLINK-10273) Access composite type fields after a function

Timo Walther created FLINK-10273:
------------------------------------

             Summary: 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 &amp; SQL
            Reporter: Timo Walther


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)