Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-8283

Missing break in FilterSelectivityEstimator#visitCall()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 0.14.0
    • 0.14.0
    • None
    • None

    Description

          case NOT_EQUALS: {
            selectivity = computeNotEqualitySelectivity(call);
          }
      
          case LESS_THAN_OR_EQUAL:
          case GREATER_THAN_OR_EQUAL:
          case LESS_THAN:
          case GREATER_THAN: {
            selectivity = ((double) 1 / (double) 3);
            break;
          }
      

      break is missing for NOT_EQUALS case. selectivity would be overwritten with 1/3.

      Attachments

        1. HIVE-8283.1.patch.txt
          0.6 kB
          Navis Ryu

        Issue Links

          Activity

            People

              navis Navis Ryu
              yuzhihong@gmail.com Ted Yu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: