beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Etienne Chauchot (JIRA)" <>
Subject [jira] [Commented] (BEAM-2499) Support Custom Windows in Spark runner
Date Fri, 21 Jul 2017 12:45:00 GMT


Etienne Chauchot commented on BEAM-2499:

I'm renaming this ticket and closing the above PR because supporting Custom Windows in Spark
end up being a lot more than making {{SparkGlobalCombineFn}} generic. Indeed, it requires
a complete re-coding of the window merging in a way similar to what is done in {{HashingFlinkCombineRunner}}.

> Support Custom Windows in Spark runner
> --------------------------------------
>                 Key: BEAM-2499
>                 URL:
>             Project: Beam
>          Issue Type: Bug
>          Components: runner-spark
>            Reporter: Etienne Chauchot
>            Assignee: Etienne Chauchot
> If we extend {{IntervalWindow}} and we try to merge these custom windows like in this
> Then spark runner fails with 
> {{org.apache.beam.sdk.Pipeline$PipelineExecutionException: java.lang.ClassCastException:
org.apache.beam.sdk.transforms.windowing.IntervalWindow cannot be cast to org.apache.beam.sdk.transforms.windowing.MergingCustomWindowsTest$CustomWindow}}
> It seems to be because of the cast to {{IntervalWindow}} there:

This message was sent by Atlassian JIRA

View raw message