Re: Proper way to call a Python function in WindowFunction.apply()

2017-03-14 Thread 김동원
Alright, it works perfectly. I checked that my Python methods are properly executed inside RichWindowFunction. Thanks a lot! p.s. for those who wonder why I use Jep, refer to https://sushant-hiray.me/posts/python-in-scala-stack/ to grasp t

Re: Proper way to call a Python function in WindowFunction.apply()

2017-03-14 Thread Chesnay Schepler
Hey, Naturally this would imply that you're script is available on all nodes, so you will have to distribute it manually. On 14.03.2017 17:23, Chesnay Schepler wrote: Hello, I would suggest implementing the RichWindowFunction instead, and instantiate Jep within open(), or maybe do some lazy

Re: Proper way to call a Python function in WindowFunction.apply()

2017-03-14 Thread Chesnay Schepler
Hello, I would suggest implementing the RichWindowFunction instead, and instantiate Jep within open(), or maybe do some lazy instantiation within apply. Regards, Chesnay On 14.03.2017 15:47, 김동원 wrote: Hi all, What is the proper way to call a Python function in WindowFunction.apply()? I