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

Function ValidateHashJoinNodeOptions

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

Source from the content-addressed store, hash-verified

49namespace {
50
51Status ValidateHashJoinNodeOptions(const HashJoinNodeOptions& join_options) {
52 if (join_options.key_cmp.empty() || join_options.left_keys.empty() ||
53 join_options.right_keys.empty()) {
54 return Status::Invalid("key_cmp and keys cannot be empty");
55 }
56
57 if ((join_options.key_cmp.size() != join_options.left_keys.size()) ||
58 (join_options.key_cmp.size() != join_options.right_keys.size())) {
59 return Status::Invalid("key_cmp and keys must have the same size");
60 }
61
62 return Status::OK();
63}
64
65} // namespace
66

Callers 1

MakeMethod · 0.85

Calls 4

InvalidFunction · 0.50
OKFunction · 0.50
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected