AshR2RML.Parity (AshR2RML v26.8.22)

Copy Markdown View Source

Deterministic semantic-result comparator for side-by-side cutover evidence.

Query execution is intentionally outside this module. Callers execute the admitted SQL/SPARQL/Cypher queries, then pass their observed rows here. The comparator normalizes result multisets and emits a stable receipt that can be attached to AshR2RML.CompilationReceipt.

Summary

Functions

Normalize an unordered result multiset while preserving duplicate cardinality.

Functions

compare(kind, subject, left_rows, right_rows, metadata \\ %{})

@spec compare(:sparql_sql | :neo4j_postgres, term(), list(), list(), map()) ::
  AshR2RML.ParityReceipt.t()

normalize_multiset(rows)

Normalize an unordered result multiset while preserving duplicate cardinality.