Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 9C853200C84 for ; Mon, 29 May 2017 15:41:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9B15B160BCE; Mon, 29 May 2017 13:41:09 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E1248160BC2 for ; Mon, 29 May 2017 15:41:08 +0200 (CEST) Received: (qmail 97236 invoked by uid 500); 29 May 2017 13:41:08 -0000 Mailing-List: contact issues-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list issues@flink.apache.org Received: (qmail 97227 invoked by uid 99); 29 May 2017 13:41:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 May 2017 13:41:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id A2172C14FD for ; Mon, 29 May 2017 13:41:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id HQn-P61VIRkf for ; Mon, 29 May 2017 13:41:06 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 697D15FBE5 for ; Mon, 29 May 2017 13:41:05 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 7C38EE0AE8 for ; Mon, 29 May 2017 13:41:04 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 1DE7C21B58 for ; Mon, 29 May 2017 13:41:04 +0000 (UTC) Date: Mon, 29 May 2017 13:41:04 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLINK-6736) Fix UDTF codegen bug when window follow by join( UDTF) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 29 May 2017 13:41:09 -0000 [ https://issues.apache.org/jira/browse/FLINK-6736?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16028343#comment-16028343 ] ASF GitHub Bot commented on FLINK-6736: --------------------------------------- Github user twalthr commented on the issue: https://github.com/apache/flink/pull/4008 @sunjincheng121 I will add another ITCase just to be sure. > Fix UDTF codegen bug when window follow by join( UDTF) > ------------------------------------------------------ > > Key: FLINK-6736 > URL: https://issues.apache.org/jira/browse/FLINK-6736 > Project: Flink > Issue Type: Sub-task > Components: Table API & SQL > Affects Versions: 1.3.0 > Reporter: sunjincheng > Assignee: Timo Walther > > When we run the tableAPI as follows: > {code} > val table = stream.toTable(tEnv, 'long.rowtime, 'int, 'double, 'float, 'bigdec, 'date,'pojo, 'string) > val windowedTable = table > .join(udtf2('string) as ('a, 'b)) > .window(Slide over 5.milli every 2.milli on 'long as 'w) > .groupBy('w) > .select('int.count, agg1('pojo, 'bigdec, 'date, 'int), 'w.start, 'w.end) > {code} > We will get the error message: > {code} > 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:933) > at org.apache.flink.runtime.jobmanager.JobManager$$anonfun$handleMessage$1$$anonfun$applyOrElse$7.apply(JobManager.scala:876) > at org.apache.flink.runtime.jobmanager.JobManager$$anonfun$handleMessage$1$$anonfun$applyOrElse$7.apply(JobManager.scala:876) > 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:40) > at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:397) > at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260) > at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339) > at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) > at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107) > 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.table.codegen.Compiler$class.compile(Compiler.scala:36) > at org.apache.flink.table.runtime.CRowCorrelateProcessRunner.compile(CRowCorrelateProcessRunner.scala:35) > at org.apache.flink.table.runtime.CRowCorrelateProcessRunner.open(CRowCorrelateProcessRunner.scala:59) > at org.apache.flink.api.common.functions.util.FunctionUtils.openFunction(FunctionUtils.java:36) > at org.apache.flink.streaming.api.operators.AbstractUdfStreamOperator.open(AbstractUdfStreamOperator.java:111) > at org.apache.flink.streaming.api.operators.ProcessOperator.open(ProcessOperator.java:56) > at org.apache.flink.streaming.runtime.tasks.StreamTask.openAllOperators(StreamTask.java:377) > at org.apache.flink.streaming.runtime.tasks.StreamTask.invoke(StreamTask.java:254) > at org.apache.flink.runtime.taskmanager.Task.run(Task.java:702) > at java.lang.Thread.run(Thread.java:745) > Caused by: org.codehaus.commons.compiler.CompileException: Line 77, Column 62: Unknown variable or type "in2" > at org.codehaus.janino.UnitCompiler.compileError(UnitCompiler.java:11523) > at org.codehaus.janino.UnitCompiler.getType2(UnitCompiler.java:6292) > at org.codehaus.janino.UnitCompiler.access$12900(UnitCompiler.java:209) > at org.codehaus.janino.UnitCompiler$18.visitPackage(UnitCompiler.java:5904) > at org.codehaus.janino.UnitCompiler$18.visitPackage(UnitCompiler.java:5901) > at org.codehaus.janino.Java$Package.accept(Java.java:4074) > at org.codehaus.janino.UnitCompiler.getType(UnitCompiler.java:5901) > at org.codehaus.janino.UnitCompiler.getType2(UnitCompiler.java:6287) > at org.codehaus.janino.UnitCompiler.access$13500(UnitCompiler.java:209) > {code} > The reason is {{val generator = new CodeGenerator(config, false, inputSchema.physicalTypeInfo)}} `physicalTypeInfo` will remove the TimeIndicator. > I think we should fix this. What do you think [~fhueske] [~twalthr] , And hope your suggestions. :) -- This message was sent by Atlassian JIRA (v6.3.15#6346)