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

Method ResolveColumn

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

Source from the content-addressed store, hash-verified

65}
66
67Status OrcSchemaResolver::ResolveColumn(const SchemaPath& col_path,
68 const orc::Type** node, bool* pos_field, bool* missing_field) const {
69 if (schema_resolution_strategy_ == TSchemaResolutionStrategy::POSITION) {
70 return ResolveColumnByPosition(col_path, node, pos_field, missing_field);
71 } else if (schema_resolution_strategy_ == TSchemaResolutionStrategy::NAME) {
72 return ResolveColumnByName(col_path, node, pos_field, missing_field);
73 } else if (schema_resolution_strategy_ == TSchemaResolutionStrategy::FIELD_ID) {
74 return ResolveColumnByIcebergFieldId(col_path, node, pos_field, missing_field);
75 } else {
76 DCHECK(false);
77 return Status(Substitute("Invalid schema resolution strategy: $0",
78 schema_resolution_strategy_));
79 }
80}
81
82Status OrcSchemaResolver::ResolveColumnByPosition(const SchemaPath& col_path,
83 const orc::Type** node, bool* pos_field, bool* missing_field) const {

Callers 4

ResolveColumnsMethod · 0.80
SelectColumnsMethod · 0.80

Calls 2

SubstituteFunction · 0.85
StatusClass · 0.50

Tested by

no test coverage detected