calamari.exceptions.CatalogSelectionError#
- exception calamari.exceptions.CatalogSelectionError#
A catalog selection did not describe the rows it claimed to.
Raised by
calamari.catalog.Catalogwhen a selection is a claim and the claim fails:drop()was given a filename matching no row, orload_one()matched zero or several files. In both cases silently returning the surviving rows would hide the failure – a mistyped filename would “drop” nothing, and a sloppy filter would hand back an arbitrary file – so the mismatch is reported by name instead, with the matching candidates listed where there are any.Not raised for a filter that merely selects nothing: an empty
where()result is an ordinary answer to an ordinary question, and only the methods above assert more than “keep whatever matches”.