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

Method ValidateArray

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

Source from the content-addressed store, hash-verified

154}
155
156Status 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
168Status OrcSchemaResolver::ValidateMap(const ColumnType& type,
169 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