MCPcopy Create free account
hub / github.com/apache/impala / ValidateMap

Method ValidateMap

be/src/exec/orc/orc-metadata-utils.cc:168–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166}
167
168Status 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
180Status OrcSchemaResolver::ResolveColumnByName(const SchemaPath& col_path,
181 const orc::Type** node, bool* pos_field, bool* missing_field) const {

Callers

nothing calls this directly

Calls 6

PrintPathFunction · 0.85
OKFunction · 0.85
getKindMethod · 0.80
StatusClass · 0.50
sizeMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected