ExportXMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Supplement CardinalityEstimator::clampZeroEstimate with a more intelligent heuristic, for equality predicates in particular, since these can be effectively estimated from NDV and we can estimate NDV from the sample. Run a Chao1 estimator for distinct value estimation on the sample (or choose an alternative NDV estimator). Then calculate the equality predicate's CE asĀ 1/NDV.

            Assignee:
            Steve Tarzia
            Reporter:
            Steve Tarzia
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: