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

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

GitHub user twalthr opened a pull request:

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

    [FLINK-4252] [table] Validate input and output classes of Table API

    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 adds some pre-checking of input and output types of the Table API.
    


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

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

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

    https://github.com/apache/flink/pull/2507.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 #2507
    
----
commit d4f778a3a569d4e0e381c37c0472eec93338c806
Author: twalthr <twal...@apache.org>
Date:   2016-09-16T12:27:47Z

    [FLINK-4252] [table] Validate input and output classes of Table API

----


> Table program cannot be compiled
> --------------------------------
>
>                 Key: FLINK-4252
>                 URL: https://issues.apache.org/jira/browse/FLINK-4252
>             Project: Flink
>          Issue Type: Bug
>          Components: Table API & SQL
>    Affects Versions: 1.1.0
>         Environment: OS X EI Captain
> scala 2.11.7
> jdk 8
>            Reporter: Renkai Ge
>            Assignee: Timo Walther
>         Attachments: TestMain.scala
>
>
> I'm trying the table apis.
> I got some errors like this
> My code is in the attachments
> ------------------------------------------------------------
>  The program finished with the following exception:
> org.apache.flink.client.program.ProgramInvocationException: The program 
> execution failed: Job execution failed.
>       at 
> org.apache.flink.client.program.ClusterClient.run(ClusterClient.java:413)
>       at 
> org.apache.flink.client.program.StandaloneClusterClient.submitJob(StandaloneClusterClient.java:92)
>       at 
> org.apache.flink.client.program.ClusterClient.run(ClusterClient.java:389)
>       at 
> org.apache.flink.client.program.ClusterClient.run(ClusterClient.java:376)
>       at 
> org.apache.flink.client.program.ContextEnvironment.execute(ContextEnvironment.java:61)
>       at 
> org.apache.flink.api.java.ExecutionEnvironment.execute(ExecutionEnvironment.java:896)
>       at org.apache.flink.api.java.DataSet.collect(DataSet.java:410)
>       at org.apache.flink.api.java.DataSet.print(DataSet.java:1605)
>       at org.apache.flink.api.scala.DataSet.print(DataSet.scala:1672)
>       at TestMain$.main(TestMain.scala:31)
>       at TestMain.main(TestMain.scala)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>       at java.lang.reflect.Method.invoke(Method.java:497)
>       at 
> org.apache.flink.client.program.PackagedProgram.callMainMethod(PackagedProgram.java:509)
>       at 
> org.apache.flink.client.program.PackagedProgram.invokeInteractiveModeForExecution(PackagedProgram.java:403)
>       at 
> org.apache.flink.client.program.ClusterClient.run(ClusterClient.java:331)
>       at 
> org.apache.flink.client.CliFrontend.executeProgram(CliFrontend.java:777)
>       at org.apache.flink.client.CliFrontend.run(CliFrontend.java:253)
>       at 
> org.apache.flink.client.CliFrontend.parseParameters(CliFrontend.java:1005)
>       at org.apache.flink.client.CliFrontend.main(CliFrontend.java:1048)
> Caused by: org.apache.flink.runtime.client.JobExecutionException: Job 
> execution failed.
>       at 
> org.apache.flink.runtime.jobmanager.JobManager$$anonfun$handleMessage$1$$anonfun$applyOrElse$7.apply$mcV$sp(JobManager.scala:853)
>       at 
> org.apache.flink.runtime.jobmanager.JobManager$$anonfun$handleMessage$1$$anonfun$applyOrElse$7.apply(JobManager.scala:799)
>       at 
> org.apache.flink.runtime.jobmanager.JobManager$$anonfun$handleMessage$1$$anonfun$applyOrElse$7.apply(JobManager.scala:799)
>       at 
> scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24)
>       at 
> scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24)
>       at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:41)
>       at 
> akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:401)
>       at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
>       at 
> scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.pollAndExecAll(ForkJoinPool.java:1253)
>       at 
> scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1346)
>       at 
> scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
>       at 
> scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
> Caused by: java.lang.Exception: The user defined 'open(Configuration)' method 
> in class org.apache.flink.api.table.runtime.FlatMapRunner caused an 
> exception: Table program cannot be compiled. This is a bug. Please file an 
> issue.
>       at 
> org.apache.flink.runtime.operators.BatchTask.openUserCode(BatchTask.java:1337)
>       at 
> org.apache.flink.runtime.operators.chaining.ChainedFlatMapDriver.openTask(ChainedFlatMapDriver.java:47)
>       at 
> org.apache.flink.runtime.operators.BatchTask.openChainedTasks(BatchTask.java:1377)
>       at org.apache.flink.runtime.operators.BatchTask.run(BatchTask.java:471)
>       at 
> org.apache.flink.runtime.operators.BatchTask.invoke(BatchTask.java:351)
>       at org.apache.flink.runtime.taskmanager.Task.run(Task.java:584)
>       at java.lang.Thread.run(Thread.java:745)
> Caused by: org.apache.flink.api.common.InvalidProgramException: Table program 
> cannot be compiled. This is a bug. Please file an issue.
>       at 
> org.apache.flink.api.table.runtime.FunctionCompiler$class.compile(FunctionCompiler.scala:37)
>       at 
> org.apache.flink.api.table.runtime.FlatMapRunner.compile(FlatMapRunner.scala:28)
>       at 
> org.apache.flink.api.table.runtime.FlatMapRunner.open(FlatMapRunner.scala:42)
>       at 
> org.apache.flink.api.common.functions.util.FunctionUtils.openFunction(FunctionUtils.java:38)
>       at 
> org.apache.flink.runtime.operators.BatchTask.openUserCode(BatchTask.java:1335)
>       ... 6 more
> Caused by: org.codehaus.commons.compiler.CompileException: Line 46, Column 
> 11: Expression "null" is not a type
>       at org.codehaus.janino.Java$Located.throwCompileException(Java.java:111)
>       at 
> org.codehaus.janino.Java$Atom.toTypeOrCompileException(Java.java:2684)
>       at org.codehaus.janino.Parser.parseBlockStatement(Parser.java:1162)
>       at org.codehaus.janino.Parser.parseBlockStatements(Parser.java:1090)
>       at 
> org.codehaus.janino.Parser.parseMethodDeclarationRest(Parser.java:943)
>       at org.codehaus.janino.Parser.parseClassBodyDeclaration(Parser.java:569)
>       at org.codehaus.janino.Parser.parseClassBody(Parser.java:519)
>       at org.codehaus.janino.Parser.parseClassDeclarationRest(Parser.java:485)
>       at 
> org.codehaus.janino.Parser.parsePackageMemberTypeDeclaration(Parser.java:273)
>       at org.codehaus.janino.Parser.parseCompilationUnit(Parser.java:168)
>       at org.codehaus.janino.SimpleCompiler.cook(SimpleCompiler.java:201)
>       at org.codehaus.janino.SimpleCompiler.cook(SimpleCompiler.java:192)
>       at org.codehaus.commons.compiler.Cookable.cook(Cookable.java:84)
>       at org.codehaus.commons.compiler.Cookable.cook(Cookable.java:77)
>       at 
> org.apache.flink.api.table.runtime.FunctionCompiler$class.compile(FunctionCompiler.scala:34)
>       ... 10 more
> -----------------



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

Reply via email to