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 CA3BF200C88 for ; Thu, 18 May 2017 11:43:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C8C8E160BC4; Thu, 18 May 2017 09:43:14 +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 17B95160BB0 for ; Thu, 18 May 2017 11:43:13 +0200 (CEST) Received: (qmail 82906 invoked by uid 500); 18 May 2017 09:43: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 82887 invoked by uid 99); 18 May 2017 09:43:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 May 2017 09:43:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id C7C881A0513 for ; Thu, 18 May 2017 09:43:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-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-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id kuVk49ifMfKC for ; Thu, 18 May 2017 09:43:05 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 997235FBE6 for ; Thu, 18 May 2017 09:43: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 56B87E0D3C for ; Thu, 18 May 2017 09:43:05 +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 4A09A263B0 for ; Thu, 18 May 2017 09:43:04 +0000 (UTC) Date: Thu, 18 May 2017 09:43:04 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLINK-6618) Fix GroupWindowStringExpressionTest testcase bug MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 18 May 2017 09:43:15 -0000 [ https://issues.apache.org/jira/browse/FLINK-6618?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16015503#comment-16015503 ] ASF GitHub Bot commented on FLINK-6618: --------------------------------------- Github user fhueske commented on the issue: https://github.com/apache/flink/pull/3936 Thanks for the update. +1 to merge > Fix GroupWindowStringExpressionTest testcase bug > ------------------------------------------------ > > Key: FLINK-6618 > URL: https://issues.apache.org/jira/browse/FLINK-6618 > Project: Flink > Issue Type: Sub-task > Components: Table API & SQL > Affects Versions: 1.3.0 > Reporter: sunjincheng > Assignee: sunjincheng > > I find 2 bugs as follows: > 1. {{GroupWindowStringExpressionTest}} testcase bug: > {{Assert.assertEquals("Logical Plans do not match", resJava.logicalPlan, resJava.logicalPlan)}} -> {{verifyTableEquals(resJava, resScala)}} > 2. Window properties can not select in JAVA API: > Java Code: > {code} > // String / Java API > val resJava = t > .window(JSlide.over("4.hours").every("2.hours").on("rowtime") as 'w) > .groupBy("w, string") > .select( > "string, " + > "myCountFun(string), " + > "int.sum, " + > "weightAvgFun(long, int), " + > "weightAvgFun(int, int) * 2, " + > "start(w)," + > "end(w)") > {code} > Exception Info: > {code} > org.apache.flink.table.api.ValidationException: Cannot resolve [w] given input [int, long, string, rowtime]. > at org.apache.flink.table.plan.logical.LogicalNode.failValidation(LogicalNode.scala:143) > at org.apache.flink.table.plan.logical.LogicalNode$$anonfun$validate$1.applyOrElse(LogicalNode.scala:86) > at org.apache.flink.table.plan.logical.LogicalNode$$anonfun$validate$1.applyOrElse(LogicalNode.scala:83) > at org.apache.flink.table.plan.TreeNode.postOrderTransform(TreeNode.scala:72) > at org.apache.flink.table.plan.logical.LogicalNode.org$apache$flink$table$plan$logical$LogicalNode$$expressionPostOrderTransform$1(LogicalNode.scala:119) > at org.apache.flink.table.plan.logical.LogicalNode$$anonfun$7$$anonfun$apply$1.apply(LogicalNode.scala:132) > at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244) > at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244) > at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59) > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346)