stac-rs icon indicating copy to clipboard operation
stac-rs copied to clipboard

Build an arrow table in one pass

Open gadomski opened this issue 6 months ago • 0 comments

Right now we do two passes through our items to create a table:

  1. Pop geometries and add them to their geometry builders, explode bbox to an object
  2. Infer schema using infer_json_schema_from_iterator

It'd be nice to do this one pass. It's a little tricky because we manage state while iterating, and the infer_json_schema_from_iterator Item type demands an ArrowError which is a little awkward, since we have other errors that pop up while iterating.

gadomski avatar Jun 04 '25 14:06 gadomski