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

Function TEST

cpp/src/arrow/acero/util_test.cc:33–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31const char* kRightSuffix = ".right";
32
33TEST(FieldMap, Trivial) {
34 HashJoinSchema schema_mgr;
35
36 auto left = schema({field("i32", int32())});
37 auto right = schema({field("i32", int32())});
38
39 ASSERT_OK(schema_mgr.Init(JoinType::INNER, *left, {"i32"}, *right, {"i32"},
40 literal(true), kLeftSuffix, kRightSuffix));
41
42 auto output = schema_mgr.MakeOutputSchema(kLeftSuffix, kRightSuffix);
43 EXPECT_THAT(*output, Eq(Schema({
44 field("i32.left", int32()),
45 field("i32.right", int32()),
46 })));
47
48 auto i =
49 schema_mgr.proj_maps[0].map(HashJoinProjection::INPUT, HashJoinProjection::OUTPUT);
50 EXPECT_EQ(i.get(0), 0);
51}
52
53TEST(FieldMap, TrivialDuplicates) {
54 HashJoinSchema schema_mgr;

Callers

nothing calls this directly

Calls 15

ConcurrentQueueBasicTestFunction · 0.85
mapMethod · 0.80
num_colsMethod · 0.80
schemaFunction · 0.50
fieldFunction · 0.50
literalFunction · 0.50
SchemaClass · 0.50
uuidFunction · 0.50
dictionaryFunction · 0.50
InitMethod · 0.45
MakeOutputSchemaMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected