shengyunyao commented on issue #1947: Add tdigest compression param for 
pencentile_approx function
URL: 
https://github.com/apache/incubator-doris/issues/1947#issuecomment-540381195
 
 
   With the different value of compression, we can get results as follows.
   
   ```
   mysql>  select percentile_approx(siteid, 0.8,100) from table1;
   +-----------------------------------------+
   | percentile_approx(`siteid`, 0.8, 100.0) |
   +-----------------------------------------+
   |                      67062264.459699914 |
   +-----------------------------------------+
   1 row in set (5.54 sec)
   
   mysql>  select percentile_approx(siteid, 0.8,1000) from table1;
   +------------------------------------------+
   | percentile_approx(`siteid`, 0.8, 1000.0) |
   +------------------------------------------+
   |                       67026452.899213754 |
   +------------------------------------------+
   1 row in set (6.71 sec)
   
   mysql>  select percentile_approx(siteid, 0.8,10000) from table1;
   +-------------------------------------------+
   | percentile_approx(`siteid`, 0.8, 10000.0) |
   +-------------------------------------------+
   |                        67022356.721001081 |
   +-------------------------------------------+
   1 row in set (8.15 sec)
   
   mysql> select count(*) from table1;
   +----------+
   | count(*) |
   +----------+
   | 83777768 |
   +----------+
   1 row in set (2.09 sec)
   ```

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to