| 1218 | } |
| 1219 | |
| 1220 | Result<std::shared_ptr<Field>> GetArrowField(const std::string& name, |
| 1221 | const liborc::Type* type, bool nullable) { |
| 1222 | ARROW_ASSIGN_OR_RAISE(auto arrow_type, GetArrowType(type)); |
| 1223 | ARROW_ASSIGN_OR_RAISE(auto metadata, GetFieldMetadata(type)); |
| 1224 | return field(name, std::move(arrow_type), nullable, std::move(metadata)); |
| 1225 | } |
| 1226 | |
| 1227 | int GetOrcMajorVersion() { |
| 1228 | std::stringstream orc_version(ORC_VERSION); |