-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: hack collect trailing with shift by (#658)
Attempts to fix the behavior of trailing windows in collect by forcing a merge with a shifted message to the next `duration`, which clears out the window of the previous event.
- Loading branch information
1 parent
67e5a58
commit 0de6eab
Showing
31 changed files
with
272 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 11 additions & 3 deletions
14
python/pytests/golden/collect_test/test_collect_bool_trailing_window_1s.jsonl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
{"_time":"1996-12-19T16:39:57.000","_subsort":0,"_key_hash":12960666915911099378,"_key":"A","b":true,"collect_b":[true]} | ||
{"_time":"1996-12-19T16:39:58.000","_subsort":0,"_key_hash":12960666915911099378,"_key":"A","b":null,"collect_b":[]} | ||
{"_time":"1996-12-19T16:39:58.000","_subsort":1,"_key_hash":2867199309159137213,"_key":"B","b":true,"collect_b":[true]} | ||
{"_time":"1996-12-19T16:39:59.000","_subsort":2,"_key_hash":12960666915911099378,"_key":"A","b":null,"collect_b":[true]} | ||
{"_time":"1996-12-19T16:39:59.000","_subsort":1,"_key_hash":2867199309159137213,"_key":"B","b":null,"collect_b":[]} | ||
{"_time":"1996-12-19T16:39:59.000","_subsort":2,"_key_hash":12960666915911099378,"_key":"A","b":null,"collect_b":[]} | ||
{"_time":"1996-12-19T16:40:00.000","_subsort":2,"_key_hash":12960666915911099378,"_key":"A","b":null,"collect_b":[]} | ||
{"_time":"1996-12-19T16:40:00.000","_subsort":3,"_key_hash":12960666915911099378,"_key":"A","b":false,"collect_b":[false]} | ||
{"_time":"1996-12-19T16:40:01.000","_subsort":4,"_key_hash":12960666915911099378,"_key":"A","b":false,"collect_b":[false,false]} | ||
{"_time":"1996-12-19T16:40:02.000","_subsort":5,"_key_hash":12960666915911099378,"_key":"A","b":true,"collect_b":[false,true]} | ||
{"_time":"1996-12-19T16:40:01.000","_subsort":3,"_key_hash":12960666915911099378,"_key":"A","b":null,"collect_b":[]} | ||
{"_time":"1996-12-19T16:40:01.000","_subsort":4,"_key_hash":12960666915911099378,"_key":"A","b":false,"collect_b":[false]} | ||
{"_time":"1996-12-19T16:40:02.000","_subsort":4,"_key_hash":12960666915911099378,"_key":"A","b":null,"collect_b":[]} | ||
{"_time":"1996-12-19T16:40:02.000","_subsort":5,"_key_hash":12960666915911099378,"_key":"A","b":true,"collect_b":[true]} | ||
{"_time":"1996-12-19T16:40:03.000","_subsort":5,"_key_hash":12960666915911099378,"_key":"A","b":null,"collect_b":[]} | ||
{"_time":"1996-12-19T16:40:04.000","_subsort":6,"_key_hash":12960666915911099378,"_key":"A","b":null,"collect_b":[]} | ||
{"_time":"1996-12-19T16:40:05.000","_subsort":0,"_key_hash":12960666915911099378,"_key":"A","b":null,"collect_b":[]} |
Oops, something went wrong.