[ 
https://issues.apache.org/jira/browse/FLINK-4111?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15364807#comment-15364807
 ] 

ASF GitHub Bot commented on FLINK-4111:
---------------------------------------

GitHub user twalthr opened a pull request:

    https://github.com/apache/flink/pull/2209

    [FLINK-4111] [table] Flink Table & SQL doesn't work in very simple example

    Thanks for contributing to Apache Flink. Before you open your pull request, 
please take the following check list into consideration.
    If your changes take all of the items into account, feel free to open your 
pull request. For more information and/or questions please refer to the [How To 
Contribute guide](http://flink.apache.org/how-to-contribute.html).
    In addition to going through the list, please provide a meaningful 
description of your changes.
    
    - [x] General
      - The pull request references the related JIRA issue ("[FLINK-XXX] Jira 
title text")
      - The pull request addresses only one issue
      - Each commit in the PR has a meaningful commit message (including the 
JIRA id)
    
    - [x] Documentation
      - Documentation has been added for new functionality
      - Old documentation affected by the pull request has been updated
      - JavaDoc for public methods has been added
    
    - [x] Tests & Build
      - Functionality added by the pull request is covered by tests
      - `mvn clean verify` has been executed successfully locally or a Travis 
build has passed
    
    This PR reworks the `flink-table` `pom.xml`. It simplifies the file, 
removes unnecessary dependencies and allows to build jobs with `flink-table` 
dependency.
    
    @rmetzger @tillrohrmann Would be great if you could take a look on it.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/twalthr/flink FLINK-4111_2

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/flink/pull/2209.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2209
    
----

----


> Flink Table & SQL doesn't work in very simple example
> -----------------------------------------------------
>
>                 Key: FLINK-4111
>                 URL: https://issues.apache.org/jira/browse/FLINK-4111
>             Project: Flink
>          Issue Type: Bug
>          Components: Table API & SQL
>    Affects Versions: 1.1.0
>            Reporter: Jark Wu
>            Assignee: Timo Walther
>             Fix For: 1.1.0
>
>
> I’m trying to use Flink Table 1.1-SNAPSHOT where I want to use Table API and 
> SQL in my project. But when I run the very simple example WordCountTable, I 
> encountered the following exception : 
> {code}
> Exception in thread "main" java.lang.NoSuchMethodError: 
> org.apache.calcite.rel.logical.LogicalAggregate.getGroupSets()Lorg/apache/flink/shaded/com/google/common/collect/ImmutableList;
>   at 
> org.apache.flink.api.table.plan.rules.dataSet.DataSetAggregateRule.matches(DataSetAggregateRule.scala:47)
>   at 
> org.apache.calcite.plan.volcano.VolcanoRuleCall.matchRecurse(VolcanoRuleCall.java:269)
>   at 
> org.apache.calcite.plan.volcano.VolcanoRuleCall.match(VolcanoRuleCall.java:253)
>   at 
> org.apache.calcite.plan.volcano.VolcanoPlanner.fireRules(VolcanoPlanner.java:1542)
>   at 
> org.apache.calcite.plan.volcano.VolcanoPlanner.registerImpl(VolcanoPlanner.java:1817)
>   at 
> org.apache.calcite.plan.volcano.VolcanoPlanner.register(VolcanoPlanner.java:1038)
>   at 
> org.apache.calcite.plan.volcano.VolcanoPlanner.ensureRegistered(VolcanoPlanner.java:1058)
>   at 
> org.apache.calcite.plan.volcano.VolcanoPlanner.changeTraits(VolcanoPlanner.java:723)
>   at org.apache.calcite.tools.Programs$RuleSetProgram.run(Programs.java:331)
>   at 
> org.apache.flink.api.table.BatchTableEnvironment.translate(BatchTableEnvironment.scala:250)
>   at 
> org.apache.flink.api.scala.table.BatchTableEnvironment.toDataSet(BatchTableEnvironment.scala:139)
>   at 
> org.apache.flink.api.scala.table.TableConversions.toDataSet(TableConversions.scala:41)
>   at com.alibaba.flink.examples.WordCountTable$.main(WordCountTable.scala:43)
>   at com.alibaba.flink.examples.WordCountTable.main(WordCountTable.scala)
> {code}
> It seems that something  wrong with our guava shade. Do you have any ideas? 
> My pom file and WordCountTable.scala are 
> [here|https://gist.github.com/wuchong/9c1c0df3cb7453502abc4605f5347289]. 
> And I found someone have the same problem on stack overflow 
> [http://stackoverflow.com/questions/37835408/org-apache-flink-api-table-tableexception-alias-on-field-reference-expression-e#comment63160086_37838816]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to