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

Tzu-Li (Gordon) Tai closed FLINK-20268.
---------------------------------------
    Resolution: Fixed

statefun/master: e82c2a0c40d5c00c758ad164bc1441ddb4c8567c

> Update Python SDK to implement new invocation protocol
> ------------------------------------------------------
>
>                 Key: FLINK-20268
>                 URL: https://issues.apache.org/jira/browse/FLINK-20268
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Stateful Functions
>            Reporter: Tzu-Li (Gordon) Tai
>            Assignee: Tzu-Li (Gordon) Tai
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: statefun-2.3.0
>
>
> The Python SDK should be updated to implement the new protocol introduced by 
> FLINK-20265.
> Users should be able to declare states the Python function uses, and with 
> information, the Python SDK {{RequestReplyHandler}} can then match on the 
> provided states values in invocation requests against the declared states of 
> a target function:
> Proposed API:
> {code}
> @functions.bind(
>     typename="example/greeter",
>     states=[StateSpec("seen_count")])
> def greet(context, greet_request: GreetRequest):
>     state = context.state("seen_count").unpack(SeenCount)
>     ...
> {code}



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

Reply via email to