Skip to content

Instantly share code, notes, and snippets.

@JerAguilon
Created January 25, 2024 20:41
Show Gist options
  • Save JerAguilon/953d82ed288d58f9ce24d1a925def2cc to your computer and use it in GitHub Desktop.
Save JerAguilon/953d82ed288d58f9ce24d1a925def2cc to your computer and use it in GitHub Desktop.
test before after
Running main() from /Users/jaguilon/Documents/arrow/cpp/build/_deps/googletest-src/googletest/src/gtest_main.cc
Note: Google Test filter = AsofJoinTest.OutputSchemaResolution
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from AsofJoinTest
[ RUN ] AsofJoinTest.OutputSchemaResolution
AsofjoinNode(0x16f260898): received batch from input 1:
key: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9"
]
r0_value: [
1,
11,
21,
31,
41,
51,
61,
71,
81,
91
]
time: [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
]
AsofjoinNode(0x16f260898): received batch from input 0:
time: [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
]
key: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9"
]
l_value: [
0,
10,
20,
30,
40,
50,
60,
70,
80,
90
]
AsofjoinNode(0x16f2ea638): Advancing input 1
AsofjoinNode(0x16f2ea2d8): key hasher 1 got hashes [17528465654998409509, 12047706865972860560, 18017664240540048750, 12358837084497432044, 8151160321586084686, 8691136767698756332, 15973065724125580046, 9654919479117127288, 618127929167745505, 3403805303373270709]
AsofjoinNode(0x16f2ea508): memo 1 store: for_time=0 row=0 time=0 key=17528465654998409509
AsofjoinNode(0x16f2ea508): memo 1 store: for_time=0 row=1 time=1 key=12047706865972860560
AsofjoinNode(0x16f2ea508): memo 1 store: for_time=0 row=2 time=2 key=18017664240540048750
AsofjoinNode(0x16f2ea508): memo 1 store: for_time=0 row=3 time=3 key=12358837084497432044
AsofjoinNode(0x16f2ea508): memo 1 store: for_time=0 row=4 time=4 key=8151160321586084686
AsofjoinNode(0x16f2ea508): memo 1 store: for_time=0 row=5 time=5 key=8691136767698756332
AsofjoinNode(0x16f2ea508): memo 1 store: for_time=0 row=6 time=6 key=15973065724125580046
AsofjoinNode(0x16f2ea508): memo 1 store: for_time=0 row=7 time=7 key=9654919479117127288
AsofjoinNode(0x16f2ea508): memo 1 store: for_time=0 row=8 time=8 key=618127929167745505
AsofjoinNode(0x16f2ea508): memo 1 store: for_time=0 row=9 time=9 key=3403805303373270709
AsofjoinNode(0x16f2ea4c8): memo 1 remove: ts=0
AsofjoinNode(0x16f2ea638): Advancing input 1 updated=0
AsofjoinNode(0x16f2e9d18): key hasher 0 got hashes [17528465654998409509, 12047706865972860560, 18017664240540048750, 12358837084497432044, 8151160321586084686, 8691136767698756332, 15973065724125580046, 9654919479117127288, 618127929167745505, 3403805303373270709]
AsofjoinNode(0x16f2ea078): Emplace: key=17528465654998409509 lhs_latest_row=0 lhs_latest_time=0
AsofjoinNode(0x16f2ea078): i=1 has_entry=1 time=0 row=0 accepted=1
AsofjoinNode(0x16f2ea638): Advancing input 1
AsofjoinNode(0x16f2ea4c8): memo 1 remove: ts=1
AsofjoinNode(0x16f2ea078): Emplace: key=12047706865972860560 lhs_latest_row=1 lhs_latest_time=1
AsofjoinNode(0x16f2ea078): i=1 has_entry=1 time=1 row=1 accepted=1
AsofjoinNode(0x16f2ea638): Advancing input 1
AsofjoinNode(0x16f2ea4c8): memo 1 remove: ts=2
AsofjoinNode(0x16f2ea078): Emplace: key=18017664240540048750 lhs_latest_row=2 lhs_latest_time=2
AsofjoinNode(0x16f2ea078): i=1 has_entry=1 time=2 row=2 accepted=1
AsofjoinNode(0x16f2ea638): Advancing input 1
AsofjoinNode(0x16f2ea4c8): memo 1 remove: ts=3
AsofjoinNode(0x16f2ea078): Emplace: key=12358837084497432044 lhs_latest_row=3 lhs_latest_time=3
AsofjoinNode(0x16f2ea078): i=1 has_entry=1 time=3 row=3 accepted=1
AsofjoinNode(0x16f2ea638): Advancing input 1
AsofjoinNode(0x16f2ea4c8): memo 1 remove: ts=4
AsofjoinNode(0x16f2ea078): Emplace: key=8151160321586084686 lhs_latest_row=4 lhs_latest_time=4
AsofjoinNode(0x16f2ea078): i=1 has_entry=1 time=4 row=4 accepted=1
AsofjoinNode(0x16f2ea638): Advancing input 1
AsofjoinNode(0x16f2ea4c8): memo 1 remove: ts=5
AsofjoinNode(0x16f2ea078): Emplace: key=8691136767698756332 lhs_latest_row=5 lhs_latest_time=5
AsofjoinNode(0x16f2ea078): i=1 has_entry=1 time=5 row=5 accepted=1
AsofjoinNode(0x16f2ea638): Advancing input 1
AsofjoinNode(0x16f2ea4c8): memo 1 remove: ts=6
AsofjoinNode(0x16f2ea078): Emplace: key=15973065724125580046 lhs_latest_row=6 lhs_latest_time=6
AsofjoinNode(0x16f2ea078): i=1 has_entry=1 time=6 row=6 accepted=1
AsofjoinNode(0x16f2ea638): Advancing input 1
AsofjoinNode(0x16f2ea4c8): memo 1 remove: ts=7
AsofjoinNode(0x16f2ea078): Emplace: key=9654919479117127288 lhs_latest_row=7 lhs_latest_time=7
AsofjoinNode(0x16f2ea078): i=1 has_entry=1 time=7 row=7 accepted=1
AsofjoinNode(0x16f2ea638): Advancing input 1
AsofjoinNode(0x16f2ea4c8): memo 1 remove: ts=8
AsofjoinNode(0x16f2ea078): Emplace: key=618127929167745505 lhs_latest_row=8 lhs_latest_time=8
AsofjoinNode(0x16f2ea078): i=1 has_entry=1 time=8 row=8 accepted=1
AsofjoinNode(0x16f2ea638): Advancing input 1
AsofjoinNode(0x16f2ea4c8): memo 1 remove: ts=9
AsofjoinNode(0x16f2ea078): Emplace: key=3403805303373270709 lhs_latest_row=9 lhs_latest_time=9
AsofjoinNode(0x16f2ea078): i=1 has_entry=1 time=9 row=9 accepted=1
AsofjoinNode(0x16f2eac38): produce batch 0:
time: [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
]
key: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9"
]
l_value: [
0,
10,
20,
30,
40,
50,
60,
70,
80,
90
]
r0_value: [
1,
11,
21,
31,
41,
51,
61,
71,
81,
91
]
[ OK ] AsofJoinTest.OutputSchemaResolution (10 ms)
[----------] 1 test from AsofJoinTest (10 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (10 ms total)
[ PASSED ] 1 test.
Running main() from /Users/jaguilon/Documents/arrow/cpp/build/_deps/googletest-src/googletest/src/gtest_main.cc
Note: Google Test filter = AsofJoinTest.OutputSchemaResolution
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from AsofJoinTest
[ RUN ] AsofJoinTest.OutputSchemaResolution
AsofjoinNode(0x16cf14898): received batch from input 1:
key: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9"
]
r0_value: [
1,
11,
21,
31,
41,
51,
61,
71,
81,
91
]
time: [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
]
AsofjoinNode(0x16cf14898): received batch from input 0:
time: [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
]
key: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9"
]
l_value: [
0,
10,
20,
30,
40,
50,
60,
70,
80,
90
]
AsofjoinNode(0x16cf9e638): Advancing input 1
AsofjoinNode(0x16cf9e2d8): key hasher 1 got hashes [0, 9784892099856512926, 1050982531982388796, 10763536662319179482, 2029627098739957112, 11814237723602982167, 3080328155728858293, 12792882290360550483, 4058972722486426609, 13771526852823217039]
AsofjoinNode(0x16cf9e508): memo 1 store: for_time=0 row=0 time=0 key=0
AsofjoinNode(0x16cf9e508): memo 1 store: for_time=0 row=1 time=1 key=9784892099856512926
AsofjoinNode(0x16cf9e508): memo 1 store: for_time=0 row=2 time=2 key=1050982531982388796
AsofjoinNode(0x16cf9e508): memo 1 store: for_time=0 row=3 time=3 key=10763536662319179482
AsofjoinNode(0x16cf9e508): memo 1 store: for_time=0 row=4 time=4 key=2029627098739957112
AsofjoinNode(0x16cf9e508): memo 1 store: for_time=0 row=5 time=5 key=11814237723602982167
AsofjoinNode(0x16cf9e508): memo 1 store: for_time=0 row=6 time=6 key=3080328155728858293
AsofjoinNode(0x16cf9e508): memo 1 store: for_time=0 row=7 time=7 key=12792882290360550483
AsofjoinNode(0x16cf9e508): memo 1 store: for_time=0 row=8 time=8 key=4058972722486426609
AsofjoinNode(0x16cf9e508): memo 1 store: for_time=0 row=9 time=9 key=13771526852823217039
AsofjoinNode(0x16cf9e4c8): memo 1 remove: ts=0
AsofjoinNode(0x16cf9e638): Advancing input 1 updated=0
AsofjoinNode(0x16cf9dd18): key hasher 0 got hashes [17528465654998409509, 12047706865972860560, 18017664240540048750, 12358837084497432044, 8151160321586084686, 8691136767698756332, 15973065724125580046, 9654919479117127288, 618127929167745505, 3403805303373270709]
AsofjoinNode(0x16cf9e078): Emplace: key=17528465654998409509 lhs_latest_row=0 lhs_latest_time=0
AsofjoinNode(0x16cf9e078): i=1 has_entry=0 time=0 row=0 accepted=0
AsofjoinNode(0x16cf9e638): Advancing input 1
AsofjoinNode(0x16cf9e4c8): memo 1 remove: ts=1
AsofjoinNode(0x16cf9e078): Emplace: key=12047706865972860560 lhs_latest_row=1 lhs_latest_time=1
AsofjoinNode(0x16cf9e078): i=1 has_entry=0 time=0 row=0 accepted=0
AsofjoinNode(0x16cf9e638): Advancing input 1
AsofjoinNode(0x16cf9e4c8): memo 1 remove: ts=2
AsofjoinNode(0x16cf9e078): Emplace: key=18017664240540048750 lhs_latest_row=2 lhs_latest_time=2
AsofjoinNode(0x16cf9e078): i=1 has_entry=0 time=0 row=0 accepted=0
AsofjoinNode(0x16cf9e638): Advancing input 1
AsofjoinNode(0x16cf9e4c8): memo 1 remove: ts=3
AsofjoinNode(0x16cf9e078): Emplace: key=12358837084497432044 lhs_latest_row=3 lhs_latest_time=3
AsofjoinNode(0x16cf9e078): i=1 has_entry=0 time=0 row=0 accepted=0
AsofjoinNode(0x16cf9e638): Advancing input 1
AsofjoinNode(0x16cf9e4c8): memo 1 remove: ts=4
AsofjoinNode(0x16cf9e078): Emplace: key=8151160321586084686 lhs_latest_row=4 lhs_latest_time=4
AsofjoinNode(0x16cf9e078): i=1 has_entry=0 time=0 row=0 accepted=0
AsofjoinNode(0x16cf9e638): Advancing input 1
AsofjoinNode(0x16cf9e4c8): memo 1 remove: ts=5
AsofjoinNode(0x16cf9e078): Emplace: key=8691136767698756332 lhs_latest_row=5 lhs_latest_time=5
AsofjoinNode(0x16cf9e078): i=1 has_entry=0 time=0 row=0 accepted=0
AsofjoinNode(0x16cf9e638): Advancing input 1
AsofjoinNode(0x16cf9e4c8): memo 1 remove: ts=6
AsofjoinNode(0x16cf9e078): Emplace: key=15973065724125580046 lhs_latest_row=6 lhs_latest_time=6
AsofjoinNode(0x16cf9e078): i=1 has_entry=0 time=0 row=0 accepted=0
AsofjoinNode(0x16cf9e638): Advancing input 1
AsofjoinNode(0x16cf9e4c8): memo 1 remove: ts=7
AsofjoinNode(0x16cf9e078): Emplace: key=9654919479117127288 lhs_latest_row=7 lhs_latest_time=7
AsofjoinNode(0x16cf9e078): i=1 has_entry=0 time=0 row=0 accepted=0
AsofjoinNode(0x16cf9e638): Advancing input 1
AsofjoinNode(0x16cf9e4c8): memo 1 remove: ts=8
AsofjoinNode(0x16cf9e078): Emplace: key=618127929167745505 lhs_latest_row=8 lhs_latest_time=8
AsofjoinNode(0x16cf9e078): i=1 has_entry=0 time=0 row=0 accepted=0
AsofjoinNode(0x16cf9e638): Advancing input 1
AsofjoinNode(0x16cf9e4c8): memo 1 remove: ts=9
AsofjoinNode(0x16cf9e078): Emplace: key=3403805303373270709 lhs_latest_row=9 lhs_latest_time=9
AsofjoinNode(0x16cf9e078): i=1 has_entry=0 time=0 row=0 accepted=0
AsofjoinNode(0x16cf9ec38): produce batch 0:
time: [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
]
key: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9"
]
l_value: [
0,
10,
20,
30,
40,
50,
60,
70,
80,
90
]
r0_value: [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
]
/Users/jaguilon/Documents/arrow/cpp/src/arrow/acero/asof_join_node_test.cc:1639: Failure
Value of: actual_r0->Equals(expected_r0_chunked)
Actual: false
Expected: true
[ FAILED ] AsofJoinTest.OutputSchemaResolution (10 ms)
[----------] 1 test from AsofJoinTest (10 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (11 ms total)
[ PASSED ] 0 tests.
[ FAILED ] 1 test, listed below:
[ FAILED ] AsofJoinTest.OutputSchemaResolution
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment