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

Method ValidateStruct

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

Source from the content-addressed store, hash-verified

142}
143
144Status OrcSchemaResolver::ValidateStruct(const ColumnType& type,
145 const orc::Type& orc_type, const SchemaPath& col_path,
146 int current_idx) const {
147 DCHECK_GT(type.children.size(), 0);
148 if (orc_type.getKind() != orc::TypeKind::STRUCT) {
149 return Status(TErrorCode::ORC_NESTED_TYPE_MISMATCH, filename_,
150 PrintPath(tbl_desc_, GetCanonicalSchemaPath(col_path, current_idx)), "struct",
151 orc_type.toString());
152 }
153 return Status::OK();
154}
155
156Status OrcSchemaResolver::ValidateArray(const ColumnType& type,
157 const orc::Type& orc_type, const SchemaPath& col_path,

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