Skip to content

Add data-lake Parquet/Arrow consumer (pymeos.io)#84

Open
estebanzimanyi wants to merge 1 commit into
masterfrom
feat/datalake-consumer
Open

Add data-lake Parquet/Arrow consumer (pymeos.io)#84
estebanzimanyi wants to merge 1 commit into
masterfrom
feat/datalake-consumer

Conversation

@estebanzimanyi
Copy link
Copy Markdown
Member

Adds pymeos.io (to_arrow/from_arrow/write_temporal/read_temporal + temporal_footer), a data-lake interchange that mirrors the MobilityDuck consumer recipe so files written by either tool interoperate: the temporal column is stored as an opaque MEOS-WKB payload, O(1) native-scalar bounding-box sidecar columns (<col>_ts_min/ts_max and per-type x/y/z spatial or v numeric bounds) let a Parquet/Arrow engine prune row groups from column statistics without decoding the payload, and the temporal footer written to the Parquet KV metadata / Arrow schema metadata is byte-identical to MobilityDuck's temporalFooter(). WKB reconstruction is type-self-describing via the existing factory, so reads need no type hint. pyarrow is added as the optional parquet extra and is imported lazily, so the base install is unchanged. Includes a quickstart example (Python port of MobilityDuck's examples/quickstart/quickstart.sql) and tests covering footer interop, sidecar emission, Parquet round-trip with predicate pushdown, and the numeric-sidecar path; verified end-to-end against libmeos + pyarrow. The columnar MEOS-ARROW encoding (zero-copy nested Arrow via the MEOS Arrow kernel) is intentionally out of scope here and tracked separately, gated on that kernel landing in a pinned libmeos; the footer is forward-compatible with adding it as an additive encoding with a WKB fallback column.

Mirrors the MobilityDuck data-lake recipe so files interoperate: a
MEOS-WKB payload column, O(1) native-scalar bounding-box sidecar
columns for Parquet/Arrow row-group pruning, and a temporal footer
byte-identical to MobilityDuck's temporalFooter(). Adds to_arrow /
from_arrow / write_temporal / read_temporal, pyarrow as the optional
[parquet] extra, a quickstart example and tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant