Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebarron committed Jun 2, 2024
1 parent 9a37bfa commit ffd6379
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion stac_geoparquet/arrow/_to_parquet.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ def parse_stac_ndjson_to_parquet(
input_path, chunk_size=chunk_size, schema=schema
)
first_batch = next(batches_iter)
schema = first_batch.schema.with_metadata(_create_geoparquet_metadata())
schema = first_batch.schema.with_metadata(
_create_geoparquet_metadata(pa.Table.from_batches([first_batch]))
)
with pq.ParquetWriter(output_path, schema, **kwargs) as writer:
writer.write_batch(first_batch)
for batch in batches_iter:
Expand Down

0 comments on commit ffd6379

Please sign in to comment.