You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "Etienne Chauchot (JIRA)" <ji...@apache.org> on 2017/07/07 15:22:00 UTC
[jira] [Comment Edited] (BEAM-2499) Fail to merge Custom Windows in
Spark runner
[ https://issues.apache.org/jira/browse/BEAM-2499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16076452#comment-16076452 ]
Etienne Chauchot edited comment on BEAM-2499 at 7/7/17 3:21 PM:
----------------------------------------------------------------
I have started to make SparkAbstractCombineFn generic to allow merging custom windows
was (Author: echauchot):
I have started to remove the IntervalWindow cast and make SparkGlobalCombineFn generic to allow merging custom windows
> Fail to merge Custom Windows in Spark runner
> --------------------------------------------
>
> Key: BEAM-2499
> URL: https://issues.apache.org/jira/browse/BEAM-2499
> 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 PR:
> https://github.com/apache/beam/pull/3286
> 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: https://github.com/apache/beam/blob/master/runners/spark/src/main/java/org/apache/beam/runners/spark/translation/SparkGlobalCombineFn.java#L111
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)