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

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

GitHub user walterddr opened a pull request:

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

    [FLINK-7357] [table] Created extended rules for 
WindowStartEndPropertiesRule on Having clause

    

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

    $ git pull https://github.com/walterddr/flink FLINK-7357

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

    https://github.com/apache/flink/pull/4521.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 #4521
    
----
commit 12e6737e3612de94885cc8c16d341b7e2c607370
Author: Rong Rong <ro...@uber.com>
Date:   2017-08-10T17:46:25Z

    make WindowStartEndPropertiesRule abstract and create extended rules for 
Having clause

----


> HOP_START() HOP_END() does not work when using HAVING clause with GROUP BY 
> HOP window
> -------------------------------------------------------------------------------------
>
>                 Key: FLINK-7357
>                 URL: https://issues.apache.org/jira/browse/FLINK-7357
>             Project: Flink
>          Issue Type: Bug
>          Components: Table API & SQL
>    Affects Versions: 1.3.1
>            Reporter: Rong Rong
>            Assignee: Rong Rong
>
> The following SQL does not compile:
> {code:title=invalid_having_hop_start_sql}
> SELECT 
>   c AS k, 
>   COUNT(a) AS v, 
>   HOP_START(rowtime, INTERVAL '1' MINUTE, INTERVAL '1' MINUTE) AS 
> windowStart, 
>   HOP_END(rowtime, INTERVAL '1' MINUTE, INTERVAL '1' MINUTE) AS windowEnd 
> FROM 
>   T1 
> GROUP BY 
>   HOP(rowtime, INTERVAL '1' MINUTE, INTERVAL '1' MINUTE), 
>   c 
> HAVING 
>   SUM(b) > 1
> {code}
> While individually keeping HAVING clause or HOP_START field compiles and runs 
> without issue.
> more details: 
> https://github.com/apache/flink/compare/master...walterddr:having_does_not_work_with_hop_start_end



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to