the log of getProductivityFormula function print inconsistency.

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Gone away
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Execution
    • ALL
    • QE 2023-06-26
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      {"t":\{"$date":"2023-06-14T20:44:38.165+08:00"}

      ,"s":"D2", "c":"QUERY", "id":20961, "ctx":"conn149","msg":"Score formula","attr":{"formula":"score(1.5002) = baseScore(1) + productivity_((1 advances)/(1 numReads) = 0.5)_ + tieBreakers(0 noFetchBonus + 0.0001 noSortBonus + 0.0001 noIxisectBonus = 0.00020000000000000001)"}}

      1/1=0.5,it is wrong。In fact, it is (0 + 1) / (1 + 1) = 0.5

       

      in calculateProductivity func, add 1 to both the numerator and denominator, So we need to keep the results consistent

              Assignee:
              David Storch
              Reporter:
              y yz
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: