Build the cardinality COUNT used by the dispatch logic to choose exact vs. approximate.
Deliberately omits the vectorColumn IS NOT NULL predicate (forcing a per-row lookup of the
VECTOR column would defeat the covering index — the missing-vector rows are immaterial to the
threshold decision). Returns no params when there's no filter.
Build the cardinality COUNT used by the dispatch logic to choose exact vs. approximate. Deliberately omits the
vectorColumn IS NOT NULLpredicate (forcing a per-row lookup of the VECTOR column would defeat the covering index — the missing-vector rows are immaterial to the threshold decision). Returns no params when there's no filter.