Add data-lake Parquet/Arrow consumer (pymeos.io)#84
Open
estebanzimanyi wants to merge 1 commit into
Open
Conversation
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.
1c032d2 to
9a6f8b9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_maxand per-typex/y/zspatial orvnumeric bounds) let a Parquet/Arrow engine prune row groups from column statistics without decoding the payload, and thetemporalfooter written to the Parquet KV metadata / Arrow schema metadata is byte-identical to MobilityDuck'stemporalFooter(). WKB reconstruction is type-self-describing via the existing factory, so reads need no type hint.pyarrowis added as the optionalparquetextra and is imported lazily, so the base install is unchanged. Includes a quickstart example (Python port of MobilityDuck'sexamples/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.