nemo_curator.stages.interleaved.io.readers.base
nemo_curator.stages.interleaved.io.readers.base
Module Contents
Classes
API
Bases: ProcessingStage[FileGroupTask, InterleavedBatch]
Base contract for interleaved readers.
By default (schema=None) user-added passthrough columns are preserved
and only reserved-column types are reconciled via reconcile_schema.
If schema is set explicitly, every output table is strictly aligned to it (missing columns become typed nulls, extra columns are dropped).
Use schema_overrides to add or override individual field types relative to
INTERLEAVED_SCHEMA while keeping strict alignment:
.. code-block:: python
reader = InterleavedParquetReader( “data.parquet”, schema_overrides={“url”: pa.string(), “timestamp”: pa.int64()}, )
Reconcile or align table to the declared schema.
Return source_files for one split, annotated with the split index for lineage tracking.
The ::split_NNN suffix is appended so that downstream consumers can correlate
each output batch back to the exact split of its source file(s), even when a single
source file is split into multiple batches by max_batch_bytes.