wgtmac commented on code in PR #55599:
URL: https://github.com/apache/arrow/pull/55599#discussion_r4583630518
##########
cpp/src/parquet/geospatial/util_json_internal.cc:
##########
@@ -41,10 +41,9 @@ ::arrow::Result<std::string>
GeospatialGeoArrowCrsToParquetCrs(
if (!json_crs_result.ok()) {
if (json_crs_result.status().IsKeyError()) {
- // Parquet GEOMETRY/GEOGRAPHY do not have a concept of a null/missing
- // CRS, but an omitted one is more likely to have meant "lon/lat" than
- // a truly unspecified one (i.e., Engineering CRS with arbitrary XY
units)
- return "";
+ // GeoArrow uses an omitted CRS to mean that the CRS is unknown. Parquet
+ // represents this explicitly as the special value "srid:0".
+ return "srid:0";
Review Comment:
Let's use a constexpr for this magic string?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]