You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Timo Walther (JIRA)" <ji...@apache.org> on 2017/01/27 13:33:24 UTC
[jira] [Commented] (FLINK-5676) Grouping on nested fields does not
work
[ https://issues.apache.org/jira/browse/FLINK-5676?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15842873#comment-15842873 ]
Timo Walther commented on FLINK-5676:
-------------------------------------
SQL has the same issue:
{code}
tEnv.sql("SELECT * FROM testing GROUP BY testing.innerPojo.line");
{code}
leads to
{code}
Expression 'testing.innerPojo' is not being grouped
{code}
> Grouping on nested fields does not work
> ---------------------------------------
>
> Key: FLINK-5676
> URL: https://issues.apache.org/jira/browse/FLINK-5676
> Project: Flink
> Issue Type: Bug
> Components: Table API & SQL
> Reporter: Timo Walther
>
> {code}
> tEnv
> .fromDataSet(pojoWithinnerPojo)
> .groupBy("innerPojo.get('line')")
> .select("innerPojo.get('line')")
> {code}
> fails with
> {code}
> ValidationException: Cannot resolve [innerPojo] given input ['innerPojo.get(line)].
> {code}
> I don't know if we want to support that but the exception should be more helpful anyway.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)