| 1323 | } |
| 1324 | |
| 1325 | std::unordered_map<uint32_t, std::vector<std::string>> makeStructEncodingOption( |
| 1326 | const ColumnSelector& cs, |
| 1327 | const std::string& columnName, |
| 1328 | const std::vector<int32_t>& keys) { |
| 1329 | const auto schema = cs.getSchemaWithId(); |
| 1330 | const auto names = schema->type()->as<TypeKind::ROW>().names(); |
| 1331 | |
| 1332 | for (uint32_t i = 0; i < names.size(); ++i) { |
| 1333 | if (columnName == names[i]) { |
| 1334 | std::unordered_map<uint32_t, std::vector<std::string>> config; |
| 1335 | config[schema->childAt(i)->id()] = stringify(keys); |
| 1336 | return config; |
| 1337 | } |
| 1338 | } |
| 1339 | |
| 1340 | folly::assume_unreachable(); |
| 1341 | } |
| 1342 | |
| 1343 | void verifyMapColumnEqual( |
| 1344 | MapVector* mapVector, |