Reranko05 commented on code in PR #50781:
URL: https://github.com/apache/arrow/pull/50781#discussion_r3717901796
##########
cpp/src/parquet/geospatial/util_json_internal.cc:
##########
@@ -71,14 +112,26 @@ ::arrow::Result<std::string>
GeospatialGeoArrowCrsToParquetCrs(
// If we could not detect a longitude/latitude CRS, just write the string to
the
// LogicalType crs (being sure to unescape a JSON string into a regular
string)
- if (json_crs.IsString()) {
- return json_crs.GetString();
- } else {
- rj::StringBuffer buffer;
- rj::Writer<rj::StringBuffer> writer(buffer);
- json_crs.Accept(writer);
- return buffer.GetString();
+ RETURN_NOT_OK(::arrow::internal::GetSimdjsonResult(crs_object.reset(),
+ "Failed to reset 'crs'
object: ")
Review Comment:
Addressed. Changed it to `ResolveSimdjsonResult()`
--
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]