yggdrasil.delta.tests¶
tests ¶
Back-compat shim — :class:DeltaTestCase lives at :mod:yggdrasil.io.delta.tests.
DeltaTestCase ¶
Bases: ArrowTestCase
:class:ArrowTestCase with Delta convenience helpers.
Adds:
- :meth:
delta_io— return a fresh :class:DeltaFolderover a sub-directory of the per-test :attr:tmp_path. - :meth:
new_table— convenience for "create a brand-new :class:DeltaFolderand seed it with a pyarrow Table in one call."
table ¶
Shorthand for pa.table(data, schema=schema).
record_batch ¶
Shorthand for pa.record_batch(data, schema=schema).
write_parquet ¶
Write table to path as Parquet and return the path.
write_ipc ¶
Write table as Arrow IPC (file format) and return the path.
assertFrameEqual ¶
assertFrameEqual(
actual: "pa.Table",
expected: "pa.Table",
*,
check_schema: bool = True,
check_metadata: bool = False
) -> None
Assert two Arrow tables are equal.
check_metadata=False ignores schema and field metadata, which
is the usual "does the data match" check. Set it True for
round-trip tests where metadata preservation matters.
assertSchemaEqual ¶
Assert a table/schema has exactly the given (name, type) fields.