Comparison#
- class versus.Comparison(
- *,
- connection: VersusConn,
- handles: Mapping[str, _TableHandle],
- table_id: Tuple[str, str],
- by_columns: List[str],
- allow_both_na: bool,
- materialize_mode: str,
- tables: DuckDBPyRelation,
- by: DuckDBPyRelation,
- intersection: DuckDBPyRelation,
- unmatched_cols: DuckDBPyRelation,
- unmatched_keys: DuckDBPyRelation,
- unmatched_rows: DuckDBPyRelation,
- common_columns: List[str],
- table_columns: Mapping[str, List[str]],
- diff_table: DuckDBPyRelation | None,
- diff_lookup: Dict[str, int] | None,
- unmatched_lookup: Dict[str, int] | None,
In-memory description of how two relations differ.
Provides summary relations plus helper methods to retrieve the exact differences without materializing the full input tables.
Return rows where a single column differs between the tables. |
|
Return a stacked view of value differences for multiple columns. |
|
Return a wide view of differing rows with split columns. |
|
Return a long view of differing rows stacked by table. |
|
Return rows from one table that differ in the selected columns. |
|
Return rows from one table whose keys are missing in the other. |
|
Return unmatched rows from both tables. |
|
Summarize which difference categories are present. |
|
Release any temporary views or tables created for the comparison. |