|
@@ -771,10 +771,10 @@ func TestEventWindow(t *testing.T) {
|
|
}},
|
|
}},
|
|
},
|
|
},
|
|
M: map[string]interface{}{
|
|
M: map[string]interface{}{
|
|
- "op_3_project_0_exceptions_total": int64(0),
|
|
|
|
- "op_3_project_0_process_latency_us": int64(0),
|
|
|
|
- "op_3_project_0_records_in_total": int64(5),
|
|
|
|
- "op_3_project_0_records_out_total": int64(5),
|
|
|
|
|
|
+ "op_4_project_0_exceptions_total": int64(0),
|
|
|
|
+ "op_4_project_0_process_latency_us": int64(0),
|
|
|
|
+ "op_4_project_0_records_in_total": int64(5),
|
|
|
|
+ "op_4_project_0_records_out_total": int64(5),
|
|
|
|
|
|
"sink_mockSink_0_exceptions_total": int64(0),
|
|
"sink_mockSink_0_exceptions_total": int64(0),
|
|
"sink_mockSink_0_records_in_total": int64(5),
|
|
"sink_mockSink_0_records_in_total": int64(5),
|
|
@@ -784,10 +784,13 @@ func TestEventWindow(t *testing.T) {
|
|
"source_demoE_0_records_in_total": int64(6),
|
|
"source_demoE_0_records_in_total": int64(6),
|
|
"source_demoE_0_records_out_total": int64(6),
|
|
"source_demoE_0_records_out_total": int64(6),
|
|
|
|
|
|
- "op_2_window_0_exceptions_total": int64(0),
|
|
|
|
- "op_2_window_0_process_latency_us": int64(0),
|
|
|
|
- "op_2_window_0_records_in_total": int64(6),
|
|
|
|
- "op_2_window_0_records_out_total": int64(5),
|
|
|
|
|
|
+ "op_3_window_0_exceptions_total": int64(0),
|
|
|
|
+ "op_3_window_0_process_latency_us": int64(0),
|
|
|
|
+ "op_3_window_0_records_in_total": int64(4),
|
|
|
|
+ "op_3_window_0_records_out_total": int64(5),
|
|
|
|
+
|
|
|
|
+ "op_2_watermark_0_records_in_total": int64(6),
|
|
|
|
+ "op_2_watermark_0_records_out_total": int64(4),
|
|
},
|
|
},
|
|
}, {
|
|
}, {
|
|
Name: `TestEventWindowRule2`,
|
|
Name: `TestEventWindowRule2`,
|
|
@@ -807,10 +810,10 @@ func TestEventWindow(t *testing.T) {
|
|
}},
|
|
}},
|
|
},
|
|
},
|
|
M: map[string]interface{}{
|
|
M: map[string]interface{}{
|
|
- "op_4_project_0_exceptions_total": int64(0),
|
|
|
|
- "op_4_project_0_process_latency_us": int64(0),
|
|
|
|
- "op_4_project_0_records_in_total": int64(2),
|
|
|
|
- "op_4_project_0_records_out_total": int64(2),
|
|
|
|
|
|
+ "op_5_project_0_exceptions_total": int64(0),
|
|
|
|
+ "op_5_project_0_process_latency_us": int64(0),
|
|
|
|
+ "op_5_project_0_records_in_total": int64(2),
|
|
|
|
+ "op_5_project_0_records_out_total": int64(2),
|
|
|
|
|
|
"sink_mockSink_0_exceptions_total": int64(0),
|
|
"sink_mockSink_0_exceptions_total": int64(0),
|
|
"sink_mockSink_0_records_in_total": int64(2),
|
|
"sink_mockSink_0_records_in_total": int64(2),
|
|
@@ -820,15 +823,15 @@ func TestEventWindow(t *testing.T) {
|
|
"source_demoE_0_records_in_total": int64(6),
|
|
"source_demoE_0_records_in_total": int64(6),
|
|
"source_demoE_0_records_out_total": int64(6),
|
|
"source_demoE_0_records_out_total": int64(6),
|
|
|
|
|
|
- "op_2_window_0_exceptions_total": int64(0),
|
|
|
|
- "op_2_window_0_process_latency_us": int64(0),
|
|
|
|
- "op_2_window_0_records_in_total": int64(6),
|
|
|
|
- "op_2_window_0_records_out_total": int64(5),
|
|
|
|
|
|
+ "op_3_window_0_exceptions_total": int64(0),
|
|
|
|
+ "op_3_window_0_process_latency_us": int64(0),
|
|
|
|
+ "op_3_window_0_records_in_total": int64(4),
|
|
|
|
+ "op_3_window_0_records_out_total": int64(5),
|
|
|
|
|
|
- "op_3_filter_0_exceptions_total": int64(0),
|
|
|
|
- "op_3_filter_0_process_latency_us": int64(0),
|
|
|
|
- "op_3_filter_0_records_in_total": int64(5),
|
|
|
|
- "op_3_filter_0_records_out_total": int64(2),
|
|
|
|
|
|
+ "op_4_filter_0_exceptions_total": int64(0),
|
|
|
|
+ "op_4_filter_0_process_latency_us": int64(0),
|
|
|
|
+ "op_4_filter_0_records_in_total": int64(5),
|
|
|
|
+ "op_4_filter_0_records_out_total": int64(2),
|
|
},
|
|
},
|
|
}, {
|
|
}, {
|
|
Name: `TestEventWindowRule3`,
|
|
Name: `TestEventWindowRule3`,
|
|
@@ -865,10 +868,10 @@ func TestEventWindow(t *testing.T) {
|
|
}},
|
|
}},
|
|
},
|
|
},
|
|
M: map[string]interface{}{
|
|
M: map[string]interface{}{
|
|
- "op_5_project_0_exceptions_total": int64(0),
|
|
|
|
- "op_5_project_0_process_latency_us": int64(0),
|
|
|
|
- "op_5_project_0_records_in_total": int64(5),
|
|
|
|
- "op_5_project_0_records_out_total": int64(5),
|
|
|
|
|
|
+ "op_6_project_0_exceptions_total": int64(0),
|
|
|
|
+ "op_6_project_0_process_latency_us": int64(0),
|
|
|
|
+ "op_6_project_0_records_in_total": int64(5),
|
|
|
|
+ "op_6_project_0_records_out_total": int64(5),
|
|
|
|
|
|
"sink_mockSink_0_exceptions_total": int64(0),
|
|
"sink_mockSink_0_exceptions_total": int64(0),
|
|
"sink_mockSink_0_records_in_total": int64(5),
|
|
"sink_mockSink_0_records_in_total": int64(5),
|
|
@@ -882,15 +885,15 @@ func TestEventWindow(t *testing.T) {
|
|
"source_demo1E_0_records_in_total": int64(6),
|
|
"source_demo1E_0_records_in_total": int64(6),
|
|
"source_demo1E_0_records_out_total": int64(6),
|
|
"source_demo1E_0_records_out_total": int64(6),
|
|
|
|
|
|
- "op_3_window_0_exceptions_total": int64(0),
|
|
|
|
- "op_3_window_0_process_latency_us": int64(0),
|
|
|
|
- "op_3_window_0_records_in_total": int64(12),
|
|
|
|
- "op_3_window_0_records_out_total": int64(5),
|
|
|
|
|
|
+ "op_4_window_0_exceptions_total": int64(0),
|
|
|
|
+ "op_4_window_0_process_latency_us": int64(0),
|
|
|
|
+ "op_4_window_0_records_in_total": int64(9),
|
|
|
|
+ "op_4_window_0_records_out_total": int64(5),
|
|
|
|
|
|
- "op_4_join_0_exceptions_total": int64(0),
|
|
|
|
- "op_4_join_0_process_latency_us": int64(0),
|
|
|
|
- "op_4_join_0_records_in_total": int64(5),
|
|
|
|
- "op_4_join_0_records_out_total": int64(5),
|
|
|
|
|
|
+ "op_5_join_0_exceptions_total": int64(0),
|
|
|
|
+ "op_5_join_0_process_latency_us": int64(0),
|
|
|
|
+ "op_5_join_0_records_in_total": int64(5),
|
|
|
|
+ "op_5_join_0_records_out_total": int64(5),
|
|
},
|
|
},
|
|
}, {
|
|
}, {
|
|
Name: `TestEventWindowRule4`,
|
|
Name: `TestEventWindowRule4`,
|
|
@@ -931,10 +934,10 @@ func TestEventWindow(t *testing.T) {
|
|
}},
|
|
}},
|
|
},
|
|
},
|
|
M: map[string]interface{}{
|
|
M: map[string]interface{}{
|
|
- "op_5_project_0_exceptions_total": int64(0),
|
|
|
|
- "op_5_project_0_process_latency_us": int64(0),
|
|
|
|
- "op_5_project_0_records_in_total": int64(4),
|
|
|
|
- "op_5_project_0_records_out_total": int64(4),
|
|
|
|
|
|
+ "op_6_project_0_exceptions_total": int64(0),
|
|
|
|
+ "op_6_project_0_process_latency_us": int64(0),
|
|
|
|
+ "op_6_project_0_records_in_total": int64(4),
|
|
|
|
+ "op_6_project_0_records_out_total": int64(4),
|
|
|
|
|
|
"sink_mockSink_0_exceptions_total": int64(0),
|
|
"sink_mockSink_0_exceptions_total": int64(0),
|
|
"sink_mockSink_0_records_in_total": int64(4),
|
|
"sink_mockSink_0_records_in_total": int64(4),
|
|
@@ -944,20 +947,20 @@ func TestEventWindow(t *testing.T) {
|
|
"source_demoE_0_records_in_total": int64(6),
|
|
"source_demoE_0_records_in_total": int64(6),
|
|
"source_demoE_0_records_out_total": int64(6),
|
|
"source_demoE_0_records_out_total": int64(6),
|
|
|
|
|
|
- "op_2_window_0_exceptions_total": int64(0),
|
|
|
|
- "op_2_window_0_process_latency_us": int64(0),
|
|
|
|
- "op_2_window_0_records_in_total": int64(6),
|
|
|
|
- "op_2_window_0_records_out_total": int64(4),
|
|
|
|
|
|
+ "op_3_window_0_exceptions_total": int64(0),
|
|
|
|
+ "op_3_window_0_process_latency_us": int64(0),
|
|
|
|
+ "op_3_window_0_records_in_total": int64(4),
|
|
|
|
+ "op_3_window_0_records_out_total": int64(4),
|
|
|
|
|
|
- "op_3_aggregate_0_exceptions_total": int64(0),
|
|
|
|
- "op_3_aggregate_0_process_latency_us": int64(0),
|
|
|
|
- "op_3_aggregate_0_records_in_total": int64(4),
|
|
|
|
- "op_3_aggregate_0_records_out_total": int64(4),
|
|
|
|
|
|
+ "op_4_aggregate_0_exceptions_total": int64(0),
|
|
|
|
+ "op_4_aggregate_0_process_latency_us": int64(0),
|
|
|
|
+ "op_4_aggregate_0_records_in_total": int64(4),
|
|
|
|
+ "op_4_aggregate_0_records_out_total": int64(4),
|
|
|
|
|
|
- "op_4_order_0_exceptions_total": int64(0),
|
|
|
|
- "op_4_order_0_process_latency_us": int64(0),
|
|
|
|
- "op_4_order_0_records_in_total": int64(4),
|
|
|
|
- "op_4_order_0_records_out_total": int64(4),
|
|
|
|
|
|
+ "op_5_order_0_exceptions_total": int64(0),
|
|
|
|
+ "op_5_order_0_process_latency_us": int64(0),
|
|
|
|
+ "op_5_order_0_records_in_total": int64(4),
|
|
|
|
+ "op_5_order_0_records_out_total": int64(4),
|
|
},
|
|
},
|
|
}, {
|
|
}, {
|
|
Name: `TestEventWindowRule5`,
|
|
Name: `TestEventWindowRule5`,
|
|
@@ -986,10 +989,10 @@ func TestEventWindow(t *testing.T) {
|
|
}},
|
|
}},
|
|
},
|
|
},
|
|
M: map[string]interface{}{
|
|
M: map[string]interface{}{
|
|
- "op_3_project_0_exceptions_total": int64(0),
|
|
|
|
- "op_3_project_0_process_latency_us": int64(0),
|
|
|
|
- "op_3_project_0_records_in_total": int64(4),
|
|
|
|
- "op_3_project_0_records_out_total": int64(4),
|
|
|
|
|
|
+ "op_4_project_0_exceptions_total": int64(0),
|
|
|
|
+ "op_4_project_0_process_latency_us": int64(0),
|
|
|
|
+ "op_4_project_0_records_in_total": int64(4),
|
|
|
|
+ "op_4_project_0_records_out_total": int64(4),
|
|
|
|
|
|
"sink_mockSink_0_exceptions_total": int64(0),
|
|
"sink_mockSink_0_exceptions_total": int64(0),
|
|
"sink_mockSink_0_records_in_total": int64(4),
|
|
"sink_mockSink_0_records_in_total": int64(4),
|
|
@@ -999,10 +1002,10 @@ func TestEventWindow(t *testing.T) {
|
|
"source_sessionDemoE_0_records_in_total": int64(12),
|
|
"source_sessionDemoE_0_records_in_total": int64(12),
|
|
"source_sessionDemoE_0_records_out_total": int64(12),
|
|
"source_sessionDemoE_0_records_out_total": int64(12),
|
|
|
|
|
|
- "op_2_window_0_exceptions_total": int64(0),
|
|
|
|
- "op_2_window_0_process_latency_us": int64(0),
|
|
|
|
- "op_2_window_0_records_in_total": int64(12),
|
|
|
|
- "op_2_window_0_records_out_total": int64(4),
|
|
|
|
|
|
+ "op_3_window_0_exceptions_total": int64(0),
|
|
|
|
+ "op_3_window_0_process_latency_us": int64(0),
|
|
|
|
+ "op_3_window_0_records_in_total": int64(10),
|
|
|
|
+ "op_3_window_0_records_out_total": int64(4),
|
|
},
|
|
},
|
|
}, {
|
|
}, {
|
|
Name: `TestEventWindowRule6`,
|
|
Name: `TestEventWindowRule6`,
|
|
@@ -1026,10 +1029,10 @@ func TestEventWindow(t *testing.T) {
|
|
}},
|
|
}},
|
|
},
|
|
},
|
|
M: map[string]interface{}{
|
|
M: map[string]interface{}{
|
|
- "op_5_project_0_exceptions_total": int64(0),
|
|
|
|
- "op_5_project_0_process_latency_us": int64(0),
|
|
|
|
- "op_5_project_0_records_in_total": int64(5),
|
|
|
|
- "op_5_project_0_records_out_total": int64(5),
|
|
|
|
|
|
+ "op_6_project_0_exceptions_total": int64(0),
|
|
|
|
+ "op_6_project_0_process_latency_us": int64(0),
|
|
|
|
+ "op_6_project_0_records_in_total": int64(5),
|
|
|
|
+ "op_6_project_0_records_out_total": int64(5),
|
|
|
|
|
|
"sink_mockSink_0_exceptions_total": int64(0),
|
|
"sink_mockSink_0_exceptions_total": int64(0),
|
|
"sink_mockSink_0_records_in_total": int64(5),
|
|
"sink_mockSink_0_records_in_total": int64(5),
|
|
@@ -1043,14 +1046,14 @@ func TestEventWindow(t *testing.T) {
|
|
"source_demo1E_0_records_in_total": int64(6),
|
|
"source_demo1E_0_records_in_total": int64(6),
|
|
"source_demo1E_0_records_out_total": int64(6),
|
|
"source_demo1E_0_records_out_total": int64(6),
|
|
|
|
|
|
- "op_3_window_0_exceptions_total": int64(0),
|
|
|
|
- "op_3_window_0_records_in_total": int64(12),
|
|
|
|
- "op_3_window_0_records_out_total": int64(5),
|
|
|
|
|
|
+ "op_4_window_0_exceptions_total": int64(0),
|
|
|
|
+ "op_4_window_0_records_in_total": int64(9),
|
|
|
|
+ "op_4_window_0_records_out_total": int64(5),
|
|
|
|
|
|
- "op_4_join_0_exceptions_total": int64(0),
|
|
|
|
- "op_4_join_0_process_latency_us": int64(0),
|
|
|
|
- "op_4_join_0_records_in_total": int64(5),
|
|
|
|
- "op_4_join_0_records_out_total": int64(5),
|
|
|
|
|
|
+ "op_5_join_0_exceptions_total": int64(0),
|
|
|
|
+ "op_5_join_0_process_latency_us": int64(0),
|
|
|
|
+ "op_5_join_0_records_in_total": int64(5),
|
|
|
|
+ "op_5_join_0_records_out_total": int64(5),
|
|
},
|
|
},
|
|
}, {
|
|
}, {
|
|
Name: `TestEventWindowRule7`,
|
|
Name: `TestEventWindowRule7`,
|
|
@@ -1090,10 +1093,10 @@ func TestEventWindow(t *testing.T) {
|
|
}},
|
|
}},
|
|
},
|
|
},
|
|
M: map[string]interface{}{
|
|
M: map[string]interface{}{
|
|
- "op_3_project_0_exceptions_total": int64(1),
|
|
|
|
- "op_3_project_0_process_latency_us": int64(0),
|
|
|
|
- "op_3_project_0_records_in_total": int64(6),
|
|
|
|
- "op_3_project_0_records_out_total": int64(5),
|
|
|
|
|
|
+ "op_4_project_0_exceptions_total": int64(1),
|
|
|
|
+ "op_4_project_0_process_latency_us": int64(0),
|
|
|
|
+ "op_4_project_0_records_in_total": int64(6),
|
|
|
|
+ "op_4_project_0_records_out_total": int64(5),
|
|
|
|
|
|
"sink_mockSink_0_exceptions_total": int64(0),
|
|
"sink_mockSink_0_exceptions_total": int64(0),
|
|
"sink_mockSink_0_records_in_total": int64(6),
|
|
"sink_mockSink_0_records_in_total": int64(6),
|
|
@@ -1103,10 +1106,10 @@ func TestEventWindow(t *testing.T) {
|
|
"source_demoErr_0_records_in_total": int64(6),
|
|
"source_demoErr_0_records_in_total": int64(6),
|
|
"source_demoErr_0_records_out_total": int64(6),
|
|
"source_demoErr_0_records_out_total": int64(6),
|
|
|
|
|
|
- "op_2_window_0_exceptions_total": int64(1),
|
|
|
|
- "op_2_window_0_process_latency_us": int64(0),
|
|
|
|
- "op_2_window_0_records_in_total": int64(6),
|
|
|
|
- "op_2_window_0_records_out_total": int64(5),
|
|
|
|
|
|
+ "op_3_window_0_exceptions_total": int64(1),
|
|
|
|
+ "op_3_window_0_process_latency_us": int64(0),
|
|
|
|
+ "op_3_window_0_records_in_total": int64(4),
|
|
|
|
+ "op_3_window_0_records_out_total": int64(5),
|
|
},
|
|
},
|
|
}, {
|
|
}, {
|
|
Name: `TestEventWindowRule8`,
|
|
Name: `TestEventWindowRule8`,
|
|
@@ -1155,10 +1158,10 @@ func TestEventWindow(t *testing.T) {
|
|
}},
|
|
}},
|
|
},
|
|
},
|
|
M: map[string]interface{}{
|
|
M: map[string]interface{}{
|
|
- "op_3_project_0_exceptions_total": int64(0),
|
|
|
|
- "op_3_project_0_process_latency_us": int64(0),
|
|
|
|
- "op_3_project_0_records_in_total": int64(4),
|
|
|
|
- "op_3_project_0_records_out_total": int64(4),
|
|
|
|
|
|
+ "op_4_project_0_exceptions_total": int64(0),
|
|
|
|
+ "op_4_project_0_process_latency_us": int64(0),
|
|
|
|
+ "op_4_project_0_records_in_total": int64(4),
|
|
|
|
+ "op_4_project_0_records_out_total": int64(4),
|
|
|
|
|
|
"sink_mockSink_0_exceptions_total": int64(0),
|
|
"sink_mockSink_0_exceptions_total": int64(0),
|
|
"sink_mockSink_0_records_in_total": int64(4),
|
|
"sink_mockSink_0_records_in_total": int64(4),
|
|
@@ -1168,10 +1171,10 @@ func TestEventWindow(t *testing.T) {
|
|
"source_sessionDemoE_0_records_in_total": int64(12),
|
|
"source_sessionDemoE_0_records_in_total": int64(12),
|
|
"source_sessionDemoE_0_records_out_total": int64(12),
|
|
"source_sessionDemoE_0_records_out_total": int64(12),
|
|
|
|
|
|
- "op_2_window_0_exceptions_total": int64(0),
|
|
|
|
- "op_2_window_0_process_latency_us": int64(0),
|
|
|
|
- "op_2_window_0_records_in_total": int64(12),
|
|
|
|
- "op_2_window_0_records_out_total": int64(4),
|
|
|
|
|
|
+ "op_3_window_0_exceptions_total": int64(0),
|
|
|
|
+ "op_3_window_0_process_latency_us": int64(0),
|
|
|
|
+ "op_3_window_0_records_in_total": int64(10),
|
|
|
|
+ "op_3_window_0_records_out_total": int64(4),
|
|
},
|
|
},
|
|
}, {
|
|
}, {
|
|
Name: `TestEventWindowRule9`,
|
|
Name: `TestEventWindowRule9`,
|
|
@@ -1216,10 +1219,10 @@ func TestEventWindow(t *testing.T) {
|
|
}},
|
|
}},
|
|
},
|
|
},
|
|
M: map[string]interface{}{
|
|
M: map[string]interface{}{
|
|
- "op_3_project_0_exceptions_total": int64(0),
|
|
|
|
- "op_3_project_0_process_latency_us": int64(0),
|
|
|
|
- "op_3_project_0_records_in_total": int64(5),
|
|
|
|
- "op_3_project_0_records_out_total": int64(5),
|
|
|
|
|
|
+ "op_4_project_0_exceptions_total": int64(0),
|
|
|
|
+ "op_4_project_0_process_latency_us": int64(0),
|
|
|
|
+ "op_4_project_0_records_in_total": int64(5),
|
|
|
|
+ "op_4_project_0_records_out_total": int64(5),
|
|
|
|
|
|
"sink_mockSink_0_exceptions_total": int64(0),
|
|
"sink_mockSink_0_exceptions_total": int64(0),
|
|
"sink_mockSink_0_records_in_total": int64(5),
|
|
"sink_mockSink_0_records_in_total": int64(5),
|
|
@@ -1229,10 +1232,10 @@ func TestEventWindow(t *testing.T) {
|
|
"source_demoE_0_records_in_total": int64(6),
|
|
"source_demoE_0_records_in_total": int64(6),
|
|
"source_demoE_0_records_out_total": int64(6),
|
|
"source_demoE_0_records_out_total": int64(6),
|
|
|
|
|
|
- "op_2_window_0_exceptions_total": int64(0),
|
|
|
|
- "op_2_window_0_process_latency_us": int64(0),
|
|
|
|
- "op_2_window_0_records_in_total": int64(6),
|
|
|
|
- "op_2_window_0_records_out_total": int64(5),
|
|
|
|
|
|
+ "op_3_window_0_exceptions_total": int64(0),
|
|
|
|
+ "op_3_window_0_process_latency_us": int64(0),
|
|
|
|
+ "op_3_window_0_records_in_total": int64(4),
|
|
|
|
+ "op_3_window_0_records_out_total": int64(5),
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}
|
|
}
|