paleolimbot commented on code in PR #46307: URL: https://github.com/apache/arrow/pull/46307#discussion_r2072703861
########## cpp/src/parquet/thrift_internal.h: ########## @@ -106,6 +106,25 @@ static inline BoundaryOrder::type FromThriftUnsafe(format::BoundaryOrder::type t return static_cast<BoundaryOrder::type>(type); } +static inline GeometryLogicalType::EdgeInterpolationAlgorithm FromThriftUnsafe( + format::EdgeInterpolationAlgorithm::type type) { + switch (type) { + case format::EdgeInterpolationAlgorithm::SPHERICAL: + return GeometryLogicalType::EdgeInterpolationAlgorithm::SPHERICAL; + case format::EdgeInterpolationAlgorithm::VINCENTY: + return GeometryLogicalType::EdgeInterpolationAlgorithm::VINCENTY; + case format::EdgeInterpolationAlgorithm::THOMAS: + return GeometryLogicalType::EdgeInterpolationAlgorithm::THOMAS; + case format::EdgeInterpolationAlgorithm::ANDOYER: + return GeometryLogicalType::EdgeInterpolationAlgorithm::ANDOYER; + case format::EdgeInterpolationAlgorithm::KARNEY: + return GeometryLogicalType::EdgeInterpolationAlgorithm::KARNEY; + default: + ARROW_DCHECK(false) << "Cannot reach here"; Review Comment: All the code above and below this uses in thrift_internal.h uses `ARROW_DCHECK(false)` (although we should perhaps change all of them at some point!) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org