| 154 | } |
| 155 | |
| 156 | Status OrcSchemaResolver::ValidateArray(const ColumnType& type, |
| 157 | const orc::Type& orc_type, const SchemaPath& col_path, |
| 158 | int current_idx) const { |
| 159 | DCHECK_EQ(type.children.size(), 1); |
| 160 | if (orc_type.getKind() != orc::TypeKind::LIST) { |
| 161 | return Status(TErrorCode::ORC_NESTED_TYPE_MISMATCH, filename_, |
| 162 | PrintPath(tbl_desc_, GetCanonicalSchemaPath(col_path, current_idx)), "array", |
| 163 | orc_type.toString()); |
| 164 | } |
| 165 | return Status::OK(); |
| 166 | } |
| 167 | |
| 168 | Status OrcSchemaResolver::ValidateMap(const ColumnType& type, |
| 169 | const orc::Type& orc_type, const SchemaPath& col_path, |