| 49 | namespace { |
| 50 | |
| 51 | Status 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 | |