Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ms-access/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google cloud dataflow 为什么在apachebeam中我会得到错误:“quot;TypeError:使用SessionWindow时无法将GlobalWindow转换为_IntervalWindowBase?_Google Cloud Dataflow_Apache Beam - Fatal编程技术网

Google cloud dataflow 为什么在apachebeam中我会得到错误:“quot;TypeError:使用SessionWindow时无法将GlobalWindow转换为_IntervalWindowBase?

Google cloud dataflow 为什么在apachebeam中我会得到错误:“quot;TypeError:使用SessionWindow时无法将GlobalWindow转换为_IntervalWindowBase?,google-cloud-dataflow,apache-beam,Google Cloud Dataflow,Apache Beam,当我使用间隔为1小时的会话窗口时,在处理了数百万条消息后,我在日志中发现了错误,可能只是针对某些行: TypeError:无法将GlobalWindow转换为apache_beam.utils.windowed_值。\u IntervalWindowBase 代码: grouped_tis=tracking_informations|beam.WindowInto(window.Sessions(session_window_gap))| beam.GroupByKey()| beam.Par

当我使用间隔为1小时的会话窗口时,在处理了数百万条消息后,我在日志中发现了错误,可能只是针对某些行:

TypeError:无法将GlobalWindow转换为apache_beam.utils.windowed_值。\u IntervalWindowBase
代码:

grouped_tis=tracking_informations|beam.WindowInto(window.Sessions(session_window_gap))| beam.GroupByKey()| beam.ParDo(MergeTI())|“TI model->json”>>beam.Map(jsons.dump)
完整堆栈:
这可能是因为某些代码(如
MergeTI
)在
GlobalWindow
中返回元素,而
PCollection
有一个不同的窗口集:
beam.WindowInto(window.Sessions(session\u window\u gap))
这可能是因为某些代码(如
MergeTI
)在
GlobalWindow
中返回元素,而
PCollection
有一个不同的窗口集:
beam.WindowInto(window.Sessions(session\u window\u gap))
我认为这影响了一些SDK版本,如2.10.0和2.11.0。看到了吗?我停止使用Dataflow,因为我在使用Window时遇到了一些问题。我认为这影响了一些SDK版本,如2.10.0和2.11.0。看到了吗?我停止使用Dataflow,因为我在使用Window时遇到了一些问题。