RE: [DISCUSS] Streams DSL/StateStore Refactoring

2017-06-29 Thread Kyle Winkelman
le and if they attempted to reuse the Count for some reason it would throw an error message saying that a store named “my-store” already exists. Thanks, Kyle From: Damian Guy Sent: Thursday, June 29, 2017 3:59 AM To: dev@kafka.apache.org Subject: Re: [DISCUSS] Streams DSL/StateStore Refactoring Hi

RE: [DISCUSS] Streams DSL/StateStore Refactoring

2017-06-28 Thread Kyle Winkelman
I like more of a builder pattern even though others have voiced against it. The reason I like it is because it makes it clear to the user that a call to KGroupedStream#count will return a KTable not some intermediate class that I need to undetstand. When trying to program in the fluent API that

Re: [Vote] KIP-150 - Kafka-Streams Cogroup

2017-06-26 Thread Kyle Winkelman
especially committers to also take a look at > > this > > > proposal and vote. > > > > > > > > > Guozhang > > > > > > > > > On Wed, Jun 7, 2017 at 6:37 PM, Kyle Winkelman < > winkelman.k...@gmail.com > > > > > > wrote: >

Re: [DISCUSS] KIP-150 - Kafka-Streams Cogroup

2017-06-26 Thread Kyle Winkelman
be able to initialize the cogroup > > > > On Wed, Jun 14, 2017 at 3:44 PM Kyle Winkelman > > > wrote: > > > > > I will update the kip to have only the aggregator in the first cogroup > > call > > > and the initializer and serde in the ag

Re: [DISCUSS] KIP-150 - Kafka-Streams Cogroup

2017-06-14 Thread Kyle Winkelman
his. Thus, it might make sense to keep this in mind (or even delay this >> > KIP?). It seems a waste of time to discuss all this if we are going to >> > chance it in 2 month anyway... Just saying. >> > >> > >> > -Matthias >> > >> > On 6/13/17

Re: [DISCUSS] KIP-150 - Kafka-Streams Cogroup

2017-06-14 Thread Kyle Winkelman
;> > builder-like pattern. This might make the whole discussion void if we > do > >> > this. Thus, it might make sense to keep this in mind (or even delay > this > >> > KIP?). It seems a waste of time to discuss all this if we are going to > >> > chance it in 2 month any

Re: [DISCUSS] KIP-150 - Kafka-Streams Cogroup

2017-06-14 Thread Kyle Winkelman
. This might make the whole discussion void if we > do > > > this. Thus, it might make sense to keep this in mind (or even delay > this > > > KIP?). It seems a waste of time to discuss all this if we are going to > > > chance it in 2 month anyway... Just saying. > &g

Re: [DISCUSS] KIP-150 - Kafka-Streams Cogroup

2017-06-13 Thread Kyle Winkelman
er and serde to >>> >>> the >>> >>> final aggregate statement, since the serde only applies to the state >>> store, >>> and the initializer doesn't bear any relation to the first group in >>> particular. It would end up looking like

Re: [DISCUSS] KIP-150 - Kafka-Streams Cogroup

2017-06-08 Thread Kyle Winkelman
>> .cogroup(grouped3, aggregator3) > > >> .aggregate(initializer1, aggValueSerde, storeName1); > > >> > > >> This doesn't have to be a blocker, but I thought it would make the API > > >> just > > >> a tad

Re: [Vote] KIP-150 - Kafka-Streams Cogroup

2017-06-07 Thread Kyle Winkelman
r[ > > >> > > > >> > cart:{Item[no:01]}, > > >> > purchases:{Item[no:07],Item[no:08]}, > > >> > > > >> > wishList:{} > > >> > ] >

Re: [DISCUSS] KIP-150 - Kafka-Streams Cogroup

2017-06-01 Thread Kyle Winkelman
gate class is. > > Cheers, > Damian > > On Wed, 31 May 2017 at 20:09 Kyle Winkelman > wrote: > > > Hello all, > > > > I have spent some more time on this and the best alternative I have come > up > > with is: > > KGroupedStream has a single cogroup

Re: [DISCUSS] KIP-150 - Kafka-Streams Cogroup

2017-05-31 Thread Kyle Winkelman
makes more sense to me but doesnt allow the user to specify different initializers for different tables. Thanks, Kyle On May 24, 2017 7:46 PM, "Kyle Winkelman" wrote: > Yea I really like that idea I'll see what I can do to update the kip and > my pr when I have some t

Re: [DISCUSS] KIP-150 - Kafka-Streams Cogroup

2017-05-24 Thread Kyle Winkelman
able3 = stream.aggregate(/*per-day window*/) > > while underlying we are only using a single store "state-store-name" for > it. > > > Although this feature is out of the scope of this KIP, I'd like to discuss > if we can "leave the door open" to make suc

Re: [DISCUSS] KIP-150 - Kafka-Streams Cogroup

2017-05-24 Thread Kyle Winkelman
te: > Thanks for the proposal Kyle, this is a quite common use case to support > such multi-way table join (i.e. N source tables with N aggregate func) with > a single store and N+1 serdes, I have seen lots of people using the > low-level PAPI to achieve this goal. > > > On Fri

Re: [DISCUSS] KIP-150 - Kafka-Streams Cogroup

2017-05-19 Thread Kyle Winkelman
ould also > be applicable to a co-grouped stream. > > Overall I still think this is a really useful addition, but I feel we > haven't spend much time trying to explore alternative DSLs that could maybe > generalize better or match our existing syntax more closely. > >

[Vote] KIP-150 - Kafka-Streams Cogroup

2017-05-19 Thread Kyle Winkelman
Hello all, I would like to start the vote on KIP-150. https://cwiki.apache.org/confluence/display/KAFKA/KIP-150+-+Kafka-Streams+Cogroup Thanks, Kyle

Re: [DISCUSS] KIP-150 - Kafka-Streams Cogroup

2017-05-16 Thread Kyle Winkelman
e output potentially have more partial results? I.e, for each input on any stream you'd potentially see a record produced? I think it is worth mentioning this. Thanks, Damian On Tue, 16 May 2017 at 12:26 Kyle Winkelman wrote: > No problem, I just wanted to make sure people still had more t

Re: [DISCUSS] KIP-150 - Kafka-Streams Cogroup

2017-05-16 Thread Kyle Winkelman
nfluence/display/KAFKA/Release+Plan+0.11.0.0 < > https://cwiki.apache.org/confluence/display/KAFKA/Release+Plan+0.11.0.0>) > so people are busier than usual. Stay tuned. > > Eno > > On 15 May 2017, at 13:25, Kyle Winkelman > wrote: > > > > Damian Guy, could you l

Re: [DISCUSS] KIP-150 - Kafka-Streams Cogroup

2017-05-15 Thread Kyle Winkelman
Damian Guy, could you let me know if you plan to review this further? There is no rush, but if you dont have any additional comments I could start the voting and finish my WIP PR. Thanks, Kyle On May 9, 2017 11:07 AM, "Kyle Winkelman" wrote: > Eno, is there anyone else that is an

[jira] [Commented] (KAFKA-5206) RocksDBSessionStore doesn't use default aggSerde.

2017-05-09 Thread Kyle Winkelman (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-5206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16003248#comment-16003248 ] Kyle Winkelman commented on KAFKA-5206: --- I have already made a PR but origin

[jira] [Created] (KAFKA-5206) RocksDBSessionStore doesn't use default aggSerde.

2017-05-09 Thread Kyle Winkelman (JIRA)
Kyle Winkelman created KAFKA-5206: - Summary: RocksDBSessionStore doesn't use default aggSerde. Key: KAFKA-5206 URL: https://issues.apache.org/jira/browse/KAFKA-5206 Project: Kafka Issue

[jira] [Commented] (KAFKA-5205) CachingSessionStore doesn't use the default keySerde.

2017-05-09 Thread Kyle Winkelman (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-5205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16003245#comment-16003245 ] Kyle Winkelman commented on KAFKA-5205: --- I have already made a PR but origin

[jira] [Created] (KAFKA-5205) CachingSessionStore doesn't use the default keySerde.

2017-05-09 Thread Kyle Winkelman (JIRA)
Kyle Winkelman created KAFKA-5205: - Summary: CachingSessionStore doesn't use the default keySerde. Key: KAFKA-5205 URL: https://issues.apache.org/jira/browse/KAFKA-5205 Project: Kafka

Re: [DISCUSS] KIP-150 - Kafka-Streams Cogroup

2017-05-09 Thread Kyle Winkelman
ks Kyle, good arguments. > > Eno > > > On May 7, 2017, at 5:06 PM, Kyle Winkelman > wrote: > > > > *- minor: could you add an exact example (similar to what Jay’s example > is, > > or like your Spark/Pig pointers had) to make this super concrete?*

Re: [DISCUSS] KIP-150 - Kafka-Streams Cogroup

2017-05-07 Thread Kyle Winkelman
hing) and perhaps we > > could do the same thing but I'm not sure we know the partitioning so we > may > > need an explicit cogroup command that impllies they are already > > co-partitioned. > > > > -Jay > > > > On Fri, May 5, 2017 at 5:56 AM

Re: [DISCUSS] KIP-150 - Kafka-Streams Cogroup

2017-05-05 Thread Kyle Winkelman
forwards the result. > I need to look into it and think about it a bit more, but it seems like it > could be a useful optimization. > > On Thu, 4 May 2017 at 23:21 Kyle Winkelman > wrote: > > > I sure can. I have added the following description to my KIP. If this >

Re: [DISCUSS] KIP-150 - Kafka-Streams Cogroup

2017-05-04 Thread Kyle Winkelman
f you propose, and it would help to > understand it better. > > Thanks a lot! > > > -Matthias > > > > On 5/4/17 11:39 AM, Kyle Winkelman wrote: > > I have made a pull request. It can be found here. > > > > https://github.com/apache/kafka/pull/2975 >

Re: [DISCUSS] KIP-150 - Kafka-Streams Cogroup

2017-05-04 Thread Kyle Winkelman
some time to look into it tomorrow. For > the > > implementation, can you raise a PR against kafka trunk and mark it as > WIP? > > It will be easier to review what you have done. > > > > Thanks, > > Damian > > > > On Thu, 4 May 2017 at 11:50 Kyle Wink

Re: [DISCUSS] KIP-150 - Kafka-Streams Cogroup

2017-05-04 Thread Kyle Winkelman
I am replying to this in hopes it will draw some attention to my KIP as I haven't heard from anyone in a couple days. This is my first KIP and my first large contribution to the project so I'm sure I did something wrong. ;) On May 1, 2017 4:18 PM, "Kyle Winkelman" wrote: >

[jira] [Created] (KAFKA-5172) CachingSessionStore doesn't fetchPrevious correctly.

2017-05-03 Thread Kyle Winkelman (JIRA)
Kyle Winkelman created KAFKA-5172: - Summary: CachingSessionStore doesn't fetchPrevious correctly. Key: KAFKA-5172 URL: https://issues.apache.org/jira/browse/KAFKA-5172 Project: Kafka

[DISCUSS] KIP-150 - Kafka-Streams Cogroup

2017-05-01 Thread Kyle Winkelman
Thanks, Kyle Winkelman

Edit Permissions for KIP Wiki

2017-05-01 Thread Kyle Winkelman
Hello, I was hoping to get the ability to edit the wiki so I can post a KIP. Username: winkelman.kyle Thanks, Kyle

Re: Kafka-Streams: Cogroup

2017-04-29 Thread Kyle Winkelman
/cwiki.apache.org/confluence/display/KAFKA/ > Kafka+Improvement+Proposals. Could you see if you can add this there? > > Many thanks > Eno > > On Wed, Apr 26, 2017 at 6:00 PM, Kyle Winkelman > wrote: > >> Thank you for your reply. >> >> I have attached my f

Re: Kafka-Streams: Cogroup

2017-04-26 Thread Kyle Winkelman
he sink. > Meanwhile another record can come in. So multiple records can be in the > topology at the same time. > > Thanks > Eno > > > > > > On Fri, Apr 14, 2017 at 8:16 PM, Kyle Winkelman > wrote: > >> Eno, >> Thanks for the response. The figur

Re: Kafka-Streams: Cogroup

2017-04-14 Thread Kyle Winkelman
Eno, Thanks for the response. The figure was just a restatement of my questions. I have made an attempt at a low level processor and it appears to work but it isn't very pretty and was hoping for something at the streams api level. I have written some code to show an example of how I see the Cogro