Fork me on GitHub
#onyx
<
2018-04-26
>
sparkofreason04:04:23

Is it possible/advisable to have a trigger based on window state?

lucasbradstreet04:04:27

You mean decide whether to trigger based on what is in the window state?

lucasbradstreet04:04:59

If so, yes, that’s perfectly fine. You can set :window-state in http://www.onyxplatform.org/docs/cheat-sheet/latest/#trigger-entry/:trigger/state-context. That way Onyx will not maintain trigger state.

sparkofreason04:04:04

I take it in that case you only need :trigger/trigger-fire? in the trigger definition.

Drew Verlee14:04:13

Does onyx-local rt support water mark functionality? e.g

:onyx/assign-watermark-fn ::watermark-fn
:trigger/on :onyx.triggers/watermark
 :trigger/state-context [:window-state]

dbernal15:04:13

Can an aggregation task happen on multiple peers?

lucasbradstreet20:04:18

@drewverlee should do, though it’s possible we don’t support window-state triggers yet. I think we do though.

lucasbradstreet20:04:56

@dbernal yes. You will end up with hash-routing on the group-by key, and if you have say 10 peers, you will always end up with the same group key on the same peer slot.

👍 4
lucasbradstreet22:04:54

onyx-plugin template 0.12.7.1 is out https://github.com/onyx-platform/onyx-plugin, thanks to the hard work of Joaquim Torres on our gitter.

lucasbradstreet22:04:05

It’s a really big deal as it had not been updated for the new plugin model yet.

👍 24