[ 
https://issues.apache.org/jira/browse/FLINK-21922?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dian Fu updated FLINK-21922:
----------------------------
    Summary: The method partition_by in Over doesn't work for expression dsl  
(was: The method partition_by in Over doesn't work)

> The method partition_by in Over doesn't work for expression dsl
> ---------------------------------------------------------------
>
>                 Key: FLINK-21922
>                 URL: https://issues.apache.org/jira/browse/FLINK-21922
>             Project: Flink
>          Issue Type: Bug
>          Components: API / Python
>    Affects Versions: 1.12.0
>            Reporter: Dian Fu
>            Assignee: Dian Fu
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.13.0, 1.12.3
>
>
> For the following example:
> {code}
> t = t_env.from_elements([(1, 1, "Hello")], ['a', 'b', 'c'])
> result = t.over_window(
>  Over.partition_by(t.c)
>  .order_by("a")
>  .preceding(expr.row_interval(2))
>  .following(expr.CURRENT_ROW)
>  .alias("w"))
> {code}
> It will throw the following exception:
> {code}
> org.apache.flink.api.python.shaded.py4j.Py4JException: Method 
> partitionBy([class org.apache.flink.table.api.ApiExpression]) does not 
> existorg.apache.flink.api.python.shaded.py4j.Py4JException: Method 
> partitionBy([class org.apache.flink.table.api.ApiExpression]) does not exist 
> at 
> org.apache.flink.api.python.shaded.py4j.reflection.ReflectionEngine.getMethod(ReflectionEngine.java:318)
>  at 
> org.apache.flink.api.python.shaded.py4j.reflection.ReflectionEngine.getMethod(ReflectionEngine.java:339)
>  at org.apache.flink.api.python.shaded.py4j.Gateway.invoke(Gateway.java:276) 
> at 
> org.apache.flink.api.python.shaded.py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:132)
>  at 
> org.apache.flink.api.python.shaded.py4j.commands.CallCommand.execute(CallCommand.java:79)
>  at 
> org.apache.flink.api.python.shaded.py4j.GatewayConnection.run(GatewayConnection.java:238)
>  at java.lang.Thread.run(Thread.java:748)
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to