Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-9915

Num distinct values for IS [NOT] NULL predicate should be 2

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • Impala 3.4.0
    • None
    • Frontend
    • None
    • ghx-label-3

    Description

      Currently, the NDV of all predicates is hardcoded to 3 following the 3-valued logic (True/False/Unknown). This is done in Predicate.analyzeImpl() method. For IsNullPredicate which represents IS NULL and IS NOT NULL, strictly speaking the NDV should be 2 since it should only evaluate to True or False. Fixing this is more of a technicality and probably won't affect explain plans in the tests. There are targeted tests in ExprCardinalityTest that should be updated when this is fixed.

      Attachments

        Activity

          People

            Unassigned Unassigned
            amansinha Aman Sinha
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: