parq_blockmodel.schema.utils#
Pure utility functions for schema handling and validation.
Functions in this module are stateless and can be used independently of any ParquetBlockModel or SchemaService instance.
Functions
Build Parquet writer kwargs from a resolved compression policy. |
|
Build combined metadata dict for Parquet schema (geometry + schema YAML + compression). |
|
Extract df-eval operations from a pandera schema. |
|
Serialize a pandera schema to YAML text. |
|
Extract alias mappings from schema df-eval metadata. |
|
Extract the set of column names that are required (should be persisted). |
|
Read compression policy from schema metadata if present. |
|
Extract compression policy metadata embedded in a Parquet file. |
|
Extract and load a schema embedded in Parquet metadata. |
|
Load and return a pandera DataFrameSchema. |
|
Resolve a simple user-facing compression choice for active writes. |
|
Resolve archive compression using schema metadata or explicit policy. |
|
Return True when schema root-level strict mode is set to |
|
Recursively select df-eval operations and their dependencies. |
|
Validate and coerce a single DataFrame chunk against a schema. |