[statefun] Add new state failure in Greetings example

2022-02-12 Thread casel.chen
Hello, I am trying Greeting example of Flink Stateful Functions playground. According to the README.md guide I tried to add previous login location in the state after run the example well in my laptop. I added one more state named "previous_login_location" in UserFn, and print it in GreetingsF

Re: [statefun] Add new state failure in Greetings example

2022-02-14 Thread Igal Shilman
Hello, Make sure that you have added the state when creating the function spec like in this example[1] If that wasn't it, can you send your UserFn? [1] https://github.com/apache/flink-statefun-playground/blob/release-3.2/java/greeter/src/main/java/org/apache/flink/statefun/playground/java/greeter/

Re:Re: [statefun] Add new state failure in Greetings example

2022-02-14 Thread casel.chen
Oh, yes. I missed to add my newly defined ValueSpec as parameter to withValueSpec() method. After placed it works, thank you Igal At 2022-02-15 01:42:39, "Igal Shilman" wrote: Hello, Make sure that you have added the state when creating the function spec like in this example[1]