| 166 | } |
| 167 | |
| 168 | Status OrcSchemaResolver::ValidateMap(const ColumnType& type, |
| 169 | const orc::Type& orc_type, const SchemaPath& col_path, |
| 170 | int current_idx) const { |
| 171 | DCHECK_EQ(type.children.size(), 2); |
| 172 | if (orc_type.getKind() != orc::TypeKind::MAP) { |
| 173 | return Status(TErrorCode::ORC_NESTED_TYPE_MISMATCH, filename_, |
| 174 | PrintPath(tbl_desc_, GetCanonicalSchemaPath(col_path, current_idx)), "map", |
| 175 | orc_type.toString()); |
| 176 | } |
| 177 | return Status::OK(); |
| 178 | } |
| 179 | |
| 180 | Status OrcSchemaResolver::ResolveColumnByName(const SchemaPath& col_path, |
| 181 | const orc::Type** node, bool* pos_field, bool* missing_field) const { |