ParquetSnapshotCache

ParquetSnapshotCache()

Cache expression results as Parquet files with a stable, snapshot key.

Unlike :class:ParquetCache (which uses ModificationTimeStrategy and re-hashes when source data changes), this class pairs SnapshotStrategy with ParquetStorage: the cache key is computed from the expression structure only, so source-data changes do not invalidate cached results. Build it with :meth:from_kwargs.

Parameters

Name Type Description Default
source ibis.backends.BaseBackend Backend used to write the file on a miss and read it back on a hit. Defaults to xorq’s default backend. required
relative_path Path Subdirectory under the cache root. Defaults to xorq.config.options.cache.default_relative_path (parquet). required
base_path Path Cache root. Defaults to None, which resolves to XORQ_CACHE_DIR. required