MCPcopy Create free account
hub / github.com/apache/arrow / GetEmptyTest4Forward

Function GetEmptyTest4Forward

cpp/src/arrow/acero/asof_join_node_test.cc:1199–1219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1197})
1198
1199BasicTest GetEmptyTest4Forward() {
1200 // Empty right input
1201 return BasicTest(/*l*/
1202 {R"([[0, 1, 1], [0, 2, 21], [500, 1, 2], [1000, 2, 22], [1500, 1, 3], [1500, 2, 23]])",
1203 R"([[2000, 1, 4], [2000, 2, 24]])"},
1204 /*r0*/
1205 {R"([])"},
1206 /*r1*/
1207 {R"([[0, 2, 1001], [500, 1, 101]])",
1208 R"([[1000, 1, 102], [1500, 2, 1002], [2000, 1, 103]])"},
1209 /*exp_nokey*/
1210 {R"([[0, 0, 1, null, 1001], [0, 0, 21, null, 1001], [500, 0, 2, null, 101], [1000, 0, 22, null, 102], [1500, 0, 3, null, 1002], [1500, 0, 23, null, 1002]])",
1211 R"([[2000, 0, 4, null, 103], [2000, 0, 24, null, 103]])"},
1212 /*exp_emptykey*/
1213 {R"([[0, 1, 1, null, 1001], [0, 2, 21, null, 1001], [500, 1, 2, null, 101], [1000, 2, 22, null, 102], [1500, 1, 3, null, 1002], [1500, 2, 23, null, 1002]])",
1214 R"([[2000, 1, 4, null, 103], [2000, 2, 24, null, 103]])"},
1215 /*exp*/
1216 {R"([[0, 1, 1, null, 101], [0, 2, 21, null, 1001], [500, 1, 2, null, 101], [1000, 2, 22, null, 1002], [1500, 1, 3, null, 103], [1500, 2, 23, null, 1002]])",
1217 R"([[2000, 1, 4, null, 103], [2000, 2, 24, null, null]])"},
1218 1000);
1219}
1220
1221TRACED_TEST_P(AsofJoinBasicTest, TestEmpty4Forward, {
1222 ARROW_SCOPED_TRACE("AsofJoinBasicTest_TestEmpty4Forward_" + std::get<1>(GetParam()));

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected