| 65 | } |
| 66 | |
| 67 | Status 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 | |
| 82 | Status OrcSchemaResolver::ResolveColumnByPosition(const SchemaPath& col_path, |
| 83 | const orc::Type** node, bool* pos_field, bool* missing_field) const { |
no test coverage detected