[
https://issues.apache.org/jira/browse/FLINK-5676?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15842873#comment-15842873
]
Timo Walther edited comment on FLINK-5676 at 1/27/17 1:36 PM:
--------------------------------------------------------------
SQL seems to work:
{code}
SELECT testing.innerPojo.line FROM testing GROUP BY testing.innerPojo.line
{code}
was (Author: twalthr):
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)