zuochunwei commented on a change in pull request #6625:
URL: https://github.com/apache/incubator-doris/pull/6625#discussion_r708987284



##########
File path: be/src/olap/hll.cpp
##########
@@ -363,53 +427,53 @@ int64_t HyperLogLog::estimate_cardinality() const {
         // there are relatively large fluctuations, we fixed the problem refer 
to redis.
         double bias = 5.9119 * 1.0e-18 * (estimate * estimate * estimate * 
estimate) -
                       1.4253 * 1.0e-12 * (estimate * estimate * estimate) +
-                      1.2940 * 1.0e-7 * (estimate * estimate) - 5.2921 * 
1.0e-3 * estimate +
-                      83.3216;
+                      1.2940 * 1.0e-7 * (estimate * estimate) -
+                      5.2921 * 1.0e-3 * estimate + 83.3216;
         estimate -= estimate * (bias / 100);
     }
     return (int64_t)(estimate + 0.5);
 }
 
 void HllSetResolver::parse() {
     // skip LengthValueType
-    char* pdata = _buf_ref;
+    char*  pdata = _buf_ref;

Review comment:
       ok




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to