You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Huachao Mao (Jira)" <ji...@apache.org> on 2021/04/29 06:58:00 UTC

[jira] [Created] (FLINK-22524) Fix the incorrect Java groupBy clause in Table API docs

Huachao Mao created FLINK-22524:
-----------------------------------

             Summary: Fix the incorrect Java groupBy clause in Table API docs
                 Key: FLINK-22524
                 URL: https://issues.apache.org/jira/browse/FLINK-22524
             Project: Flink
          Issue Type: Improvement
          Components: Documentation
    Affects Versions: 1.12.2
            Reporter: Huachao Mao


Current groupBy method in [Flink Table API|https://ci.apache.org/projects/flink/flink-docs-release-1.12/dev/table/common.html#table-api] missies a right parentheses
{code:java}
Table revenue = orders
     .filter($("cCountry").isEqual("FRANCE"))
     .groupBy($("cID"), $("cName")
     .select($("cID"), $("cName"), $("revenue").sum().as("revSum"));
{code}

It should be as following

{code:java}
Table revenue = orders
     .filter($("cCountry").isEqual("FRANCE"))
     .groupBy($("cID"), $("cName"))
     .select($("cID"), $("cName"), $("revenue").sum().as("revSum"));
{code}

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)