You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "godfrey he (JIRA)" <ji...@apache.org> on 2019/06/12 05:48:00 UTC

[jira] [Commented] (FLINK-12811) flink-table-planner-blink compile error

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

godfrey he commented on FLINK-12811:
------------------------------------

There are a few strange ERRORs: 

1. 

 
{code:java}
10:32:18.057 [ERROR] /home/travis/build/apache/flink/flink-table/flink-table-planner-blink/src/main/java/org/apache/flink/table/planner/PlannerContext.java:[132,33] incompatible types: org.apache.calcite.plan.RelOptPlanner is not a functional interface 10:32:18.058 [ERROR] multiple non-overriding abstract methods found in interface org.apache.calcite.plan.RelOptPlanner{code}
 

while the constructor of *FlinkPlannerImpl* was changed from 
{code:java}
class FlinkPlannerImpl(
    config: FrameworkConfig,
    planner: RelOptPlanner,
    typeFactory: FlinkTypeFactory,
    cluster: RelOptCluster) {
...
}{code}
to

 
{code:java}
class FlinkPlannerImpl(
    config: FrameworkConfig,
    catalogReaderSupplier: JFunction[JBoolean, CalciteCatalogReader],
    typeFactory: FlinkTypeFactory,
    cluster: RelOptCluster) {
...
}{code}
in [FLINK-12795|https://github.com/apache/flink/pull/8677]

2.
{code:java}
10:32:18.063 [ERROR] location: class org.apache.flink.table.planner.PlannerContext
10:32:18.063 [ERROR] /home/travis/build/apache/flink/flink-table/flink-table-planner-blink/src/main/java/org/apache/flink/table/planner/PlannerContext.java:[219,86] incompatible types: scala.collection.mutable.ListBuffer<org.apache.calcite.sql.SqlFunction> cannot be converted to java.util.List<org.apache.calcite.sql.SqlOperator>{code}
the type of *sqlFunctions* in *FunctionCatalog* was change from *ListBuffer[SqlFunction]* to *util.List[SqlOperator]* in [FLINK-12795|https://github.com/apache/flink/pull/8677] too*.*

 

 

No ERRORs are found on latest master branch in local. 

is there any cache in travis ?

> flink-table-planner-blink compile error
> ---------------------------------------
>
>                 Key: FLINK-12811
>                 URL: https://issues.apache.org/jira/browse/FLINK-12811
>             Project: Flink
>          Issue Type: Bug
>          Components: Table SQL / Planner
>            Reporter: vinoyang
>            Priority: Major
>
> {code:java}
> 10:32:18.054 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project flink-table-planner-blink_2.11: Compilation failure: Compilation failure:
> 10:32:18.054 [ERROR] /home/travis/build/apache/flink/flink-table/flink-table-planner-blink/src/main/java/org/apache/flink/table/planner/PlannerContext.java:[35,35] cannot find symbol
> 10:32:18.055 [ERROR] symbol:   class JavaScalaConversionUtil
> 10:32:18.055 [ERROR] location: package org.apache.flink.table.util
> 10:32:18.057 [ERROR] /home/travis/build/apache/flink/flink-table/flink-table-planner-blink/src/main/java/org/apache/flink/table/planner/PlannerContext.java:[132,33] incompatible types: org.apache.calcite.plan.RelOptPlanner is not a functional interface
> 10:32:18.058 [ERROR] multiple non-overriding abstract methods found in interface org.apache.calcite.plan.RelOptPlanner
> 10:32:18.058 [ERROR] /home/travis/build/apache/flink/flink-table/flink-table-planner-blink/src/main/java/org/apache/flink/table/planner/PlannerContext.java:[174,24] cannot find symbol
> 10:32:18.058 [ERROR] symbol:   variable JavaScalaConversionUtil
> 10:32:18.059 [ERROR] location: class org.apache.flink.table.planner.PlannerContext
> 10:32:18.060 [ERROR] /home/travis/build/apache/flink/flink-table/flink-table-planner-blink/src/main/java/org/apache/flink/table/planner/PlannerContext.java:[190,24] cannot find symbol
> 10:32:18.061 [ERROR] symbol:   variable JavaScalaConversionUtil
> 10:32:18.061 [ERROR] location: class org.apache.flink.table.planner.PlannerContext
> 10:32:18.062 [ERROR] /home/travis/build/apache/flink/flink-table/flink-table-planner-blink/src/main/java/org/apache/flink/table/planner/PlannerContext.java:[204,24] cannot find symbol
> 10:32:18.062 [ERROR] symbol:   variable JavaScalaConversionUtil
> 10:32:18.063 [ERROR] location: class org.apache.flink.table.planner.PlannerContext
> 10:32:18.063 [ERROR] /home/travis/build/apache/flink/flink-table/flink-table-planner-blink/src/main/java/org/apache/flink/table/planner/PlannerContext.java:[219,86] incompatible types: scala.collection.mutable.ListBuffer<org.apache.calcite.sql.SqlFunction> cannot be converted to java.util.List<org.apache.calcite.sql.SqlOperator>
> {code}
> log details: [https://api.travis-ci.org/v3/job/544108356/log.txt]
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)