Re: PCollection#applyWindowingStrategyInternal

2024-05-06 Thread Jan Lukavský
tions creates some unnecessary boilerplate code needed on user side.   Jan On 4/6/24 15:45, Jan Lukavský wrote: > Hi,

Re: PCollection#applyWindowingStrategyInternal

2024-04-25 Thread Reuven Lax via dev
>>>>>>> >>>>>>> Flatten.pCollections().withWindowingStrategy(WindowResolution.into(oneInput.getWindowingStrategy())) >>>>>>> >>>>>>> or anything similar. This can be done in user code, so it is not >>&g

Re: PCollection#applyWindowingStrategyInternal

2024-04-25 Thread Jan Lukavský
n On 4/6/24 15:45, Jan Lukavský wrote: > Hi, > > I came across a case where using >

Re: PCollection#applyWindowingStrategyInternal

2024-04-23 Thread Reuven Lax via dev
>>> window (and in fact main inputs are blocked until the side-input window >>>>>> is >>>>>> ready), so we must do a mapping. If for example (and very commonly!) the >>>>>> side input is in the global window and the main input is in a f

Re: PCollection#applyWindowingStrategyInternal

2024-04-23 Thread Jan Lukavský
rote: > Hi, > > I came across a case where using > PCollection#applyWindowingStrategyInternal seems legit in user core. > The case is roughly as follows:

Re: PCollection#applyWindowingStrategyInternal

2024-04-22 Thread Kenneth Knowles
t;>> This is a one-sided merge function, there is a 'main' and 'side' >>>>> input, but the generic symmetric merge might be possible as well. E.g. if >>>>> one PCollection of Flatten is in GlobalWindow, I wonder if there are cases >>>>> where user

Re: PCollection#applyWindowingStrategyInternal

2024-04-16 Thread Reuven Lax via dev
>>>> example side input elements could always map to the previous fixed window >>>> (e.g. while processing window 12-1, you want to see summary data of all >>>> records in the previous window 11-12). Users can do this by providing a >>>> WindowMappin

Re: PCollection#applyWindowingStrategyInternal

2024-04-16 Thread Jan Lukavský
On 4/6/24 15:45, Jan Lukavský wrote: > Hi, > > I came across a case where using > PCollection#applyWindowingStrategyInternal seems legit in user core. > The case is roughly as follows: >

Re: PCollection#applyWindowingStrategyInternal

2024-04-11 Thread Reuven Lax via dev
the View - essentially a function from window to >>> window. Unfortunately this is hard to use (one must create their own >>> PCollectionView class) and very poorly documented, so I doubt many users >>> know about this! >>> >>> Reuven >

Re: PCollection#applyWindowingStrategyInternal

2024-04-11 Thread Jan Lukavský
creates some unnecessary boilerplate code needed on user side.   Jan On 4/6/24 15:45, Jan Lukavský wrote: > Hi, > > I came across a case where using > PCollection#applyWindowingStrategyInternal

Re: PCollection#applyWindowingStrategyInternal

2024-04-10 Thread Reuven Lax via dev
! >> >> Reuven >> >> On Sat, Apr 6, 2024 at 7:09 AM Jan Lukavský wrote: >> >>> Immediate self-correction, although setting the strategy directly via >>> setWindowingStrategyInternal() *seemed* to be working during Pipeline >>> construction tim

Re: PCollection#applyWindowingStrategyInternal

2024-04-10 Thread Jan Lukavský
ilerplate code needed on user side.   Jan On 4/6/24 15:45, Jan Lukavský wrote: > Hi, > > I came across a case where using > PCollection#applyWindowingStrategyInternal seems legit in user core. > The case is roughly as f

Re: PCollection#applyWindowingStrategyInternal

2024-04-09 Thread Kenneth Knowles
ns with incompatible windowFns more user-friendly. The current >> approach where we require the same windowFn for all input PCollections >> creates some unnecessary boilerplate code needed on user side. >> >> Jan >> >> On 4/6/24 15:45, Jan Lukavský wrote: >

Re: PCollection#applyWindowingStrategyInternal

2024-04-09 Thread Jan Lukavský
re the same windowFn for all input PCollections creates some unnecessary boilerplate code needed on user side.   Jan On 4/6/24 15:45, Jan Lukavský wrote: > Hi, > > I came across a case where using > PCollection#applyWindowingStrategyInternal seems legit

Re: PCollection#applyWindowingStrategyInternal

2024-04-06 Thread Reuven Lax via dev
ollections with incompatible windowFns more user-friendly. The current > approach where we require the same windowFn for all input PCollections > creates some unnecessary boilerplate code needed on user side. > > Jan > > On 4/6/24 15:45, Jan Lukavský wrote: > >

Re: PCollection#applyWindowingStrategyInternal

2024-04-06 Thread Jan Lukavský
Lukavský wrote: Hi, I came across a case where using PCollection#applyWindowingStrategyInternal seems legit in user core. The case is roughly as follows:  a) compute some streaming statistics  b) apply the same transform (say ComputeWindowedAggregation) with different parameters

PCollection#applyWindowingStrategyInternal

2024-04-06 Thread Jan Lukavský
Hi, I came across a case where using PCollection#applyWindowingStrategyInternal seems legit in user core. The case is roughly as follows:  a) compute some streaming statistics  b) apply the same transform (say ComputeWindowedAggregation) with different parameters on these statistics