Reranko05 commented on PR #50781:
URL: https://github.com/apache/arrow/pull/50781#issuecomment-5167834273

   @rok @taepper
   
   I'm migrating `parquet/geospatial/util_json_internal.cc` and ran into an 
`ondemand` question.
   
   `GeospatialGeoArrowCrsToParquetCrs()` needs to:
   1. inspect the `crs` object (e.g. check the `id.authority`/`code` fields to 
detect EPSG:4326/CRS84), and
   2. if it isn't a recognized lon/lat CRS, serialize the same object back to 
JSON.
   
   With RapidJSON this was straightforward because the DOM is reusable, but 
with `simdjson::ondemand` the object has already been consumed by the time I 
want to serialize it, leading to `OUT_OF_ORDER_ITERATION`.
   
   Is the expected approach here to restructure the code into a single pass, or 
is there another way to serialize an already-inspected `ondemand::object`?
   
   Thanks!


-- 
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]

Reply via email to