Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-15 Thread via GitHub


yiguolei merged PR #67469:
URL: https://github.com/apache/doris/pull/67469


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-15 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5691689599

   # BE Regression && UT Coverage Report
   Increment line coverage `85.42% (41/48)` :tada:
   
   [Increment coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_6726f81475eab9f93f01602d7613d03d960dd862_merge/increment_report/index.html)
   [Complete coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_6726f81475eab9f93f01602d7613d03d960dd862_merge/report/index.html)
   | Category  | Coverage   |
   |---||
   | Function Coverage | 76.14% (34304/45051) |
   | Line Coverage | 61.09% (385210/630591) |
   | Region Coverage   | 57.56% (324651/564024) |
   | Branch Coverage   | 58.24% (147557/253369) |


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-15 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5678427075

   # FE Regression Coverage Report
   Increment line coverage `  16.15% (21/130)` :tada:
   [Increment coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_6726f81475eab9f93f01602d7613d03d960dd862_merge_fe/increment_report/index.html)
   [Complete coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_6726f81475eab9f93f01602d7613d03d960dd862_merge_fe/report/index.html)
   


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-15 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5678955343

   # FE Regression Coverage Report
   Increment line coverage `  15.33% (21/137)` :tada:
   [Increment coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_6726f81475eab9f93f01602d7613d03d960dd862_merge_fe/increment_report/index.html)
   [Complete coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_6726f81475eab9f93f01602d7613d03d960dd862_merge_fe/report/index.html)
   


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-15 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5678470277

   # BE Regression && UT Coverage Report
   Increment line coverage `85.42% (41/48)` :tada:
   
   [Increment coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_6726f81475eab9f93f01602d7613d03d960dd862_merge/increment_report/index.html)
   [Complete coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_6726f81475eab9f93f01602d7613d03d960dd862_merge/report/index.html)
   | Category  | Coverage   |
   |---||
   | Function Coverage | 76.14% (34304/45051) |
   | Line Coverage | 61.09% (385210/630591) |
   | Region Coverage   | 57.56% (324651/564024) |
   | Branch Coverage   | 58.24% (147557/253369) |


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-15 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5678293098

   # FE Regression Coverage Report
   Increment line coverage `  16.15% (21/130)` :tada:
   [Increment coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_6726f81475eab9f93f01602d7613d03d960dd862_merge_fe/increment_report/index.html)
   [Complete coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_6726f81475eab9f93f01602d7613d03d960dd862_merge_fe/report/index.html)
   


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-15 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5678233044

   
   
   ClickBench: Total hot run time: 14.55 s
   
   ```
   machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
   scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
   ClickBench test result on commit 6726f81475eab9f93f01602d7613d03d960dd862, 
data reload: false
   
   query1   0.000.010.00
   query2   0.080.030.04
   query3   0.250.110.11
   query4   1.600.100.11
   query5   0.170.160.15
   query6   1.260.680.66
   query7   0.040.010.00
   query8   0.050.030.03
   query9   0.290.210.20
   query10  0.350.350.36
   query11  0.160.120.11
   query12  0.140.120.12
   query13  0.310.300.30
   query14  0.460.450.44
   query15  0.360.360.36
   query16  0.210.220.22
   query17  0.620.700.70
   query18  0.160.160.17
   query19  1.241.101.08
   query20  0.020.010.01
   query21  15.46   0.160.11
   query22  5.100.040.04
   query23  16.20   0.260.10
   query24  3.010.290.25
   query25  0.100.050.04
   query26  0.800.160.14
   query27  0.030.020.03
   query28  3.620.540.26
   query29  12.43   3.182.56
   query30  0.270.110.12
   query31  2.750.360.16
   query32  3.530.310.22
   query33  1.411.471.40
   query34  15.37   2.221.78
   query35  1.771.741.72
   query36  0.450.290.29
   query37  0.060.040.04
   query38  0.040.040.03
   query39  0.030.020.03
   query40  0.130.070.07
   query41  0.070.020.03
   query42  0.030.020.02
   query43  0.030.030.02
   Total cold run time: 90.46 s
   Total hot run time: 14.55 s
   ```
   
   


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-15 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5678181813

   
   
   TPC-DS: Total hot run time: 81922 ms
   
   ```
   machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
   scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
   TPC-DS sf100 test result on commit 6726f81475eab9f93f01602d7613d03d960dd862, 
data reload: false
   
   query5   4231413 325 325
   query6   411 133 124 124
   query7   4933428 231 231
   query8   296 131 121 121
   query9   8687291329142913
   query10  394 229 185 185
   query11  53691044911 911
   query12  114 73  68  68
   query13  1187426 322 322
   query14  5986221120962096
   query14_11975196819621962
   query15  173 121 115 115
   query16  907 366 349 349
   query17  815 460 362 362
   query18  2334344 237 237
   query19  171 136 107 107
   query20  91  70  69  69
   query21  207 101 90  90
   query22  5426541952855285
   query23  6871624261176117
   query23_16155595362355953
   query24  72781069815 815
   query24_1771 772 783 772
   query25  425 304 252 252
   query26  1227247 132 132
   query27  2767436 261 261
   query28  4656148215041482
   query29  938 454 350 350
   query30  259 157 133 133
   query31  852 400 330 330
   query32  135 82  72  72
   query33  473 226 176 176
   query34  1021816 459 459
   query35  407 399 371 371
   query36  567 584 535 535
   query37  121 81  75  75
   query38  1024857 804 804
   query39  500 496 464 464
   query39_1473 463 468 463
   query40  207 94  79  79
   query41  59  60  55  55
   query42  76  71  72  71
   query43  245 244 215 215
   query44  1028539 537 537
   query45  112 106 113 106
   query46  756 810 526 526
   query47  800 773 704 704
   query48  303 319 235 235
   query49  551 246 196 196
   query50  779 266 190 190
   query51  8276808881218088
   query52  65  73  59  59
   query53  195 196 143 143
   query54  215 182 202 182
   query55  81  61  59  59
   query56  186 168 173 168
   query57  690 669 668 668
   query58  197 161 163 161
   query59  1208123011011101
   query60  220 197 165 165
   query61  111 108 114 108
   query62  356 207 202 202
   query63  176 141 138 138
   query64  2668706 591 591
   query65  1573157715711571
   query66  1926271 215 215
   query67  9782993496569656
   query68  29981234690 690
   query69  356 223 193 193
   query70  682 606 617 606
   query71  253 182 162 162
   query72  2336163414501450
   query73  657 592 339 339
   query74  2013121511491149
   query75  11831097964 964
   query76  2386711 530 530
   query77  246 258 209 209
   query78  4221372932243224
   query79  2342809 585 585
   query80  1595318 281 281
   query81  493 156 135 135
   query82  827 121 97  97
   query83  277 208 184 184
   query84  296 111 89  89
   query85  769 326 273 273
   query86  393 178 169 169
   query87  1019970 899 899
   query88  2798212021222120
   query89  277 201 170 170
   query90  2004131 127 127
   query91  129 116 94  94
   query92  78  71  69  69
   query93  14431163696 696
   query94  659 251 213 213
   query95  500 328 217 217
   query96  816 555 274 274
   query97  1075109110311031
   query98  164 137 140 137
   query99  428 346 315 315
   Total cold run time: 178593 ms
   Total hot run time: 81922 ms
   ```
   
   


-- 
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 

Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-15 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5678095312

   
   
   TPC-H: Total hot run time: 16815 ms
   
   ```
   machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
   scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
   Tpch sf100 test result on commit 6726f81475eab9f93f01602d7613d03d960dd862, 
data reload: false
   
   -- Round 1 --
   
   q1   17613   302030413020
   q2   2082268 225 225
   q3   10237   893 511 511
   q4   4671252 200 200
   q5   7677583 403 403
   q6   135 114 96  96
   q7   525 499 382 382
   q8   9242884 907 884
   q9   3551242923982398
   q10  6503896 698 698
   q11  398 200 178 178
   q12  633 265 208 208
   q13  18090   154411491149
   q14  161 151 139 139
   q15  q16 436 396 368 368
   q17  1386875 768 768
   q18  3131225322792253
   q19  1269853 780 780
   q20  400 293 206 206
   q21  5654172318811723
   q22  337 264 226 226
   Total cold run time: 94131 ms
   Total hot run time: 16815 ms
   
   - Round 2, with runtime_filter_mode=off -
   
   q1   3426337433263326
   q2   521 393 378 378
   q3   2254228221802180
   q4   12081182894 894
   q5   2192215921112111
   q6   174 125 86  86
   q7   1011927 830 830
   q8   1601140614061406
   q9   3158312931323129
   q10  1892186716471647
   q11  357 268 249 249
   q12  463 429 340 340
   q13  1537155211651165
   q14  174 180 157 157
   q15  q16 402 394 356 356
   q17  3550334532713271
   q18  4775440247454402
   q19  899 914 867 867
   q20  1015958 845 845
   q21  3827326932643264
   q22  401 343 318 318
   Total cold run time: 34837 ms
   Total hot run time: 31221 ms
   ```
   
   


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-15 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5677891581

   # FE Regression Coverage Report
   Increment line coverage `  16.15% (21/130)` :tada:
   [Increment coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_6726f81475eab9f93f01602d7613d03d960dd862_merge_fe/increment_report/index.html)
   [Complete coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_6726f81475eab9f93f01602d7613d03d960dd862_merge_fe/report/index.html)
   


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-15 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5677785299

   # BE Regression && UT Coverage Report
   Increment line coverage `85.42% (41/48)` :tada:
   
   [Increment coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_6726f81475eab9f93f01602d7613d03d960dd862_merge/increment_report/index.html)
   [Complete coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_6726f81475eab9f93f01602d7613d03d960dd862_merge/report/index.html)
   | Category  | Coverage   |
   |---||
   | Function Coverage | 76.14% (34304/45051) |
   | Line Coverage | 61.09% (385220/630591) |
   | Region Coverage   | 57.55% (324587/564024) |
   | Branch Coverage   | 58.23% (147548/253369) |


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-15 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5677530055

   # BE Regression && UT Coverage Report
   Increment line coverage `85.42% (41/48)` :tada:
   
   [Increment coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_6726f81475eab9f93f01602d7613d03d960dd862_merge/increment_report/index.html)
   [Complete coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_6726f81475eab9f93f01602d7613d03d960dd862_merge/report/index.html)
   | Category  | Coverage   |
   |---||
   | Function Coverage | 76.14% (34300/45051) |
   | Line Coverage | 61.07% (385117/630591) |
   | Region Coverage   | 57.51% (324389/564024) |
   | Branch Coverage   | 58.21% (147479/253369) |


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-15 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5677440269

   # BE Regression && UT Coverage Report
   Increment line coverage `85.42% (41/48)` :tada:
   
   [Increment coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_6726f81475eab9f93f01602d7613d03d960dd862_merge/increment_report/index.html)
   [Complete coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_6726f81475eab9f93f01602d7613d03d960dd862_merge/report/index.html)
   | Category  | Coverage   |
   |---||
   | Function Coverage | 76.06% (34263/45049) |
   | Line Coverage | 61.00% (384630/630513) |
   | Region Coverage   | 57.42% (323820/563942) |
   | Branch Coverage   | 58.16% (147333/253345) |


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-15 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5677288115

   # BE Regression && UT Coverage Report
   Increment line coverage `85.42% (41/48)` :tada:
   
   [Increment coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_6726f81475eab9f93f01602d7613d03d960dd862_merge/increment_report/index.html)
   [Complete coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_6726f81475eab9f93f01602d7613d03d960dd862_merge/report/index.html)
   | Category  | Coverage   |
   |---||
   | Function Coverage | 76.06% (34263/45049) |
   | Line Coverage | 61.00% (384630/630513) |
   | Region Coverage   | 57.42% (323820/563942) |
   | Branch Coverage   | 58.16% (147333/253345) |


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-15 Thread via GitHub


nooneuse commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5677137019

   run performance


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-15 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5676722572

   # FE UT Coverage Report
   Increment line coverage `  80.00% (20/25)` :tada:
   [Increment coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_6726f81475eab9f93f01602d7613d03d960dd862/fe_increment_report/index.html)
   [Complete coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_6726f81475eab9f93f01602d7613d03d960dd862/fe_report/index.html)
   


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-14 Thread via GitHub


nooneuse commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5675590462

   run buildall


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-14 Thread via GitHub


yiguolei commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5673238027

   /review


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-14 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5668417300

   
   
   ClickBench: Total hot run time: 14.64 s
   
   ```
   machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
   scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
   ClickBench test result on commit 6726f81475eab9f93f01602d7613d03d960dd862, 
data reload: false
   
   query1   0.000.000.00
   query2   0.080.040.04
   query3   0.240.110.11
   query4   1.600.100.10
   query5   0.180.160.16
   query6   1.260.700.71
   query7   0.040.010.00
   query8   0.050.030.03
   query9   0.280.210.22
   query10  0.350.340.34
   query11  0.150.120.12
   query12  0.150.120.12
   query13  0.300.320.31
   query14  0.440.450.44
   query15  0.370.360.36
   query16  0.220.220.24
   query17  0.740.640.67
   query18  0.180.160.17
   query19  1.191.161.17
   query20  0.020.010.01
   query21  15.44   0.150.12
   query22  5.070.040.04
   query23  16.16   0.250.11
   query24  3.000.300.27
   query25  0.120.040.03
   query26  0.890.160.11
   query27  0.040.030.02
   query28  3.680.560.29
   query29  12.45   3.182.55
   query30  0.260.120.12
   query31  2.750.380.17
   query32  3.520.320.24
   query33  1.401.631.38
   query34  15.31   2.211.77
   query35  1.741.761.68
   query36  0.450.300.28
   query37  0.060.040.04
   query38  0.050.030.03
   query39  0.030.020.02
   query40  0.110.080.07
   query41  0.070.020.02
   query42  0.030.020.02
   query43  0.030.030.03
   Total cold run time: 90.5 s
   Total hot run time: 14.64 s
   ```
   
   


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-14 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5668362934

   
   
   TPC-DS: Total hot run time: 81562 ms
   
   ```
   machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
   scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
   TPC-DS sf100 test result on commit 6726f81475eab9f93f01602d7613d03d960dd862, 
data reload: false
   
   query5   4268435 356 356
   query6   398 140 133 133
   query7   4897428 238 238
   query8   294 128 127 127
   query9   8716289429062894
   query10  392 225 187 187
   query11  53821050918 918
   query12  121 75  70  70
   query13  1191463 344 344
   query14  6125220920722072
   query14_11985195519601955
   query15  175 123 117 117
   query16  918 394 354 354
   query17  800 453 365 365
   query18  2347340 242 242
   query19  163 144 107 107
   query20  74  71  70  70
   query21  206 104 92  92
   query22  5394544052575257
   query23  6855622358285828
   query23_16149614460306030
   query24  73061071802 802
   query24_1775 775 773 773
   query25  423 301 245 245
   query26  1235251 131 131
   query27  2765422 242 242
   query28  4711149914921492
   query29  933 434 353 353
   query30  250 157 132 132
   query31  811 422 328 328
   query32  124 77  69  69
   query33  458 215 175 175
   query34  978 855 492 492
   query35  400 394 344 344
   query36  569 556 543 543
   query37  118 78  70  70
   query38  1001845 815 815
   query39  489 500 465 465
   query39_1469 451 461 451
   query40  194 88  74  74
   query41  53  51  52  51
   query42  73  70  70  70
   query43  241 240 205 205
   query44  976 523 550 523
   query45  107 105 96  96
   query46  803 832 543 543
   query47  742 760 715 715
   query48  296 297 226 226
   query49  550 244 185 185
   query50  729 254 189 189
   query51  8205802681368026
   query52  68  70  60  60
   query53  193 206 153 153
   query54  203 154 143 143
   query55  68  58  55  55
   query56  191 174 149 149
   query57  686 774 663 663
   query58  196 161 163 161
   query59  1208121810781078
   query60  231 176 174 174
   query61  117 112 106 106
   query62  351 208 175 175
   query63  174 135 141 135
   query64  2698685 563 563
   query65  1630160916211609
   query66  1937253 202 202
   query67  9847967797429677
   query68  30041136714 714
   query69  353 236 194 194
   query70  652 631 588 588
   query71  248 173 167 167
   query72  2243164715191519
   query73  640 590 338 338
   query74  2010122211331133
   query75  11861096945 945
   query76  2381701 484 484
   query77  252 253 213 213
   query78  4110351832123212
   query79  2735865 604 604
   query80  1587322 282 282
   query81  512 161 131 131
   query82  611 134 94  94
   query83  281 212 195 195
   query84  297 107 84  84
   query85  819 382 337 337
   query86  466 183 170 170
   query87  1015992 914 914
   query88  3002209421542094
   query89  280 195 175 175
   query90  2037130 126 126
   query91  130 113 96  96
   query92  81  68  67  67
   query93  20991120674 674
   query94  628 226 208 208
   query95  517 335 227 227
   query96  762 552 268 268
   query97  1035106510001000
   query98  187 134 132 132
   query99  419 340 310 310
   Total cold run time: 179436 ms
   Total hot run time: 81562 ms
   ```
   
   


-- 
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 

Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-14 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5660709862

   # BE Regression && UT Coverage Report
   Increment line coverage `85.42% (41/48)` :tada:
   
   [Increment coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_760558d54a2523881990d222a4f819a0cc2a01d2_merge/increment_report/index.html)
   [Complete coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_760558d54a2523881990d222a4f819a0cc2a01d2_merge/report/index.html)
   | Category  | Coverage   |
   |---||
   | Function Coverage | 76.33% (34640/45381) |
   | Line Coverage | 61.31% (389617/635526) |
   | Region Coverage   | 57.62% (327398/568223) |
   | Branch Coverage   | 58.39% (149216/255540) |


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-14 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5668282087

   
   
   TPC-H: Total hot run time: 16764 ms
   
   ```
   machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
   scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
   Tpch sf100 test result on commit 6726f81475eab9f93f01602d7613d03d960dd862, 
data reload: false
   
   -- Round 1 --
   
   q1   17602   302130413021
   q2   2066244 220 220
   q3   10271   910 513 513
   q4   4673249 206 206
   q5   7674562 373 373
   q6   135 108 93  93
   q7   532 525 377 377
   q8   9230881 870 870
   q9   3415238823652365
   q10  6563865 721 721
   q11  386 195 180 180
   q12  619 265 198 198
   q13  18111   150811581158
   q14  159 147 138 138
   q15  q16 430 399 367 367
   q17  1339854 793 793
   q18  3071224822542248
   q19  1294925 802 802
   q20  374 291 206 206
   q21  5588168117871681
   q22  333 270 234 234
   Total cold run time: 93865 ms
   Total hot run time: 16764 ms
   
   - Round 2, with runtime_filter_mode=off -
   
   q1   3452335433113311
   q2   493 397 371 371
   q3   2223233921822182
   q4   11901164877 877
   q5   2178210321072103
   q6   161 125 86  86
   q7   1016902 851 851
   q8   1585141213951395
   q9   3110309930713071
   q10  1833179216151615
   q11  351 267 255 255
   q12  447 434 338 338
   q13  1466152011591159
   q14  168 164 153 153
   q15  q16 399 399 356 356
   q17  3623332732273227
   q18  4759437047214370
   q19  850 806 889 806
   q20  1030966 835 835
   q21  3829309633393096
   q22  394 339 316 316
   Total cold run time: 34557 ms
   Total hot run time: 30773 ms
   ```
   
   


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-14 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5667905241

   # BE Regression && UT Coverage Report
   Increment line coverage `85.42% (41/48)` :tada:
   
   [Increment coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_6726f81475eab9f93f01602d7613d03d960dd862_merge/increment_report/index.html)
   [Complete coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_6726f81475eab9f93f01602d7613d03d960dd862_merge/report/index.html)
   | Category  | Coverage   |
   |---||
   | Function Coverage | 76.16% (34269/44999) |
   | Line Coverage | 61.09% (384949/630161) |
   | Region Coverage   | 57.60% (324656/563635) |
   | Branch Coverage   | 58.27% (147538/253212) |


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-14 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5664223399

   # BE Regression && UT Coverage Report
   Increment line coverage `85.42% (41/48)` :tada:
   
   [Increment coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_045411a6ae34ad49289d7dbf25f8d355b27c7b1f_merge/increment_report/index.html)
   [Complete coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_045411a6ae34ad49289d7dbf25f8d355b27c7b1f_merge/report/index.html)
   | Category  | Coverage   |
   |---||
   | Function Coverage | 76.07% (34203/44963) |
   | Line Coverage | 60.96% (383734/629513) |
   | Region Coverage   | 57.39% (323157/563053) |
   | Branch Coverage   | 58.12% (147011/252934) |


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-14 Thread via GitHub


nooneuse commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5665234235

   run buildall


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-14 Thread via GitHub


nooneuse commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5664980750

   run buildall


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-14 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5662659092

   # FE UT Coverage Report
   Increment line coverage `  80.00% (20/25)` :tada:
   [Increment coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_045411a6ae34ad49289d7dbf25f8d355b27c7b1f/fe_increment_report/index.html)
   [Complete coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_045411a6ae34ad49289d7dbf25f8d355b27c7b1f/fe_report/index.html)
   


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-14 Thread via GitHub


BePPPower commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5661200178

   run buildall


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-14 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5660892127

   # FE Regression Coverage Report
   Increment line coverage `  25.30% (21/83)` :tada:
   [Increment coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_760558d54a2523881990d222a4f819a0cc2a01d2_merge_fe/increment_report/index.html)
   [Complete coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_760558d54a2523881990d222a4f819a0cc2a01d2_merge_fe/report/index.html)
   


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-14 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5660362359

   
   
   ClickBench: Total hot run time: 14.81 s
   
   ```
   machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
   scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
   ClickBench test result on commit 760558d54a2523881990d222a4f819a0cc2a01d2, 
data reload: false
   
   query1   0.010.000.00
   query2   0.080.040.04
   query3   0.240.080.11
   query4   1.600.090.09
   query5   0.180.160.17
   query6   1.280.690.69
   query7   0.040.010.01
   query8   0.050.030.03
   query9   0.290.220.21
   query10  0.350.340.33
   query11  0.160.120.12
   query12  0.140.120.12
   query13  0.300.300.32
   query14  0.470.470.46
   query15  0.350.330.35
   query16  0.230.240.22
   query17  0.730.690.70
   query18  0.180.160.16
   query19  1.121.191.16
   query20  0.020.000.00
   query21  15.45   0.150.12
   query22  5.100.040.04
   query23  16.18   0.260.10
   query24  2.990.310.24
   query25  0.110.040.05
   query26  0.790.170.13
   query27  0.020.030.04
   query28  3.620.540.28
   query29  12.45   3.222.59
   query30  0.250.120.12
   query31  2.810.370.17
   query32  3.540.320.24
   query33  1.401.461.42
   query34  15.43   2.201.85
   query35  1.771.741.75
   query36  0.450.300.28
   query37  0.060.040.04
   query38  0.050.040.03
   query39  0.030.020.02
   query40  0.120.090.07
   query41  0.080.020.02
   query42  0.040.020.02
   query43  0.030.030.02
   Total cold run time: 90.59 s
   Total hot run time: 14.81 s
   ```
   
   


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-14 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5660310897

   
   
   TPC-DS: Total hot run time: 83094 ms
   
   ```
   machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
   scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
   TPC-DS sf100 test result on commit 760558d54a2523881990d222a4f819a0cc2a01d2, 
data reload: false
   
   query5   4249418 354 354
   query6   379 132 118 118
   query7   4946424 234 234
   query8   299 123 123 123
   query9   8688287428612861
   query10  392 221 186 186
   query11  53781054927 927
   query12  113 69  70  69
   query13  1229435 326 326
   query14  6128225221522152
   query14_12029202520092009
   query15  179 123 113 113
   query16  917 385 365 365
   query17  802 466 362 362
   query18  2347322 236 236
   query19  165 137 108 108
   query20  73  75  71  71
   query21  201 102 87  87
   query22  5547553055365530
   query23  7005633662346234
   query23_16066610762966107
   query24  72851053771 771
   query24_1743 773 781 773
   query25  430 293 256 256
   query26  1238244 130 130
   query27  2775417 254 254
   query28  4724149915061499
   query29  937 443 360 360
   query30  257 157 130 130
   query31  830 415 339 339
   query32  136 81  78  78
   query33  477 215 182 182
   query34  1005868 475 475
   query35  423 414 345 345
   query36  574 562 513 513
   query37  126 80  73  73
   query38  1029862 835 835
   query39  515 502 475 475
   query39_1465 456 472 456
   query40  199 94  84  84
   query41  59  57  55  55
   query42  77  74  72  72
   query43  241 244 218 218
   query44  1022534 540 534
   query45  105 104 106 104
   query46  771 874 504 504
   query47  771 775 716 716
   query48  312 314 220 220
   query49  532 232 188 188
   query50  704 260 188 188
   query51  8193800980048004
   query52  68  68  65  65
   query53  191 194 192 192
   query54  259 154 151 151
   query55  76  64  54  54
   query56  201 161 154 154
   query57  725 675 670 670
   query58  196 172 167 167
   query59  1279126311301130
   query60  241 181 165 165
   query61  131 111 112 111
   query62  360 201 178 178
   query63  184 134 143 134
   query64  2795739 639 639
   query65  1663173116401640
   query66  1773253 207 207
   query67  10171   993299269926
   query68  28411236734 734
   query69  333 233 191 191
   query70  687 618 634 618
   query71  240 181 162 162
   query72  2286164515131513
   query73  650 575 351 351
   query74  1824126111731173
   query75  11761119968 968
   query76  2288706 515 515
   query77  262 253 213 213
   query78  3930376432623262
   query79  2118806 590 590
   query80  1376309 273 273
   query81  492 158 136 136
   query82  607 122 94  94
   query83  284 202 187 187
   query84  294 117 87  87
   query85  929 342 280 280
   query86  382 177 176 176
   query87  10251004922 922
   query88  2784212120892089
   query89  277 190 175 175
   query90  1907128 129 128
   query91  129 116 104 104
   query92  85  67  64  64
   query93  14331114717 717
   query94  628 251 232 232
   query95  511 321 234 234
   query96  852 606 264 264
   query97  1119107210421042
   query98  141 138 131 131
   query99  416 357 313 313
   Total cold run time: 178106 ms
   Total hot run time: 83094 ms
   ```
   
   


-- 
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 

Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-14 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5660249399

   
   
   TPC-H: Total hot run time: 16890 ms
   
   ```
   machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
   scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
   Tpch sf100 test result on commit 760558d54a2523881990d222a4f819a0cc2a01d2, 
data reload: false
   
   -- Round 1 --
   
   q1   17552   302630393026
   q2   2079268 227 227
   q3   10240   835 541 541
   q4   4665249 210 210
   q5   7670557 401 401
   q6   136 119 94  94
   q7   517 490 386 386
   q8   9242868 902 868
   q9   3446239923952395
   q10  6511860 710 710
   q11  390 198 183 183
   q12  616 260 200 200
   q13  18113   155111561156
   q14  155 151 144 144
   q15  q16 443 400 372 372
   q17  1334902 772 772
   q18  3133233322922292
   q19  1272842 695 695
   q20  355 275 198 198
   q21  5656179018641790
   q22  321 265 230 230
   Total cold run time: 93846 ms
   Total hot run time: 16890 ms
   
   - Round 2, with runtime_filter_mode=off -
   
   q1   3366329433163294
   q2   507 409 382 382
   q3   2250233522012201
   q4   12121207895 895
   q5   2229216321342134
   q6   167 119 87  87
   q7   1044923 891 891
   q8   1592139614071396
   q9   3201318931843184
   q10  1895184316681668
   q11  364 271 249 249
   q12  451 438 348 348
   q13  1488152711481148
   q14  166 187 164 164
   q15  q16 400 401 367 367
   q17  3685332033093309
   q18  4937455648434556
   q19  998 868 861 861
   q20  10401007849 849
   q21  3846320731933193
   q22  403 357 336 336
   Total cold run time: 35241 ms
   Total hot run time: 31512 ms
   ```
   
   


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-13 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5660056786

   # BE UT Coverage Report
   Increment line coverage `81.25% (39/48)` :tada:
   
   [Increment coverage 
report](http://coverage.selectdb-in.cc/coverage/760558d54a2523881990d222a4f819a0cc2a01d2_760558d54a2523881990d222a4f819a0cc2a01d2/increment_report/index.html)
   [Complete coverage 
report](http://coverage.selectdb-in.cc/coverage/760558d54a2523881990d222a4f819a0cc2a01d2_760558d54a2523881990d222a4f819a0cc2a01d2/report/index.html)
   | Category  | Coverage   |
   |---||
   | Function Coverage | 63.30% (29654/46848) |
   | Line Coverage | 48.23% (310054/642807) |
   | Region Coverage   | 43.74% (249520/570428) |
   | Branch Coverage   | 45.36% (116252/256280) |


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-13 Thread via GitHub


nooneuse commented on code in PR #67469:
URL: https://github.com/apache/doris/pull/67469#discussion_r4002313218


##
be/src/exprs/aggregate/aggregate_function_datasketches_hll_union_agg.h:
##
@@ -91,12 +84,32 @@ struct AggregateFunctionHllSketchData {
 "Internal error happened when update HLL sketch: 
unknown exception.");
 }
 }
-void reset() {
-if (hll_union_data.has_value()) {
-hll_union_data->reset();
+void merge(const Sketch& sketch_data) {
+if (sketch_data.is_empty()) {
+return;
 }
-hll_union_data.reset();
+const auto lg_max_k = std::max(sketch_data.get_lg_config_k(), 
MIN_UNION_LOG_K);
+if (hll_union_data.has_value() && lg_max_k < 
hll_union_data->get_lg_config_k()) {

Review Comment:
   The redundant destination copy is real. For dense input, DataSketches 
already handles downsampling, so the manual rebuild adds unnecessary work 
without changing the result.
   However, the current DataSketches API does not expose the current 
representation mode. I would prefer not to make Doris depend on 
serialized-header inspection or serialization-size inference to distinguish 
sparse and dense sketches.
   I will propose a public mode-query API upstream, such as get_current_mode() 
or a narrower is_sparse() accessor. After integrating that API, I will restrict 
the manual rebuild in Doris to sparse inputs and verify the allocation and 
performance improvement. This keeps representation knowledge in DataSketches 
and avoids a Doris-specific workaround.



-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-13 Thread via GitHub


nooneuse commented on code in PR #67469:
URL: https://github.com/apache/doris/pull/67469#discussion_r4002108026


##
be/src/exprs/aggregate/aggregate_function_datasketches_hll_union_agg.h:
##
@@ -91,12 +84,32 @@ struct AggregateFunctionHllSketchData {
 "Internal error happened when update HLL sketch: 
unknown exception.");
 }
 }
-void reset() {
-if (hll_union_data.has_value()) {
-hll_union_data->reset();
+void merge(const Sketch& sketch_data) {
+if (sketch_data.is_empty()) {
+return;
 }
-hll_union_data.reset();
+const auto lg_max_k = std::max(sketch_data.get_lg_config_k(), 
MIN_UNION_LOG_K);

Review Comment:
   Thanks, this issue is valid.
   
   The missing validation is in DataSketches: its normal constructor rejects 
lgK outside [4, 21], but deserialization can construct a sparse sketch with 
lgK=22.
   I also traced the exception handling. So yes, Normal pipeline execution 
catches the resulting std::invalid_argument and fails the query with 
INTERNAL_ERROR.
   I will address the validation gap upstream in DataSketches, then update the 
pinned dependency and add Doris coverage for the expected CORRUPTION error. 
Once DataSketches rejects the invalid header inside deserialize(), Doris's 
existing deserialization catch provides the required conversion. This fixes the 
library invariant at its source rather than duplicating sketch-format 
validation in Doris.



-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-13 Thread via GitHub


nooneuse commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5658782668

   run buildall


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-13 Thread via GitHub


nooneuse commented on code in PR #67469:
URL: https://github.com/apache/doris/pull/67469#discussion_r4002108026


##
be/src/exprs/aggregate/aggregate_function_datasketches_hll_union_agg.h:
##
@@ -91,12 +84,32 @@ struct AggregateFunctionHllSketchData {
 "Internal error happened when update HLL sketch: 
unknown exception.");
 }
 }
-void reset() {
-if (hll_union_data.has_value()) {
-hll_union_data->reset();
+void merge(const Sketch& sketch_data) {
+if (sketch_data.is_empty()) {
+return;
 }
-hll_union_data.reset();
+const auto lg_max_k = std::max(sketch_data.get_lg_config_k(), 
MIN_UNION_LOG_K);

Review Comment:
   Thanks, this issue is valid.
   
   I reproduced it with a non-empty LIST image whose serialized lgK byte was 
changed to 22. DataSketches successfully deserializes it with lgK=22, and the 
subsequent HllUnion construction throws std::invalid_argument("Invalid value of 
k: 22").
   
   The exception currently escapes the local CORRUPTION conversion boundary, 
but it is caught by the pipeline TaskScheduler's std::exception boundary and 
converted to an InternalError.
   
   The root cause belongs to DataSketches: its deserializer returns an object 
containing an lgK value that cannot be produced through its public 
constructors. Adding a Doris-only validation would duplicate DataSketches' 
invariant and leave its byte-array/stream deserializers and other consumers 
inconsistent.
   
   I will push an Datasketches fix to validate lgK for LIST and SET images in 
both deserialization entry points, together with malformed-header tests, and 
then update the dependency in Doris. I think we don't need to add a 
Doris-specific workaround here.



-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-13 Thread via GitHub


github-actions[bot] commented on code in PR #67469:
URL: https://github.com/apache/doris/pull/67469#discussion_r3999491701


##
be/src/exprs/aggregate/aggregate_function_datasketches_hll_union_agg.h:
##
@@ -91,12 +84,32 @@ struct AggregateFunctionHllSketchData {
 "Internal error happened when update HLL sketch: 
unknown exception.");
 }
 }
-void reset() {
-if (hll_union_data.has_value()) {
-hll_union_data->reset();
+void merge(const Sketch& sketch_data) {
+if (sketch_data.is_empty()) {
+return;
 }
-hll_union_data.reset();
+const auto lg_max_k = std::max(sketch_data.get_lg_config_k(), 
MIN_UNION_LOG_K);
+if (hll_union_data.has_value() && lg_max_k < 
hll_union_data->get_lg_config_k()) {

Review Comment:
   [P2] Limit the manual lowering rebuild to sparse inputs
   
   This condition also fires for a lower-lgK HLL-mode state. For a populated 
lgK-21 union followed by a dense lgK-7 state, `get_result(HLL_8)` first 
allocates/copies the full high-precision array (roughly 2 MiB, plus a possible 
lazy estimator rebuild), and `update(current)` then scans it again to 
downsample. Upstream `HllUnion::union_impl` already lowers a dense destination 
when the incoming HLL has smaller lgK, so this extra copy is only needed for 
LIST/SET inputs, whose coupons otherwise replay without lowering. Please gate 
the manual rebuild on sparse input and add a dense high-cap/low-cap merge case; 
the current seven-coupon mixed-cap test covers only the sparse branch.



##
be/src/exprs/aggregate/aggregate_function_datasketches_hll_union_agg.h:
##
@@ -91,12 +84,32 @@ struct AggregateFunctionHllSketchData {
 "Internal error happened when update HLL sketch: 
unknown exception.");
 }
 }
-void reset() {
-if (hll_union_data.has_value()) {
-hll_union_data->reset();
+void merge(const Sketch& sketch_data) {
+if (sketch_data.is_empty()) {
+return;
 }
-hll_union_data.reset();
+const auto lg_max_k = std::max(sketch_data.get_lg_config_k(), 
MIN_UNION_LOG_K);

Review Comment:
   [P2] Keep invalid serialized lgK inside the corruption boundary
   
   At upstream `46025e9`, CouponList deserialization copies `LG_K_BYTE` without 
range-checking it (and CouponHashSet checks only the lower bound). A well-sized 
non-empty sparse state with lgK 22 therefore gets through 
`Sketch::deserialize`; on the fresh state used by `_union`/partial 
deserialization, this value reaches `merge(sketch, 22)` and the union 
constructor throws `std::invalid_argument` after `read()`'s CORRUPTION catch 
has ended. The previous upper clamp avoided that escape. Please validate the 
deserialized lgK against `MAX_LOG_K` before using it here, or extend the 
conversion boundary, and add a malformed sparse-header test that verifies 
CORRUPTION.



-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-13 Thread via GitHub


yiguolei commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5652839287

   /review


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-11 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5636640737

   
   
   ClickBench: Total hot run time: 14.76 s
   
   ```
   machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
   scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
   ClickBench test result on commit 2057504a15d8f875d0cc2d7426a170b9821ef686, 
data reload: false
   
   query1   0.000.010.00
   query2   0.070.030.04
   query3   0.250.110.11
   query4   1.600.100.10
   query5   0.170.160.16
   query6   1.260.690.71
   query7   0.050.010.00
   query8   0.040.030.02
   query9   0.300.220.22
   query10  0.350.340.33
   query11  0.160.120.12
   query12  0.150.120.12
   query13  0.320.320.32
   query14  0.450.460.44
   query15  0.370.360.35
   query16  0.220.240.22
   query17  0.680.680.67
   query18  0.180.160.14
   query19  1.161.171.17
   query20  0.010.000.01
   query21  15.45   0.170.12
   query22  5.030.050.04
   query23  16.22   0.240.11
   query24  3.000.310.24
   query25  0.130.040.03
   query26  0.820.170.13
   query27  0.020.030.03
   query28  3.640.580.28
   query29  12.43   3.252.59
   query30  0.260.120.12
   query31  2.750.380.17
   query32  3.530.310.22
   query33  1.341.401.37
   query34  15.41   2.251.83
   query35  1.761.731.74
   query36  0.470.300.30
   query37  0.070.030.03
   query38  0.050.030.03
   query39  0.020.020.02
   query40  0.120.080.08
   query41  0.070.030.02
   query42  0.030.030.03
   query43  0.030.030.03
   Total cold run time: 90.44 s
   Total hot run time: 14.76 s
   ```
   
   


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-11 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5636585227

   
   
   TPC-DS: Total hot run time: 81727 ms
   
   ```
   machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
   scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
   TPC-DS sf100 test result on commit 2057504a15d8f875d0cc2d7426a170b9821ef686, 
data reload: false
   
   query5   4250411 337 337
   query6   380 129 129 129
   query7   4953426 234 234
   query8   291 128 116 116
   query9   8680287028732870
   query10  403 219 180 180
   query11  53841023931 931
   query12  116 72  68  68
   query13  1179438 304 304
   query14  6129224820782078
   query14_11955193519511935
   query15  178 117 114 114
   query16  931 390 364 364
   query17  810 455 364 364
   query18  2326324 236 236
   query19  182 147 107 107
   query20  71  70  69  69
   query21  211 103 84  84
   query22  5296538253165316
   query23  6800609160676067
   query23_16085614760606060
   query24  72261102774 774
   query24_1779 772 782 772
   query25  421 299 260 260
   query26  1231242 129 129
   query27  2776421 262 262
   query28  4667149415041494
   query29  941 431 347 347
   query30  252 160 131 131
   query31  826 410 334 334
   query32  131 73  74  73
   query33  474 223 184 184
   query34  987 843 493 493
   query35  408 402 337 337
   query36  568 553 486 486
   query37  119 82  71  71
   query38  1014847 803 803
   query39  508 486 482 482
   query39_1440 457 453 453
   query40  211 91  88  88
   query41  58  57  55  55
   query42  74  77  74  74
   query43  239 247 215 215
   query44  1000543 538 538
   query45  121 104 104 104
   query46  770 866 538 538
   query47  771 760 730 730
   query48  289 290 250 250
   query49  519 240 187 187
   query50  732 260 191 191
   query51  8110786080777860
   query52  70  66  58  58
   query53  197 212 155 155
   query54  221 157 151 151
   query55  79  56  53  53
   query56  181 176 158 158
   query57  816 676 648 648
   query58  190 182 160 160
   query59  1214120510971097
   query60  252 174 185 174
   query61  122 107 105 105
   query62  338 218 168 168
   query63  170 141 142 141
   query64  2839686 579 579
   query65  1623157515821575
   query66  1814260 221 221
   query67  9914975797389738
   query68  29921265755 755
   query69  354 218 195 195
   query70  693 622 607 607
   query71  252 199 160 160
   query72  2307167715071507
   query73  642 573 333 333
   query74  1998121711451145
   query75  11761089951 951
   query76  2387710 525 525
   query77  250 257 212 212
   query78  3904363131693169
   query79  2908821 591 591
   query80  1589324 279 279
   query81  529 153 135 135
   query82  757 126 94  94
   query83  285 203 190 190
   query84  307 106 88  88
   query85  821 334 295 295
   query86  479 181 174 174
   query87  1020983 881 881
   query88  3477210720802080
   query89  287 194 171 171
   query90  2225131 123 123
   query91  127 116 93  93
   query92  95  69  69  69
   query93  34361057715 715
   query94  632 236 202 202
   query95  517 329 239 239
   query96  839 545 266 266
   query97  1039105210201020
   query98  174 134 133 133
   query99  415 338 306 306
   Total cold run time: 181627 ms
   Total hot run time: 81727 ms
   ```
   
   


-- 
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 

Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-11 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5636502701

   
   
   TPC-H: Total hot run time: 16811 ms
   
   ```
   machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
   scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
   Tpch sf100 test result on commit 2057504a15d8f875d0cc2d7426a170b9821ef686, 
data reload: false
   
   -- Round 1 --
   
   q1   17566   307830803078
   q2   2083257 241 241
   q3   10245   871 507 507
   q4   4670244 197 197
   q5   7688590 389 389
   q6   134 111 91  91
   q7   525 518 375 375
   q8   9239936 930 930
   q9   3464237923972379
   q10  6527847 708 708
   q11  392 202 175 175
   q12  617 266 201 201
   q13  18112   152511431143
   q14  161 150 143 143
   q15  q16 443 389 364 364
   q17  1372838 786 786
   q18  3096224522392239
   q19  1264861 801 801
   q20  377 288 198 198
   q21  5560162918561629
   q22  331 274 237 237
   Total cold run time: 93866 ms
   Total hot run time: 16811 ms
   
   - Round 2, with runtime_filter_mode=off -
   
   q1   3458339033793379
   q2   516 396 377 377
   q3   2196233022182218
   q4   11821149880 880
   q5   2161211821242118
   q6   166 117 86  86
   q7   1011936 892 892
   q8   1597139814181398
   q9   3121309330553055
   q10  1862181316181618
   q11  350 265 249 249
   q12  451 431 351 351
   q13  1503152011311131
   q14  178 168 160 160
   q15  q16 401 396 368 368
   q17  3633335231963196
   q18  4804437847534378
   q19  838 839 900 839
   q20  1002997 837 837
   q21  3872320231733173
   q22  395 354 315 315
   Total cold run time: 34697 ms
   Total hot run time: 31018 ms
   ```
   
   


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-11 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5631779193

   
   
   ClickBench: Total hot run time: 14.64 s
   
   ```
   machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
   scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
   ClickBench test result on commit e342446e2521517e2fcf53d780bf77f604d8cedb, 
data reload: false
   
   query1   0.000.010.00
   query2   0.070.040.04
   query3   0.260.110.10
   query4   1.600.090.08
   query5   0.170.150.16
   query6   1.310.700.69
   query7   0.040.010.00
   query8   0.050.030.03
   query9   0.290.220.22
   query10  0.350.350.34
   query11  0.160.110.12
   query12  0.150.120.12
   query13  0.300.310.31
   query14  0.450.450.44
   query15  0.360.350.35
   query16  0.210.230.24
   query17  0.690.750.67
   query18  0.190.170.16
   query19  1.101.081.19
   query20  0.020.010.01
   query21  15.45   0.180.12
   query22  5.030.040.04
   query23  16.16   0.270.11
   query24  2.970.320.24
   query25  0.110.040.04
   query26  0.800.170.11
   query27  0.030.030.03
   query28  3.700.540.27
   query29  12.44   3.202.61
   query30  0.260.130.12
   query31  2.760.380.18
   query32  3.510.340.24
   query33  1.371.481.40
   query34  15.39   2.251.77
   query35  1.821.731.73
   query36  0.460.290.28
   query37  0.070.040.04
   query38  0.040.030.02
   query39  0.040.020.03
   query40  0.120.080.08
   query41  0.070.020.02
   query42  0.030.020.02
   query43  0.030.020.03
   Total cold run time: 90.43 s
   Total hot run time: 14.64 s
   ```
   
   


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-11 Thread via GitHub


nooneuse commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5632299672

   run buildall


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-11 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5631732411

   
   
   TPC-DS: Total hot run time: 81889 ms
   
   ```
   machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
   scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
   TPC-DS sf100 test result on commit e342446e2521517e2fcf53d780bf77f604d8cedb, 
data reload: false
   
   query5   4245424 331 331
   query6   397 136 127 127
   query7   4927430 226 226
   query8   288 136 119 119
   query9   8708286028872860
   query10  394 221 185 185
   query11  53791034915 915
   query12  120 69  68  68
   query13  1203444 318 318
   query14  6105224820862086
   query14_11971197119611961
   query15  170 121 110 110
   query16  929 363 353 353
   query17  811 452 361 361
   query18  2330314 235 235
   query19  168 140 107 107
   query20  70  74  70  70
   query21  210 100 90  90
   query22  5426538653335333
   query23  6855633961226122
   query23_16121620859905990
   query24  73171094737 737
   query24_1761 794 792 792
   query25  430 305 263 263
   query26  1219236 133 133
   query27  2787409 258 258
   query28  4681149815031498
   query29  933 449 344 344
   query30  255 155 131 131
   query31  849 402 326 326
   query32  139 77  76  76
   query33  455 232 175 175
   query34  989 823 474 474
   query35  411 399 343 343
   query36  582 565 522 522
   query37  116 79  71  71
   query38  1009847 847 847
   query39  497 472 458 458
   query39_1456 471 490 471
   query40  206 95  83  83
   query41  63  57  57  57
   query42  75  75  76  75
   query43  243 252 210 210
   query44  1003545 540 540
   query45  112 112 100 100
   query46  800 877 549 549
   query47  767 745 719 719
   query48  336 314 232 232
   query49  554 275 191 191
   query50  789 269 194 194
   query51  8062804579667966
   query52  73  67  71  67
   query53  188 205 145 145
   query54  209 158 149 149
   query55  72  58  55  55
   query56  199 233 193 193
   query57  739 661 636 636
   query58  191 162 177 162
   query59  1228124710981098
   query60  247 180 174 174
   query61  128 102 111 102
   query62  368 197 185 185
   query63  167 142 140 140
   query64  2735733 609 609
   query65  1588155615741556
   query66  1857276 198 198
   query67  9919972296069606
   query68  30041161711 711
   query69  347 218 203 203
   query70  662 597 613 597
   query71  250 174 165 165
   query72  2280165014821482
   query73  621 571 342 342
   query74  2011122011541154
   query75  11781103969 969
   query76  2352712 508 508
   query77  252 270 212 212
   query78  3947368032813281
   query79  2578888 603 603
   query80  1590351 284 284
   query81  516 157 131 131
   query82  763 120 91  91
   query83  272 202 187 187
   query84  300 111 91  91
   query85  836 344 286 286
   query86  470 188 180 180
   query87  1015972 893 893
   query88  3021211521002100
   query89  298 198 175 175
   query90  2060132 132 132
   query91  130 120 96  96
   query92  93  69  72  69
   query93  21771081730 730
   query94  642 250 225 225
   query95  548 340 227 227
   query96  827 590 284 284
   query97  1056105210261026
   query98  190 135 132 132
   query99  424 355 311 311
   Total cold run time: 179761 ms
   Total hot run time: 81889 ms
   ```
   
   


-- 
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 

Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-11 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5631659529

   
   
   TPC-H: Total hot run time: 16843 ms
   
   ```
   machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
   scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
   Tpch sf100 test result on commit e342446e2521517e2fcf53d780bf77f604d8cedb, 
data reload: false
   
   -- Round 1 --
   
   q1   17678   306830763068
   q2   2085261 234 234
   q3   10248   886 523 523
   q4   4678253 201 201
   q5   7672573 384 384
   q6   138 115 94  94
   q7   517 493 402 402
   q8   9239929 958 929
   q9   3449241423922392
   q10  6524852 725 725
   q11  393 201 181 181
   q12  649 252 207 207
   q13  18129   151011331133
   q14  160 144 136 136
   q15  q16 438 401 364 364
   q17  1317919 772 772
   q18  3078223622322232
   q19  1280819 764 764
   q20  398 290 206 206
   q21  5636166818061668
   q22  326 268 228 228
   Total cold run time: 94032 ms
   Total hot run time: 16843 ms
   
   - Round 2, with runtime_filter_mode=off -
   
   q1   3441339033703370
   q2   505 396 369 369
   q3   2257226521982198
   q4   11791163883 883
   q5   2208210420902090
   q6   170 116 88  88
   q7   1058899 862 862
   q8   1586139413981394
   q9   3105307630563056
   q10  1891181116191619
   q11  356 271 251 251
   q12  452 422 343 343
   q13  1478154111361136
   q14  176 177 157 157
   q15  q16 396 390 358 358
   q17  3604330131873187
   q18  4797440646824406
   q19  901 847 917 847
   q20  991 957 844 844
   q21  3834312733073127
   q22  408 343 325 325
   Total cold run time: 34793 ms
   Total hot run time: 30910 ms
   ```
   
   


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-10 Thread via GitHub


nooneuse commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5630101319

   run be_ut


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-10 Thread via GitHub


nooneuse commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5629095767

   run buildall


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-10 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5624775954

   
   
   ClickBench: Total hot run time: 14.67 s
   
   ```
   machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
   scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
   ClickBench test result on commit 2848fb1133543bf51bd2089f40c5bb1ead33e77c, 
data reload: false
   
   query1   0.000.000.00
   query2   0.070.030.04
   query3   0.250.110.11
   query4   1.600.100.10
   query5   0.190.170.15
   query6   1.250.680.71
   query7   0.030.000.01
   query8   0.040.030.03
   query9   0.300.220.21
   query10  0.360.350.36
   query11  0.160.120.12
   query12  0.140.120.12
   query13  0.310.300.30
   query14  0.460.450.45
   query15  0.360.350.35
   query16  0.230.260.21
   query17  0.670.680.68
   query18  0.200.170.17
   query19  1.171.181.18
   query20  0.020.000.00
   query21  15.45   0.160.12
   query22  5.090.050.04
   query23  16.17   0.260.10
   query24  2.980.320.26
   query25  0.100.040.04
   query26  0.790.160.12
   query27  0.030.030.03
   query28  3.650.520.26
   query29  12.41   3.162.58
   query30  0.270.120.12
   query31  2.770.350.18
   query32  3.570.330.22
   query33  1.391.411.48
   query34  15.42   2.171.75
   query35  1.771.741.69
   query36  0.460.300.28
   query37  0.070.040.03
   query38  0.050.030.03
   query39  0.030.020.02
   query40  0.110.080.08
   query41  0.080.030.02
   query42  0.030.020.03
   query43  0.030.030.03
   Total cold run time: 90.53 s
   Total hot run time: 14.67 s
   ```
   
   


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-10 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5624718076

   
   
   TPC-DS: Total hot run time: 81129 ms
   
   ```
   machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
   scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
   TPC-DS sf100 test result on commit 2848fb1133543bf51bd2089f40c5bb1ead33e77c, 
data reload: false
   
   query5   4237408 327 327
   query6   385 145 123 123
   query7   4961430 226 226
   query8   309 118 111 111
   query9   8702285228742852
   query10  411 220 184 184
   query11  53901046914 914
   query12  123 73  68  68
   query13  1186454 322 322
   query14  6052218720822082
   query14_11958195219571952
   query15  173 115 110 110
   query16  915 357 352 352
   query17  808 428 359 359
   query18  2319301 214 214
   query19  155 126 102 102
   query20  73  69  65  65
   query21  196 98  83  83
   query22  5473534752645264
   query23  6779619658745874
   query23_16014601459795979
   query24  72751099758 758
   query24_1767 767 770 767
   query25  396 293 237 237
   query26  1239227 128 128
   query27  2803419 238 238
   query28  4700148714631463
   query29  906 442 341 341
   query30  255 155 125 125
   query31  813 396 326 326
   query32  130 71  67  67
   query33  451 227 173 173
   query34  1030804 472 472
   query35  408 408 347 347
   query36  564 565 529 529
   query37  121 81  76  76
   query38  1022836 811 811
   query39  482 470 468 468
   query39_1474 469 503 469
   query40  207 96  77  77
   query41  59  58  57  57
   query42  76  73  72  72
   query43  247 242 215 215
   query44  988 529 546 529
   query45  114 106 99  99
   query46  809 843 513 513
   query47  756 754 697 697
   query48  321 315 229 229
   query49  545 241 182 182
   query50  719 256 196 196
   query51  7940799880457998
   query52  69  66  58  58
   query53  196 200 151 151
   query54  194 176 156 156
   query55  73  55  53  53
   query56  189 172 169 169
   query57  676 693 647 647
   query58  208 170 252 170
   query59  1211122810891089
   query60  231 185 184 184
   query61  129 121 121 121
   query62  351 215 183 183
   query63  169 145 152 145
   query64  2828667 615 615
   query65  1605163616001600
   query66  1871274 208 208
   query67  9793951895379518
   query68  29911233720 720
   query69  353 225 187 187
   query70  677 620 592 592
   query71  240 180 167 167
   query72  2267166714971497
   query73  638 594 347 347
   query74  2004122311311131
   query75  11561089953 953
   query76  2357720 560 560
   query77  260 252 206 206
   query78  3950374032003200
   query79  2448793 603 603
   query80  1550308 266 266
   query81  487 156 132 132
   query82  919 129 93  93
   query83  278 213 191 191
   query84  297 111 87  87
   query85  892 349 275 275
   query86  391 177 171 171
   query87  1001956 897 897
   query88  2759210520982098
   query89  280 196 176 176
   query90  1906133 127 127
   query91  129 121 97  97
   query92  78  69  72  69
   query93  18281089699 699
   query94  630 249 221 221
   query95  538 275 234 234
   query96  785 584 256 256
   query97  1058110310021002
   query98  166 146 129 129
   query99  418 340 308 308
   Total cold run time: 178194 ms
   Total hot run time: 81129 ms
   ```
   
   


-- 
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 

Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-10 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5624640586

   
   
   TPC-H: Total hot run time: 16839 ms
   
   ```
   machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
   scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
   Tpch sf100 test result on commit 2848fb1133543bf51bd2089f40c5bb1ead33e77c, 
data reload: false
   
   -- Round 1 --
   
   q1   17583   304731103047
   q2   2082263 230 230
   q3   10249   938 521 521
   q4   4666251 203 203
   q5   7673560 388 388
   q6   137 112 94  94
   q7   529 501 384 384
   q8   9230875 951 875
   q9   3486238223652365
   q10  6513837 713 713
   q11  395 201 181 181
   q12  635 255 203 203
   q13  18096   150911701170
   q14  158 146 137 137
   q15  q16 440 398 367 367
   q17  1376845 753 753
   q18  3067224622082208
   q19  1284919 816 816
   q20  382 286 198 198
   q21  5648175518731755
   q22  338 277 231 231
   Total cold run time: 93967 ms
   Total hot run time: 16839 ms
   
   - Round 2, with runtime_filter_mode=off -
   
   q1   3463340634073406
   q2   495 391 362 362
   q3   2193238821632163
   q4   11781176894 894
   q5   2196213220982098
   q6   169 121 86  86
   q7   1049949 859 859
   q8   1584141213971397
   q9   3112307330553055
   q10  1840179216221622
   q11  357 266 247 247
   q12  452 435 339 339
   q13  1500150011521152
   q14  166 183 153 153
   q15  q16 389 395 355 355
   q17  3588327331703170
   q18  4795437447204374
   q19  854 877 894 877
   q20  998 953 828 828
   q21  3831315032213150
   q22  391 344 318 318
   Total cold run time: 34600 ms
   Total hot run time: 30905 ms
   ```
   
   


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-10 Thread via GitHub


nooneuse commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5616730687

   run buildall


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-09 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5603501604

   
   
   TPC-DS: Total hot run time: 81539 ms
   
   ```
   machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
   scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
   TPC-DS sf100 test result on commit 0993f5f8a0a23249abeb5bb0298bf8d3a21f2b5b, 
data reload: false
   
   query5   4262419 358 358
   query6   386 140 124 124
   query7   4921409 217 217
   query8   304 134 132 132
   query9   8688286028682860
   query10  407 231 184 184
   query11  53741036914 914
   query12  122 71  70  70
   query13  1189447 328 328
   query14  6076220821002100
   query14_11984197919761976
   query15  172 120 116 116
   query16  927 375 353 353
   query17  795 460 361 361
   query18  2335323 241 241
   query19  163 144 111 111
   query20  90  70  77  70
   query21  200 101 89  89
   query22  5473538153935381
   query23  6809628859035903
   query23_16158616159405940
   query24  72391047791 791
   query24_1770 766 783 766
   query25  394 275 247 247
   query26  1234239 124 124
   query27  2792416 262 262
   query28  4689147614971476
   query29  914 427 332 332
   query30  252 156 128 128
   query31  804 393 320 320
   query32  122 69  74  69
   query33  445 212 159 159
   query34  1014827 472 472
   query35  391 400 359 359
   query36  571 577 523 523
   query37  118 80  67  67
   query38  999 848 817 817
   query39  499 492 470 470
   query39_1462 480 470 470
   query40  202 89  75  75
   query41  55  53  55  53
   query42  72  71  72  71
   query43  237 244 214 214
   query44  989 537 553 537
   query45  111 107 104 104
   query46  803 816 496 496
   query47  764 754 713 713
   query48  303 325 233 233
   query49  548 241 190 190
   query50  728 260 194 194
   query51  8099794680667946
   query52  67  69  64  64
   query53  198 188 153 153
   query54  218 159 149 149
   query55  72  59  56  56
   query56  194 180 161 161
   query57  709 780 645 645
   query58  195 165 169 165
   query59  1218121210951095
   query60  222 178 178 178
   query61  133 132 112 112
   query62  340 204 178 178
   query63  168 137 139 137
   query64  2804664 606 606
   query65  1655154915831549
   query66  1903266 232 232
   query67  9939949297419492
   query68  29141202754 754
   query69  327 230 196 196
   query70  671 623 594 594
   query71  251 175 159 159
   query72  2293168015051505
   query73  662 583 325 325
   query74  1975125111571157
   query75  12081096951 951
   query76  2323700 515 515
   query77  262 278 209 209
   query78  3979364032683268
   query79  1192838 586 586
   query80  1382328 271 271
   query81  491 154 136 136
   query82  630 128 100 100
   query83  294 205 190 190
   query84  288 112 89  89
   query85  1052336 283 283
   query86  384 182 176 176
   query87  1022983 907 907
   query88  2789213121352131
   query89  276 195 175 175
   query90  1869121 131 121
   query91  132 118 106 106
   query92  80  74  74  74
   query93  13181052698 698
   query94  630 256 233 233
   query95  537 329 244 244
   query96  817 591 288 288
   query97  1051105910111011
   query98  147 138 131 131
   query99  423 359 313 313
   Total cold run time: 176571 ms
   Total hot run time: 81539 ms
   ```
   
   


-- 
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 

Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-09 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5603296103

   # FE Regression Coverage Report
   Increment line coverage `  10.55% (21/199)` :tada:
   [Increment coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_0993f5f8a0a23249abeb5bb0298bf8d3a21f2b5b_merge_fe/increment_report/index.html)
   [Complete coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_0993f5f8a0a23249abeb5bb0298bf8d3a21f2b5b_merge_fe/report/index.html)
   


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-09 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5603564236

   
   
   ClickBench: Total hot run time: 14.67 s
   
   ```
   machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
   scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
   ClickBench test result on commit 0993f5f8a0a23249abeb5bb0298bf8d3a21f2b5b, 
data reload: false
   
   query1   0.000.000.00
   query2   0.080.040.04
   query3   0.250.100.11
   query4   1.600.100.10
   query5   0.170.150.16
   query6   1.250.720.69
   query7   0.040.000.01
   query8   0.040.030.03
   query9   0.290.210.22
   query10  0.390.340.39
   query11  0.160.120.11
   query12  0.140.120.12
   query13  0.300.310.30
   query14  0.440.440.45
   query15  0.360.350.35
   query16  0.240.230.21
   query17  0.710.680.67
   query18  0.170.170.16
   query19  1.151.191.12
   query20  0.020.010.01
   query21  15.44   0.170.11
   query22  5.030.040.04
   query23  16.18   0.270.11
   query24  3.010.350.28
   query25  0.110.040.04
   query26  0.720.170.14
   query27  0.040.030.03
   query28  3.620.580.28
   query29  12.43   3.212.58
   query30  0.250.110.12
   query31  2.760.380.17
   query32  3.520.320.24
   query33  1.361.461.40
   query34  15.40   2.181.78
   query35  1.761.761.70
   query36  0.470.300.30
   query37  0.060.040.04
   query38  0.040.020.02
   query39  0.030.020.02
   query40  0.110.070.08
   query41  0.080.020.03
   query42  0.030.020.02
   query43  0.030.030.02
   Total cold run time: 90.28 s
   Total hot run time: 14.67 s
   ```
   
   


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-09 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5603405414

   
   
   TPC-H: Total hot run time: 16836 ms
   
   ```
   machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
   scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
   Tpch sf100 test result on commit 0993f5f8a0a23249abeb5bb0298bf8d3a21f2b5b, 
data reload: false
   
   -- Round 1 --
   
   q1   17569   297329862973
   q2   2102260 228 228
   q3   10236   873 518 518
   q4   4670252 203 203
   q5   7676580 380 380
   q6   140 114 94  94
   q7   521 574 392 392
   q8   9235944 938 938
   q9   3459239624672396
   q10  6546897 732 732
   q11  402 204 175 175
   q12  619 261 199 199
   q13  18117   152411791179
   q14  163 151 142 142
   q15  q16 438 402 371 371
   q17  1326911 756 756
   q18  3089225922752259
   q19  1263942 786 786
   q20  376 282 205 205
   q21  5590168018461680
   q22  332 275 230 230
   Total cold run time: 93869 ms
   Total hot run time: 16836 ms
   
   - Round 2, with runtime_filter_mode=off -
   
   q1   3325327332613261
   q2   502 397 388 388
   q3   2198231621822182
   q4   11971154898 898
   q5   2182213521062106
   q6   167 119 86  86
   q7   1004920 899 899
   q8   1581138713951387
   q9   3110307730633063
   q10  1885181516391639
   q11  361 269 250 250
   q12  450 432 336 336
   q13  1480151311441144
   q14  188 169 155 155
   q15  q16 402 395 367 367
   q17  3581331932133213
   q18  4818444347744443
   q19  840 880 893 880
   q20  1005951 836 836
   q21  3863313632283136
   q22  390 339 344 339
   Total cold run time: 34529 ms
   Total hot run time: 31008 ms
   ```
   
   


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-09 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5602578099

   # BE Regression && UT Coverage Report
   Increment line coverage `85.42% (41/48)` :tada:
   
   [Increment coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_0993f5f8a0a23249abeb5bb0298bf8d3a21f2b5b_merge/increment_report/index.html)
   [Complete coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_0993f5f8a0a23249abeb5bb0298bf8d3a21f2b5b_merge/report/index.html)
   | Category  | Coverage   |
   |---||
   | Function Coverage | 76.42% (34910/45681) |
   | Line Coverage | 61.54% (394290/640734) |
   | Region Coverage   | 57.74% (331405/573950) |
   | Branch Coverage   | 58.56% (151352/258438) |


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-09 Thread via GitHub


nooneuse commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5598649456

   run buildall


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-08 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5582528030

   # BE UT Coverage Report
   Increment line coverage `81.25% (39/48)` :tada:
   
   [Increment coverage 
report](http://coverage.selectdb-in.cc/coverage/0018ea769108e15b81e538b88ed9f6391486d45f_0018ea769108e15b81e538b88ed9f6391486d45f/increment_report/index.html)
   [Complete coverage 
report](http://coverage.selectdb-in.cc/coverage/0018ea769108e15b81e538b88ed9f6391486d45f_0018ea769108e15b81e538b88ed9f6391486d45f/report/index.html)
   | Category  | Coverage   |
   |---||
   | Function Coverage | 63.36% (29863/47132) |
   | Line Coverage | 48.41% (313601/647802) |
   | Region Coverage   | 43.92% (253001/575997) |
   | Branch Coverage   | 45.54% (117943/258988) |


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-08 Thread via GitHub


nooneuse commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5581421158

   run feut


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-08 Thread via GitHub


nooneuse commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5580969539

   run buildall


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-05 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5551868051

   # BE Regression && UT Coverage Report
   Increment line coverage `85.42% (41/48)` :tada:
   
   [Increment coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_d37a037746b370592f69bdd3593baa5e8d030ad3_merge/increment_report/index.html)
   [Complete coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_d37a037746b370592f69bdd3593baa5e8d030ad3_merge/report/index.html)
   | Category  | Coverage   |
   |---||
   | Function Coverage | 76.29% (34658/45427) |
   | Line Coverage | 61.35% (391075/637464) |
   | Region Coverage   | 57.47% (328400/571476) |
   | Branch Coverage   | 58.34% (149848/256850) |


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-05 Thread via GitHub


nooneuse commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5551810573

   run check_coverage


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-04 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5549345952

   # BE Regression && UT Coverage Report
   Increment line coverage `85.42% (41/48)` :tada:
   
   [Increment coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_d37a037746b370592f69bdd3593baa5e8d030ad3_merge/increment_report/index.html)
   [Complete coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_d37a037746b370592f69bdd3593baa5e8d030ad3_merge/report/index.html)
   | Category  | Coverage   |
   |---||
   | Function Coverage | 76.29% (34658/45427) |
   | Line Coverage | 61.35% (391075/637464) |
   | Region Coverage   | 57.47% (328400/571476) |
   | Branch Coverage   | 58.34% (149848/256850) |


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-04 Thread via GitHub


nooneuse commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5548704721

   run cloud_p0


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-04 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5543452062

   # FE Regression Coverage Report
   Increment line coverage `  48.84% (21/43)` :tada:
   [Increment coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_d37a037746b370592f69bdd3593baa5e8d030ad3_merge_fe/increment_report/index.html)
   [Complete coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_d37a037746b370592f69bdd3593baa5e8d030ad3_merge_fe/report/index.html)
   


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-04 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5543083712

   # BE Regression && UT Coverage Report
   Increment line coverage `85.42% (41/48)` :tada:
   
   [Increment coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_d37a037746b370592f69bdd3593baa5e8d030ad3_merge/increment_report/index.html)
   [Complete coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_d37a037746b370592f69bdd3593baa5e8d030ad3_merge/report/index.html)
   | Category  | Coverage   |
   |---||
   | Function Coverage | 76.29% (34658/45427) |
   | Line Coverage | 61.35% (391075/637464) |
   | Region Coverage   | 57.47% (328400/571476) |
   | Branch Coverage   | 58.34% (149848/256850) |


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-04 Thread via GitHub


nooneuse commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5540583114

   run buildall


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-04 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5541579486

   
   
   TPC-H: Total hot run time: 16692 ms
   
   ```
   machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
   scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
   Tpch sf100 test result on commit d37a037746b370592f69bdd3593baa5e8d030ad3, 
data reload: false
   
   -- Round 1 --
   
   q1   17590   304530103010
   q2   2103260 223 223
   q3   10223   860 512 512
   q4   4665243 216 216
   q5   7670571 381 381
   q6   133 113 96  96
   q7   531 506 391 391
   q8   9234923 893 893
   q9   3420239323662366
   q10  6503851 708 708
   q11  390 203 184 184
   q12  618 267 197 197
   q13  18105   151311971197
   q14  154 149 139 139
   q15  q16 442 394 367 367
   q17  1377814 808 808
   q18  3167226422742264
   q19  1289893 742 742
   q20  385 277 199 199
   q21  5645156918861569
   q22  336 267 230 230
   Total cold run time: 93980 ms
   Total hot run time: 16692 ms
   
   - Round 2, with runtime_filter_mode=off -
   
   q1   3373329433003294
   q2   503 374 360 360
   q3   2240236321232123
   q4   11771154893 893
   q5   2149210121172101
   q6   167 120 86  86
   q7   993 921 923 921
   q8   1571137613811376
   q9   3145308430613061
   q10  1864180016581658
   q11  354 266 246 246
   q12  447 431 333 333
   q13  1451153111751175
   q14  172 174 156 156
   q15  q16 387 392 357 357
   q17  3655337032303230
   q18  4802442247184422
   q19  841 791 912 791
   q20  1016952 823 823
   q21  3740306231833062
   q22  391 337 308 308
   Total cold run time: 34438 ms
   Total hot run time: 30776 ms
   ```
   
   


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-04 Thread via GitHub


nooneuse commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5536516440

   run buildall


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-04 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5541715267

   
   
   ClickBench: Total hot run time: 14.69 s
   
   ```
   machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
   scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
   ClickBench test result on commit d37a037746b370592f69bdd3593baa5e8d030ad3, 
data reload: false
   
   query1   0.010.000.00
   query2   0.080.040.03
   query3   0.240.110.10
   query4   1.610.090.10
   query5   0.180.150.16
   query6   1.270.690.68
   query7   0.030.000.01
   query8   0.040.030.03
   query9   0.290.210.21
   query10  0.350.350.39
   query11  0.170.120.11
   query12  0.140.120.11
   query13  0.300.320.31
   query14  0.450.460.45
   query15  0.360.360.34
   query16  0.210.240.22
   query17  0.670.710.67
   query18  0.180.160.17
   query19  1.201.171.17
   query20  0.020.010.01
   query21  15.44   0.150.11
   query22  5.100.040.04
   query23  16.18   0.240.10
   query24  3.040.300.25
   query25  0.120.030.04
   query26  0.830.160.11
   query27  0.040.040.03
   query28  3.640.540.26
   query29  12.48   3.202.60
   query30  0.260.110.12
   query31  2.760.360.18
   query32  3.520.320.24
   query33  1.381.461.46
   query34  15.39   2.161.73
   query35  1.711.741.72
   query36  0.460.290.29
   query37  0.060.050.04
   query38  0.040.030.03
   query39  0.030.020.03
   query40  0.110.080.08
   query41  0.080.030.02
   query42  0.030.020.03
   query43  0.040.030.03
   Total cold run time: 90.54 s
   Total hot run time: 14.69 s
   ```
   
   


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-04 Thread via GitHub


freemandealer commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5540585496

   /review


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-04 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5541718618

   # FE UT Coverage Report
   Increment line coverage `  80.00% (20/25)` :tada:
   [Increment coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_d37a037746b370592f69bdd3593baa5e8d030ad3/fe_increment_report/index.html)
   [Complete coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_d37a037746b370592f69bdd3593baa5e8d030ad3/fe_report/index.html)
   


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-04 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5541661410

   
   
   TPC-DS: Total hot run time: 82309 ms
   
   ```
   machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
   scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
   TPC-DS sf100 test result on commit d37a037746b370592f69bdd3593baa5e8d030ad3, 
data reload: false
   
   query5   4237415 327 327
   query6   386 136 124 124
   query7   4954418 234 234
   query8   295 129 118 118
   query9   8660286328532853
   query10  385 211 182 182
   query11  53871023905 905
   query12  115 70  79  70
   query13  1192446 347 347
   query14  5940218320812081
   query14_11969195319451945
   query15  173 123 113 113
   query16  917 370 300 300
   query17  796 460 373 373
   query18  2335359 225 225
   query19  165 132 103 103
   query20  68  67  69  67
   query21  196 96  82  82
   query22  5390537054365370
   query23  6721611761316117
   query23_16128618661516151
   query24  72491112761 761
   query24_1778 738 764 738
   query25  416 291 234 234
   query26  1241225 132 132
   query27  2794411 257 257
   query28  4687149914931493
   query29  936 450 332 332
   query30  249 153 128 128
   query31  824 397 327 327
   query32  124 73  69  69
   query33  462 206 169 169
   query34  978 846 468 468
   query35  410 390 339 339
   query36  561 574 546 546
   query37  118 79  66  66
   query38  991 845 819 819
   query39  487 495 481 481
   query39_1461 463 458 458
   query40  200 87  76  76
   query41  54  52  51  51
   query42  73  71  71  71
   query43  239 238 206 206
   query44  1002543 551 543
   query45  102 105 105 105
   query46  766 838 508 508
   query47  764 772 695 695
   query48  310 292 253 253
   query49  540 228 187 187
   query50  739 262 199 199
   query51  7924806380158015
   query52  68  67  64  64
   query53  200 197 152 152
   query54  296 187 155 155
   query55  81  60  55  55
   query56  208 167 185 167
   query57  708 693 629 629
   query58  218 171 176 171
   query59  1199121810931093
   query60  249 200 187 187
   query61  137 135 146 135
   query62  354 215 184 184
   query63  174 149 145 145
   query64  3054810 730 730
   query65  1642155215881552
   query66  1834256 222 222
   query67  9954977797259725
   query68  29211283760 760
   query69  365 230 194 194
   query70  658 625 595 595
   query71  258 174 164 164
   query72  2302180515671567
   query73  653 597 335 335
   query74  1993122311391139
   query75  11961114968 968
   query76  2320760 561 561
   query77  262 275 203 203
   query78  3993367232653265
   query79  2291814 598 598
   query80  1591334 270 270
   query81  486 154 136 136
   query82  634 129 98  98
   query83  276 215 186 186
   query84  292 109 89  89
   query85  800 360 295 295
   query86  386 174 174 174
   query87  1030956 896 896
   query88  2765212321142114
   query89  287 194 173 173
   query90  1976133 127 127
   query91  132 117 99  99
   query92  75  70  71  70
   query93  13741140722 722
   query94  646 250 228 228
   query95  532 326 231 231
   query96  858 618 277 277
   query97  1083106610141014
   query98  141 140 130 130
   query99  421 346 309 309
   Total cold run time: 179113 ms
   Total hot run time: 82309 ms
   ```
   
   


-- 
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 

Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-04 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5537362661

   
   
   TPC-DS: Total hot run time: 81348 ms
   
   ```
   machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
   scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
   TPC-DS sf100 test result on commit 962e68cf9368cc0cb94b9cc42ea845dada0a11c4, 
data reload: false
   
   query5   4268420 332 332
   query6   391 137 124 124
   query7   4942424 233 233
   query8   306 125 118 118
   query9   8680287428742874
   query10  382 220 178 178
   query11  53691027903 903
   query12  118 71  70  70
   query13  1197442 342 342
   query14  5983218320702070
   query14_11971196319431943
   query15  174 115 103 103
   query16  892 360 332 332
   query17  776 431 335 335
   query18  2311322 231 231
   query19  158 131 107 107
   query20  68  65  67  65
   query21  196 101 83  83
   query22  5429524653345246
   query23  6555623958885888
   query23_16276614761206120
   query24  72941108766 766
   query24_1761 762 753 753
   query25  413 274 236 236
   query26  1226236 129 129
   query27  2797432 258 258
   query28  4661150414881488
   query29  935 453 356 356
   query30  240 160 129 129
   query31  821 400 325 325
   query32  127 78  78  78
   query33  464 223 188 188
   query34  1010809 455 455
   query35  403 416 344 344
   query36  589 565 519 519
   query37  120 80  71  71
   query38  1003845 816 816
   query39  483 471 510 471
   query39_1458 500 462 462
   query40  200 92  79  79
   query41  59  56  58  56
   query42  75  72  72  72
   query43  238 242 210 210
   query44  1009543 554 543
   query45  108 111 99  99
   query46  765 873 544 544
   query47  781 782 702 702
   query48  301 299 232 232
   query49  551 244 193 193
   query50  724 272 200 200
   query51  7989788580847885
   query52  70  67  68  67
   query53  199 208 145 145
   query54  225 194 168 168
   query55  74  59  62  59
   query56  190 179 183 179
   query57  734 680 727 680
   query58  215 166 166 166
   query59  1256125110651065
   query60  266 177 164 164
   query61  116 119 113 113
   query62  337 205 188 188
   query63  169 143 142 142
   query64  2868658 568 568
   query65  1655158716371587
   query66  1793308 206 206
   query67  10341   971996079607
   query68  27681237715 715
   query69  330 221 202 202
   query70  681 630 582 582
   query71  261 172 159 159
   query72  2318170616221622
   query73  655 568 329 329
   query74  1579123211321132
   query75  11671088949 949
   query76  2279708 564 564
   query77  244 254 205 205
   query78  3921371831643164
   query79  2442859 605 605
   query80  1581322 275 275
   query81  491 155 134 134
   query82  619 123 94  94
   query83  281 212 188 188
   query84  296 110 89  89
   query85  785 358 295 295
   query86  398 178 169 169
   query87  1022971 888 888
   query88  2796211120932093
   query89  294 197 174 174
   query90  1996131 121 121
   query91  131 120 99  99
   query92  81  69  72  69
   query93  14091118709 709
   query94  663 261 174 174
   query95  519 314 230 230
   query96  802 559 270 270
   query97  10321066985 985
   query98  144 133 132 132
   query99  418 348 308 308
   Total cold run time: 177426 ms
   Total hot run time: 81348 ms
   ```
   
   


-- 
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.

Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-04 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5537406190

   
   
   ClickBench: Total hot run time: 14.6 s
   
   ```
   machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
   scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
   ClickBench test result on commit 962e68cf9368cc0cb94b9cc42ea845dada0a11c4, 
data reload: false
   
   query1   0.000.010.01
   query2   0.090.030.03
   query3   0.240.090.10
   query4   1.590.090.11
   query5   0.170.160.16
   query6   1.250.710.70
   query7   0.030.010.00
   query8   0.040.030.03
   query9   0.290.210.21
   query10  0.360.340.34
   query11  0.170.110.11
   query12  0.150.120.12
   query13  0.320.290.31
   query14  0.470.450.46
   query15  0.360.360.36
   query16  0.210.220.23
   query17  0.720.680.65
   query18  0.180.160.16
   query19  1.211.191.14
   query20  0.020.010.01
   query21  15.43   0.160.12
   query22  5.080.040.04
   query23  16.19   0.240.10
   query24  3.070.300.28
   query25  0.110.040.03
   query26  0.840.170.11
   query27  0.040.030.02
   query28  3.700.590.27
   query29  12.45   3.142.53
   query30  0.250.130.13
   query31  2.760.380.18
   query32  3.520.300.22
   query33  1.461.381.59
   query34  15.38   2.161.78
   query35  1.761.721.75
   query36  0.470.290.29
   query37  0.050.040.04
   query38  0.040.030.03
   query39  0.040.020.03
   query40  0.110.070.08
   query41  0.080.030.02
   query42  0.040.020.02
   query43  0.040.030.03
   Total cold run time: 90.78 s
   Total hot run time: 14.6 s
   ```
   
   


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-04 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5537294707

   
   
   TPC-H: Total hot run time: 16736 ms
   
   ```
   machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
   scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
   Tpch sf100 test result on commit 962e68cf9368cc0cb94b9cc42ea845dada0a11c4, 
data reload: false
   
   -- Round 1 --
   
   q1   17625   302730073007
   q2   2074258 231 231
   q3   10245   838 520 520
   q4   4663243 202 202
   q5   7682563 384 384
   q6   134 119 97  97
   q7   527 499 381 381
   q8   9236950 930 930
   q9   3443240623662366
   q10  6519835 702 702
   q11  399 199 179 179
   q12  606 263 201 201
   q13  18159   154911581158
   q14  165 149 138 138
   q15  q16 438 397 369 369
   q17  1360829 816 816
   q18  3113224422502244
   q19  1266901 778 778
   q20  372 296 199 199
   q21  5588161018241610
   q22  327 262 224 224
   Total cold run time: 93941 ms
   Total hot run time: 16736 ms
   
   - Round 2, with runtime_filter_mode=off -
   
   q1   3384331632733273
   q2   510 381 359 359
   q3   2172281021872187
   q4   11801177884 884
   q5   2166211721242117
   q6   168 121 86  86
   q7   1046916 871 871
   q8   1569137914021379
   q9   3095311030873087
   q10  1838181016301630
   q11  356 263 247 247
   q12  454 425 350 350
   q13  1476152811781178
   q14  161 169 168 168
   q15  q16 393 386 343 343
   q17  3657326933303269
   q18  4742439846474398
   q19  857 818 932 818
   q20  1007960 830 830
   q21  3717302032133020
   q22  390 338 316 316
   Total cold run time: 34338 ms
   Total hot run time: 30810 ms
   ```
   
   


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-03 Thread via GitHub


freemandealer commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5536692542

   /review


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-03 Thread via GitHub


nooneuse commented on code in PR #67469:
URL: https://github.com/apache/doris/pull/67469#discussion_r3931379147


##
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/agg/DataSketchesHllUnionAgg.java:
##
@@ -73,6 +90,27 @@ public void checkLegalityBeforeTypeCoercion() {
 throw new AnalysisException(getName()
 + " function's argument should be of STRING/VARCHAR/VARBINARY 
type, but was " + inputType);
 }
+if (arity() == 2
+&& (!getArgument(1).isConstant() || 
!getArgumentType(1).isIntegralType())) {
+throw new AnalysisException(getName()
++ " requires lg_max_k to be a constant integer: " + 
this.toSql());
+}
+}
+
+@Override
+public void checkLegalityAfterRewrite() {
+if (arity() == 1) {
+return;
+}
+Expression lgMaxK = getArgument(1);
+if (!(lgMaxK instanceof IntegerLikeLiteral)) {
+throw new AnalysisException(getName() + " requires lg_max_k to be 
a constant integer: " + this.toSql());
+}
+long value = ((IntegerLikeLiteral) lgMaxK).getLongValue();
+if (value < MIN_LG_MAX_K || value > MAX_LG_MAX_K) {

Review Comment:
   Thanks for identifying this. I agree that StateCombinator currently forwards 
only checkLegalityBeforeTypeCoercion(), so nested post-rewrite validation is 
not executed for the generated _state form.
   
   I am not changing the generic StateCombinator behavior in this PR. 
Forwarding post-rewrite checks or introducing an aggregate-combinator 
capability would affect all aggregate functions and should be handled as a 
separate FE change, rather than adding a DataSketches-specific workaround to 
the generic combinator framework.
   
   The BE still validates the [7, 21] range whenever a non-null row is 
evaluated, so invalid values cannot create a populated state. For empty or 
all-null input, no sketch is processed and the result remains an empty state. 
This PR keeps the direct two-argument aggregate fully validated by FE and 
limits its AggState change to allowing valid typed states to be consumed by 
_merge and _union.



-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-03 Thread via GitHub


nooneuse commented on code in PR #67469:
URL: https://github.com/apache/doris/pull/67469#discussion_r3931372675


##
be/src/exprs/aggregate/aggregate_function_datasketches_hll_union_agg.h:
##
@@ -91,12 +84,10 @@ struct AggregateFunctionHllSketchData {
 "Internal error happened when update HLL sketch: 
unknown exception.");
 }
 }
-void reset() {
-if (hll_union_data.has_value()) {
-hll_union_data->reset();
-}
-hll_union_data.reset();
+void merge(const Sketch& sketch_data) {
+merge(sketch_data, std::max(sketch_data.get_lg_config_k(), 
MIN_UNION_LOG_K));

Review Comment:
   Fixed.



-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-03 Thread via GitHub


nooneuse commented on code in PR #67469:
URL: https://github.com/apache/doris/pull/67469#discussion_r3931369797


##
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/agg/DataSketchesHllUnionAgg.java:
##
@@ -73,6 +90,27 @@ public void checkLegalityBeforeTypeCoercion() {
 throw new AnalysisException(getName()
 + " function's argument should be of STRING/VARCHAR/VARBINARY 
type, but was " + inputType);
 }
+if (arity() == 2
+&& (!getArgument(1).isConstant() || 
!getArgumentType(1).isIntegralType())) {

Review Comment:
   Fixed.



-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-03 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5526743785

   # BE Regression && UT Coverage Report
   Increment line coverage `100.00% (28/28)` :tada:
   
   [Increment coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_e629d36bc73369298de19527a1dd3f78bca2814e_merge/increment_report/index.html)
   [Complete coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_e629d36bc73369298de19527a1dd3f78bca2814e_merge/report/index.html)
   | Category  | Coverage   |
   |---||
   | Function Coverage | 76.33% (34669/45420) |
   | Line Coverage | 61.39% (391309/637364) |
   | Region Coverage   | 57.54% (328796/571423) |
   | Branch Coverage   | 58.39% (149947/256824) |


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-03 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5527023557

   # FE Regression Coverage Report
   Increment line coverage `  22.35% (19/85)` :tada:
   [Increment coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_e629d36bc73369298de19527a1dd3f78bca2814e_merge_fe/increment_report/index.html)
   [Complete coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_e629d36bc73369298de19527a1dd3f78bca2814e_merge_fe/report/index.html)
   


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-03 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5526219292

   
   
   ClickBench: Total hot run time: 14.71 s
   
   ```
   machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
   scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
   ClickBench test result on commit e629d36bc73369298de19527a1dd3f78bca2814e, 
data reload: false
   
   query1   0.000.000.01
   query2   0.070.040.04
   query3   0.260.110.11
   query4   1.600.100.10
   query5   0.180.160.16
   query6   1.260.700.69
   query7   0.030.010.01
   query8   0.040.030.03
   query9   0.290.210.22
   query10  0.380.340.38
   query11  0.160.120.11
   query12  0.140.120.12
   query13  0.300.320.32
   query14  0.430.440.46
   query15  0.350.360.35
   query16  0.230.220.23
   query17  0.680.670.68
   query18  0.180.180.17
   query19  1.261.121.13
   query20  0.010.000.00
   query21  15.44   0.150.12
   query22  5.060.040.04
   query23  16.20   0.250.10
   query24  3.030.340.25
   query25  0.100.040.04
   query26  0.740.160.12
   query27  0.030.030.04
   query28  3.610.590.26
   query29  12.46   3.212.55
   query30  0.270.110.12
   query31  2.760.380.17
   query32  3.510.320.23
   query33  1.371.471.46
   query34  15.36   2.211.76
   query35  1.731.751.72
   query36  0.460.300.29
   query37  0.060.040.04
   query38  0.050.030.03
   query39  0.030.030.03
   query40  0.110.080.08
   query41  0.080.020.02
   query42  0.040.020.02
   query43  0.030.030.03
   Total cold run time: 90.38 s
   Total hot run time: 14.71 s
   ```
   
   


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-03 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5526162695

   
   
   TPC-DS: Total hot run time: 81480 ms
   
   ```
   machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
   scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
   TPC-DS sf100 test result on commit e629d36bc73369298de19527a1dd3f78bca2814e, 
data reload: false
   
   query5   4243405 334 334
   query6   404 133 123 123
   query7   4951404 230 230
   query8   288 123 117 117
   query9   8683289628872887
   query10  404 223 177 177
   query11  53661027914 914
   query12  121 78  71  71
   query13  1193450 338 338
   query14  6062219820722072
   query14_11968196219761962
   query15  181 119 109 109
   query16  926 382 346 346
   query17  809 467 391 391
   query18  2347329 240 240
   query19  164 135 111 111
   query20  76  70  76  70
   query21  214 102 91  91
   query22  5329533752165216
   query23  6703619458285828
   query23_15959589760725897
   query24  72601098755 755
   query24_1792 793 788 788
   query25  438 321 235 235
   query26  1230228 121 121
   query27  2800431 255 255
   query28  4657151914871487
   query29  926 421 330 330
   query30  251 147 127 127
   query31  826 391 327 327
   query32  150 85  73  73
   query33  441 214 173 173
   query34  975 853 469 469
   query35  400 400 336 336
   query36  554 586 524 524
   query37  130 79  67  67
   query38  1002842 817 817
   query39  482 463 457 457
   query39_1458 460 457 457
   query40  204 86  74  74
   query41  54  50  50  50
   query42  73  70  75  70
   query43  245 239 211 211
   query44  1038547 551 547
   query45  107 103 100 100
   query46  791 833 520 520
   query47  748 759 708 708
   query48  296 304 230 230
   query49  544 230 191 191
   query50  785 266 202 202
   query51  8271819279657965
   query52  65  65  58  58
   query53  193 198 148 148
   query54  228 181 168 168
   query55  72  58  54  54
   query56  186 182 153 153
   query57  674 660 655 655
   query58  217 187 219 187
   query59  1234123211411141
   query60  235 176 164 164
   query61  129 135 110 110
   query62  376 207 178 178
   query63  171 141 145 141
   query64  2722787 686 686
   query65  1656159316681593
   query66  1904267 220 220
   query67  9636990096169616
   query68  27601198756 756
   query69  333 216 196 196
   query70  670 609 618 609
   query71  239 180 175 175
   query72  2310177615301530
   query73  637 602 341 341
   query74  1571120811211121
   query75  11801100942 942
   query76  2286733 534 534
   query77  240 254 211 211
   query78  3894366431943194
   query79  2351820 582 582
   query80  1543320 293 293
   query81  494 154 134 134
   query82  1041121 96  96
   query83  274 203 194 194
   query84  295 110 95  95
   query85  801 357 310 310
   query86  399 180 170 170
   query87  1007963 889 889
   query88  2772214721062106
   query89  290 195 176 176
   query90  1982127 125 125
   query91  134 120 100 100
   query92  80  69  69  69
   query93  14531067697 697
   query94  688 279 225 225
   query95  517 257 229 229
   query96  808 558 271 271
   query97  1036105410341034
   query98  158 136 133 133
   query99  434 347 320 320
   Total cold run time: 177111 ms
   Total hot run time: 81480 ms
   ```
   
   


-- 
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 

Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-03 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5526070446

   
   
   TPC-H: Total hot run time: 16758 ms
   
   ```
   machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
   scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
   Tpch sf100 test result on commit e629d36bc73369298de19527a1dd3f78bca2814e, 
data reload: false
   
   -- Round 1 --
   
   q1   17603   310230823082
   q2   2116255 223 223
   q3   10247   868 513 513
   q4   4668253 209 209
   q5   7666571 382 382
   q6   134 115 94  94
   q7   526 524 387 387
   q8   9248900 848 848
   q9   3463235023632350
   q10  6560871 707 707
   q11  437 200 183 183
   q12  616 261 202 202
   q13  18121   153311691169
   q14  160 149 139 139
   q15  q16 442 400 364 364
   q17  1333922 781 781
   q18  3100224322262226
   q19  1295919 778 778
   q20  385 290 205 205
   q21  5561168418631684
   q22  321 270 232 232
   Total cold run time: 94002 ms
   Total hot run time: 16758 ms
   
   - Round 2, with runtime_filter_mode=off -
   
   q1   3437341933643364
   q2   521 400 381 381
   q3   2165232021222122
   q4   12331199899 899
   q5   2194213420772077
   q6   166 118 87  87
   q7   1008929 876 876
   q8   1605142514271425
   q9   3165313731553137
   q10  1871177916161616
   q11  368 280 261 261
   q12  450 433 345 345
   q13  1493154511531153
   q14  169 174 157 157
   q15  q16 398 407 364 364
   q17  3587328331683168
   q18  4791439346644393
   q19  894 903 860 860
   q20  995 967 841 841
   q21  3886323932503239
   q22  394 347 330 330
   Total cold run time: 34790 ms
   Total hot run time: 31095 ms
   ```
   
   


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-03 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5525504224

   # BE UT Coverage Report
   Increment line coverage `92.86% (26/28)` :tada:
   
   [Increment coverage 
report](http://coverage.selectdb-in.cc/coverage/e629d36bc73369298de19527a1dd3f78bca2814e_e629d36bc73369298de19527a1dd3f78bca2814e/increment_report/index.html)
   [Complete coverage 
report](http://coverage.selectdb-in.cc/coverage/e629d36bc73369298de19527a1dd3f78bca2814e_e629d36bc73369298de19527a1dd3f78bca2814e/report/index.html)
   | Category  | Coverage   |
   |---||
   | Function Coverage | 63.02% (29553/46894) |
   | Line Coverage | 48.07% (309902/644727) |
   | Region Coverage   | 43.66% (250438/573607) |
   | Branch Coverage   | 45.24% (116530/257563) |


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-03 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5524656636

   # FE UT Coverage Report
   Increment line coverage `  64.00% (16/25)` :tada:
   [Increment coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_e629d36bc73369298de19527a1dd3f78bca2814e/fe_increment_report/index.html)
   [Complete coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_e629d36bc73369298de19527a1dd3f78bca2814e/fe_report/index.html)
   


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-03 Thread via GitHub


github-actions[bot] commented on code in PR #67469:
URL: https://github.com/apache/doris/pull/67469#discussion_r3923335608


##
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/agg/DataSketchesHllUnionAgg.java:
##
@@ -73,6 +90,27 @@ public void checkLegalityBeforeTypeCoercion() {
 throw new AnalysisException(getName()
 + " function's argument should be of STRING/VARCHAR/VARBINARY 
type, but was " + inputType);
 }
+if (arity() == 2
+&& (!getArgument(1).isConstant() || 
!getArgumentType(1).isIntegralType())) {

Review Comment:
   [P1] Preserve the precision parameter when binding state consumers
   
   A valid two-argument state becomes unusable as soon as it is materialized. 
For example, in `SELECT datasketches_hll_union_agg_merge(s) FROM (SELECT 
datasketches_hll_union_agg_state(sk, 8) AS s FROM t) q`, the outer `s` is an 
`AggStateType` slot. `AggCombinerFunctionBuilder.buildMergeOrUnion()` then 
reconstructs both nested arguments with `DataTypeUtils.getMockedExpressions()`, 
so the INT parameter is a nonconstant `SlotReference`; 
`MergeCombinator`/`UnionCombinator` delegate legality to that reconstructed 
function and this branch rejects it. A stored `GENERIC` `AGG_STATE` scan also 
automatically builds the same `_union` consumer in `BindRelation`. Only the 
direct AST shortcut `_merge(_state(sk, 8))` retains the literal. Please 
preserve the required constant identity when reconstructing state consumers, or 
explicitly exclude this overload from combinators, and add 
subquery/stored-column round trips for the canonical name and aliases.



##
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/agg/DataSketchesHllUnionAgg.java:
##
@@ -73,6 +90,27 @@ public void checkLegalityBeforeTypeCoercion() {
 throw new AnalysisException(getName()
 + " function's argument should be of STRING/VARCHAR/VARBINARY 
type, but was " + inputType);
 }
+if (arity() == 2
+&& (!getArgument(1).isConstant() || 
!getArgumentType(1).isIntegralType())) {
+throw new AnalysisException(getName()
++ " requires lg_max_k to be a constant integer: " + 
this.toSql());
+}
+}
+
+@Override
+public void checkLegalityAfterRewrite() {
+if (arity() == 1) {
+return;
+}
+Expression lgMaxK = getArgument(1);
+if (!(lgMaxK instanceof IntegerLikeLiteral)) {
+throw new AnalysisException(getName() + " requires lg_max_k to be 
a constant integer: " + this.toSql());
+}
+long value = ((IntegerLikeLiteral) lgMaxK).getLongValue();
+if (value < MIN_LG_MAX_K || value > MAX_LG_MAX_K) {

Review Comment:
   [P2] Run the range check for the generated `_state` form
   
   `StateCombinator` delegates only `checkLegalityBeforeTypeCoercion()` to its 
nested aggregate. The nested function is a field rather than an expression 
child, and the wrapper has no `checkLegalityAfterRewrite()` override, so this 
bound check is never reached for `datasketches_hll_union_agg_state(sk, 6)` or 
`(..., 22)` (including aliases). BE rejects the value only when `add()` sees a 
non-null row; an empty or all-null input can therefore succeed and produce an 
empty state despite the promised FE validation. Please forward a 
combinator-aware post-rewrite check and add `_state` negative tests for both 
bounds and aliases.



##
be/src/exprs/aggregate/aggregate_function_datasketches_hll_union_agg.h:
##
@@ -91,12 +84,10 @@ struct AggregateFunctionHllSketchData {
 "Internal error happened when update HLL sketch: 
unknown exception.");
 }
 }
-void reset() {
-if (hll_union_data.has_value()) {
-hll_union_data->reset();
-}
-hll_union_data.reset();
+void merge(const Sketch& sketch_data) {
+merge(sketch_data, std::max(sketch_data.get_lg_config_k(), 
MIN_UNION_LOG_K));

Review Comment:
   [P1] Make two-argument aggregate-state caps deterministic
   
   `datasketches_hll_union_agg_state(sk, 7)` and `_state(sk, 21)` have the same 
aggregate-state type because it records argument types, not the constant value. 
Stored-state tablet aggregation/compaction reconstructs the two-argument nested 
BE function from those types and reaches this no-configuration merge directly. 
With two sparse states, this overload initializes from whichever serialized 
sketch arrives first; upstream LIST/SET handling replays later coupons into 
that existing gadget without lowering its `lgK`. Consequently cap-21 then cap-7 
remains 21, while the reverse remains 7, producing different serialized state 
and later different dense memory/precision. This is distinct from the existing 
one-argument rolling-upgrade thread: it is an all-new two-argument state 
contract. Please define a deterministic 

Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-03 Thread via GitHub


freemandealer commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5523423883

   /review


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-03 Thread via GitHub


nooneuse commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5523420947

   run buildall


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-03 Thread via GitHub


nooneuse commented on code in PR #67469:
URL: https://github.com/apache/doris/pull/67469#discussion_r3922924949


##
be/src/exprs/aggregate/aggregate_function_datasketches_hll_union_agg.h:
##
@@ -91,12 +84,10 @@ struct AggregateFunctionHllSketchData {
 "Internal error happened when update HLL sketch: 
unknown exception.");
 }
 }
-void reset() {
-if (hll_union_data.has_value()) {
-hll_union_data->reset();
-}
-hll_union_data.reset();
+void merge(const Sketch& sketch_data) {
+merge(sketch_data, std::max(sketch_data.get_lg_config_k(), 
MIN_UNION_LOG_K));

Review Comment:
   We revised the compatibility strategy instead of adding a version field to 
the intermediate state.
   The one-argument form has no user-specified lg_max_k, so enforcing a new cap 
of 12 would be incompatible with legacy partial states whose effective lgK can 
be as high as 21. DEFAULT_UNION_LOG_K is now set to MAX_LOG_K (21). read() and 
partial-state merge() continue restoring the effective lgK carried by the 
serialized sketch, so an old lgK=21 state is not unexpectedly downsampled by a 
new BE.
   This means the one-argument form can use more memory when its effective 
state becomes dense at a high lgK; this is intentional and documented. A 
lower-precision dense input can still reduce the effective lgK, and sparse 
states do not immediately allocate a full dense array.
   The new two-argument form is the mechanism for setting an explicit precision 
and memory cap. Since older BEs do not recognize that signature, it is 
documented as supported only after all BEs in the cluster have been upgraded.
   We also added a test that serializes and restores a dense lgK=21 partial 
state to cover this compatibility case.



-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-03 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5522881424

   # BE Regression && UT Coverage Report
   Increment line coverage `100.00% (28/28)` :tada:
   
   [Increment coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_b62a64ce57e396e52abba0552121addc4c1c720c_merge/increment_report/index.html)
   [Complete coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_b62a64ce57e396e52abba0552121addc4c1c720c_merge/report/index.html)
   | Category  | Coverage   |
   |---||
   | Function Coverage | 76.22% (34683/45504) |
   | Line Coverage | 61.30% (391613/638818) |
   | Region Coverage   | 57.53% (329338/572512) |
   | Branch Coverage   | 58.33% (150278/257645) |


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-03 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5522230206

   # BE UT Coverage Report
   Increment line coverage `92.86% (26/28)` :tada:
   
   [Increment coverage 
report](http://coverage.selectdb-in.cc/coverage/b62a64ce57e396e52abba0552121addc4c1c720c_b62a64ce57e396e52abba0552121addc4c1c720c/increment_report/index.html)
   [Complete coverage 
report](http://coverage.selectdb-in.cc/coverage/b62a64ce57e396e52abba0552121addc4c1c720c_b62a64ce57e396e52abba0552121addc4c1c720c/report/index.html)
   | Category  | Coverage   |
   |---||
   | Function Coverage | 62.95% (29575/46982) |
   | Line Coverage | 48.00% (310159/646193) |
   | Region Coverage   | 43.61% (250602/574704) |
   | Branch Coverage   | 45.11% (116554/258384) |


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-03 Thread via GitHub


nooneuse commented on code in PR #67469:
URL: https://github.com/apache/doris/pull/67469#discussion_r3921935407


##
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/agg/DataSketchesHllUnionAgg.java:
##
@@ -39,27 +40,43 @@
 
 /** datasketches_hll_union_agg agg function. */
 public class DataSketchesHllUnionAgg extends NotNullableAggregateFunction
-implements UnaryExpression, ExplicitlyCastableSignature, 
FunctionTrait, RollUpTrait {
+implements ExplicitlyCastableSignature, FunctionTrait, RollUpTrait {
 public static final List SIGNATURES = ImmutableList.of(
 
FunctionSignature.ret(DoubleType.INSTANCE).args(StringType.INSTANCE),
 
FunctionSignature.ret(DoubleType.INSTANCE).args(VarcharType.SYSTEM_DEFAULT),
-
FunctionSignature.ret(DoubleType.INSTANCE).args(VarBinaryType.INSTANCE)
+
FunctionSignature.ret(DoubleType.INSTANCE).args(VarBinaryType.INSTANCE),
+
FunctionSignature.ret(DoubleType.INSTANCE).args(StringType.INSTANCE, 
IntegerType.INSTANCE),

Review Comment:
   Okay



##
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/agg/DataSketchesHllUnionAgg.java:
##
@@ -73,6 +90,27 @@ public void checkLegalityBeforeTypeCoercion() {
 throw new AnalysisException(getName()
 + " function's argument should be of STRING/VARCHAR/VARBINARY 
type, but was " + inputType);
 }
+if (arity() == 2
+&& (!getArgument(1).isConstant() || 
!getArgumentType(1).isIntegralType())) {
+throw new AnalysisException(getName()
++ " requires lg_max_k to be a constant integer: " + 
this.toSql());
+}
+}
+
+@Override
+public void checkLegalityAfterRewrite() {
+if (arity() == 1) {
+return;
+}
+Expression lgMaxK = getArgument(1);
+if (!(lgMaxK instanceof IntegerLikeLiteral)) {

Review Comment:
   Thanks for pointing this out. I tested the exact query on the current PR head
   with Nereids enabled and fallback disabled:
   
   EXPLAIN SELECT DATASKETCHES_HLL_UNION_AGG(
   DISTINCT sk, CAST(8 AS BIGINT))
   FROM (SELECT CAST(NULL AS STRING) AS sk) t;
   
   The query is planned successfully, and the partial aggregate receives the
   normalized integer literal 8. I also verified CAST(4 + 4 AS BIGINT), abs(-8),
   and nested integral casts.
   
   Although FoldConstantRuleOnFE skips folding after entering an already-bound
   DISTINCT aggregate, these constant child expressions are analyzed and folded
   before that point. Therefore checkLegalityAfterRewrite sees an
   IntegerLikeLiteral in these cases.
   
   I could not reproduce the reported rejection on the reviewed head. If there 
is
   another query shape or session setting that leaves the expression as a Cast,
   please provide the complete reproduction.



-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-03 Thread via GitHub


nooneuse commented on code in PR #67469:
URL: https://github.com/apache/doris/pull/67469#discussion_r3921935407


##
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/agg/DataSketchesHllUnionAgg.java:
##
@@ -39,27 +40,43 @@
 
 /** datasketches_hll_union_agg agg function. */
 public class DataSketchesHllUnionAgg extends NotNullableAggregateFunction
-implements UnaryExpression, ExplicitlyCastableSignature, 
FunctionTrait, RollUpTrait {
+implements ExplicitlyCastableSignature, FunctionTrait, RollUpTrait {
 public static final List SIGNATURES = ImmutableList.of(
 
FunctionSignature.ret(DoubleType.INSTANCE).args(StringType.INSTANCE),
 
FunctionSignature.ret(DoubleType.INSTANCE).args(VarcharType.SYSTEM_DEFAULT),
-
FunctionSignature.ret(DoubleType.INSTANCE).args(VarBinaryType.INSTANCE)
+
FunctionSignature.ret(DoubleType.INSTANCE).args(VarBinaryType.INSTANCE),
+
FunctionSignature.ret(DoubleType.INSTANCE).args(StringType.INSTANCE, 
IntegerType.INSTANCE),

Review Comment:
   Thanks for pointing this out. I tested the exact query on the current PR head
   with Nereids enabled and fallback disabled:
   
   EXPLAIN SELECT DATASKETCHES_HLL_UNION_AGG(
   DISTINCT sk, CAST(8 AS BIGINT))
   FROM (SELECT CAST(NULL AS STRING) AS sk) t;
   
   The query is planned successfully, and the partial aggregate receives the
   normalized integer literal 8. I also verified CAST(4 + 4 AS BIGINT), abs(-8),
   and nested integral casts.
   
   Although FoldConstantRuleOnFE skips folding after entering an already-bound
   DISTINCT aggregate, these constant child expressions are analyzed and folded
   before that point. Therefore checkLegalityAfterRewrite sees an
   IntegerLikeLiteral in these cases.
   
   I could not reproduce the reported rejection on the reviewed head. If there 
is
   another query shape or session setting that leaves the expression as a Cast,
   please provide the complete reproduction.



-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-02 Thread via GitHub


hello-stephen commented on PR #67469:
URL: https://github.com/apache/doris/pull/67469#issuecomment-5521664503

   # FE UT Coverage Report
   Increment line coverage `  56.00% (14/25)` :tada:
   [Increment coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_b62a64ce57e396e52abba0552121addc4c1c720c/fe_increment_report/index.html)
   [Complete coverage 
report](http://coverage.selectdb-in.cc/coverage/67469_b62a64ce57e396e52abba0552121addc4c1c720c/fe_report/index.html)
   


-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-02 Thread via GitHub


github-actions[bot] commented on code in PR #67469:
URL: https://github.com/apache/doris/pull/67469#discussion_r3921458378


##
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/agg/DataSketchesHllUnionAgg.java:
##
@@ -39,27 +40,43 @@
 
 /** datasketches_hll_union_agg agg function. */
 public class DataSketchesHllUnionAgg extends NotNullableAggregateFunction
-implements UnaryExpression, ExplicitlyCastableSignature, 
FunctionTrait, RollUpTrait {

Review Comment:
   [P1] Preserve valid constant precision expressions under DISTINCT
   
   `checkLegalityBeforeTypeCoercion` accepts any constant integral expression, 
but this post-rewrite branch narrows it to `IntegerLikeLiteral`. For 
`DATASKETCHES_HLL_UNION_AGG(DISTINCT sk, CAST(8 AS BIGINT))`, 
`FoldConstantRuleOnFE` intentionally skips children below DISTINCT aggregates 
and numeric casts remain `Cast`, so the valid in-range value is rejected here. 
Please normalize/evaluate the precision child or extract its checked integral 
value without requiring this concrete node type, and add a DISTINCT cast 
regression.



##
be/src/exprs/aggregate/aggregate_function_datasketches_hll_union_agg.h:
##
@@ -53,11 +53,9 @@ class ColumnDecimal;
 /// datasketches_hll_union_agg
 template 
 struct AggregateFunctionHllSketchData {
-/** We set the default LgK to 12,
-  * as this value is used as a performance baseline in the relevant 
documentation.
-  * (https://datasketches.apache.org/docs/HLL/HllPerformance.html)
-  */
-static constexpr uint8_t DEFAULT_LOG_K = 12;
+static constexpr uint8_t EMPTY_STATE_LOG_K = 12;
+static constexpr uint8_t MIN_UNION_LOG_K = 7;

Review Comment:
   [P1] Keep the one-argument cap across mixed-version partial merges
   
   One-argument input now initializes local unions with cap 12, but this 
no-configuration merge is still used by `read()` and `merge(place,rhs)`. During 
a rolling upgrade, an old BE can send a one-argument partial whose first dense 
sketch set `lgK=21`; the new BE then initializes at 21, bypassing the 
documented default cap and potentially allocating about 2 MiB per group with 
precision/memory dependent on fragment placement. Please carry the configured 
cap/version in transported state or clamp/gate legacy states before merging, 
and add a mixed-version partial-state test.



##
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/agg/DataSketchesHllUnionAgg.java:
##
@@ -24,10 +24,11 @@
 import org.apache.doris.nereids.trees.expressions.functions.Function;
 import org.apache.doris.nereids.trees.expressions.functions.FunctionTrait;
 import org.apache.doris.nereids.trees.expressions.literal.DoubleLiteral;
-import org.apache.doris.nereids.trees.expressions.shape.UnaryExpression;
+import org.apache.doris.nereids.trees.expressions.literal.IntegerLikeLiteral;
 import org.apache.doris.nereids.trees.expressions.visitor.ExpressionVisitor;
 import org.apache.doris.nereids.types.DataType;
 import org.apache.doris.nereids.types.DoubleType;
+import org.apache.doris.nereids.types.IntegerType;
 import org.apache.doris.nereids.types.StringType;
 import org.apache.doris.nereids.types.VarBinaryType;

Review Comment:
   [P1] Exclude the precision literal from DISTINCT grouping
   
   Adding `lg_max_k` as a child makes the inherited `getDistinctArguments()` 
return `{sk, 8}`. In a query such as `SELECT ... FROM t GROUP BY ROLLUP(g)` 
with `DATASKETCHES_HLL_UNION_AGG(DISTINCT sk, 8)` and `COUNT(DISTINCT sk)`, 
`AggregateUtils.distinctArgumentGroupCountUpToTwo` now sees `{sk, 8}` versus 
`{sk}`. `DistinctAggStrategySelector` then rejects the query as unsupported 
multi-distinct with grouping sets because this function lacks 
`SupportMultiDistinct`, even though both aggregates use the same row-varying 
key. Override `getDistinctArguments()` to return only the sketch argument (as 
other constant-parameter aggregates do), and add a ROLLUP regression.



-- 
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]



Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-02 Thread via GitHub


github-actions[bot] commented on code in PR #67469:
URL: https://github.com/apache/doris/pull/67469#discussion_r3921464843


##
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/agg/DataSketchesHllUnionAgg.java:
##
@@ -73,6 +90,27 @@ public void checkLegalityBeforeTypeCoercion() {
 throw new AnalysisException(getName()
 + " function's argument should be of STRING/VARCHAR/VARBINARY 
type, but was " + inputType);
 }
+if (arity() == 2
+&& (!getArgument(1).isConstant() || 
!getArgumentType(1).isIntegralType())) {
+throw new AnalysisException(getName()
++ " requires lg_max_k to be a constant integer: " + 
this.toSql());
+}
+}
+
+@Override
+public void checkLegalityAfterRewrite() {
+if (arity() == 1) {

Review Comment:
   [P1] Preserve valid constant precision expressions under DISTINCT
   
   `checkLegalityBeforeTypeCoercion` accepts any constant integral expression, 
but this post-rewrite branch narrows it to `IntegerLikeLiteral`. For 
`DATASKETCHES_HLL_UNION_AGG(DISTINCT sk, CAST(8 AS BIGINT))`, 
`FoldConstantRuleOnFE` intentionally skips children below DISTINCT aggregates 
and numeric casts remain `Cast`, so the valid in-range value is rejected here. 
Please normalize/evaluate the precision child or extract its checked integral 
value without requiring this concrete node type, and add a DISTINCT cast 
regression.



##
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/agg/DataSketchesHllUnionAgg.java:
##
@@ -39,27 +40,43 @@
 
 /** datasketches_hll_union_agg agg function. */
 public class DataSketchesHllUnionAgg extends NotNullableAggregateFunction
-implements UnaryExpression, ExplicitlyCastableSignature, 
FunctionTrait, RollUpTrait {
+implements ExplicitlyCastableSignature, FunctionTrait, RollUpTrait {
 public static final List SIGNATURES = ImmutableList.of(
 
FunctionSignature.ret(DoubleType.INSTANCE).args(StringType.INSTANCE),
 
FunctionSignature.ret(DoubleType.INSTANCE).args(VarcharType.SYSTEM_DEFAULT),
-
FunctionSignature.ret(DoubleType.INSTANCE).args(VarBinaryType.INSTANCE)
+
FunctionSignature.ret(DoubleType.INSTANCE).args(VarBinaryType.INSTANCE),

Review Comment:
   [P1] Exclude the precision literal from DISTINCT grouping
   
   Adding `lg_max_k` as a child makes the inherited `getDistinctArguments()` 
return `{sk, 8}`. In a query such as `SELECT ... FROM t GROUP BY ROLLUP(g)` 
with `DATASKETCHES_HLL_UNION_AGG(DISTINCT sk, 8)` and `COUNT(DISTINCT sk)`, 
`AggregateUtils.distinctArgumentGroupCountUpToTwo` now sees `{sk, 8}` versus 
`{sk}`. `DistinctAggStrategySelector` then rejects the query as unsupported 
multi-distinct with grouping sets because this function lacks 
`SupportMultiDistinct`, even though both aggregates use the same row-varying 
key. Override `getDistinctArguments()` to return only the sketch argument (as 
other constant-parameter aggregates do), and add a ROLLUP regression.



##
be/src/exprs/aggregate/aggregate_function_datasketches_hll_union_agg.h:
##
@@ -91,12 +84,10 @@ struct AggregateFunctionHllSketchData {
 "Internal error happened when update HLL sketch: 
unknown exception.");
 }
 }
-void reset() {
-if (hll_union_data.has_value()) {
-hll_union_data->reset();
-}
-hll_union_data.reset();

Review Comment:
   [P1] Keep the one-argument cap across mixed-version partial merges
   
   One-argument input now initializes local unions with cap 12, but this 
no-configuration merge is still used by `read()` and `merge(place,rhs)`. During 
a rolling upgrade, an old BE can send a one-argument partial whose first dense 
sketch set `lgK=21`; the new BE then initializes at 21, bypassing the 
documented default cap and potentially allocating about 2 MiB per group with 
precision/memory dependent on fragment placement. Please carry the configured 
cap/version in transported state or clamp/gate legacy states before merging, 
and add a mixed-version partial-state test.



##
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/agg/DataSketchesHllUnionAgg.java:
##
@@ -39,27 +40,43 @@
 
 /** datasketches_hll_union_agg agg function. */
 public class DataSketchesHllUnionAgg extends NotNullableAggregateFunction
-implements UnaryExpression, ExplicitlyCastableSignature, 
FunctionTrait, RollUpTrait {
+implements ExplicitlyCastableSignature, FunctionTrait, RollUpTrait {
 public static final List SIGNATURES = ImmutableList.of(
 
FunctionSignature.ret(DoubleType.INSTANCE).args(StringType.INSTANCE),
 
FunctionSignature.ret(DoubleType.INSTANCE).args(VarcharType.SYSTEM_DEFAULT),
-

Re: [PR] [fix](be) Fix DataSketches HLL union accuracy and add configurable lg… [doris]

2026-09-02 Thread via GitHub


github-actions[bot] commented on code in PR #67469:
URL: https://github.com/apache/doris/pull/67469#discussion_r3921464843


##
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/agg/DataSketchesHllUnionAgg.java:
##
@@ -73,6 +90,27 @@ public void checkLegalityBeforeTypeCoercion() {
 throw new AnalysisException(getName()
 + " function's argument should be of STRING/VARCHAR/VARBINARY 
type, but was " + inputType);
 }
+if (arity() == 2
+&& (!getArgument(1).isConstant() || 
!getArgumentType(1).isIntegralType())) {
+throw new AnalysisException(getName()
++ " requires lg_max_k to be a constant integer: " + 
this.toSql());
+}
+}
+
+@Override
+public void checkLegalityAfterRewrite() {
+if (arity() == 1) {

Review Comment:
   [P1] Preserve valid constant precision expressions under DISTINCT
   
   `checkLegalityBeforeTypeCoercion` accepts any constant integral expression, 
but this post-rewrite branch narrows it to `IntegerLikeLiteral`. For 
`DATASKETCHES_HLL_UNION_AGG(DISTINCT sk, CAST(8 AS BIGINT))`, 
`FoldConstantRuleOnFE` intentionally skips children below DISTINCT aggregates 
and numeric casts remain `Cast`, so the valid in-range value is rejected here. 
Please normalize/evaluate the precision child or extract its checked integral 
value without requiring this concrete node type, and add a DISTINCT cast 
regression.



##
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/agg/DataSketchesHllUnionAgg.java:
##
@@ -39,27 +40,43 @@
 
 /** datasketches_hll_union_agg agg function. */
 public class DataSketchesHllUnionAgg extends NotNullableAggregateFunction
-implements UnaryExpression, ExplicitlyCastableSignature, 
FunctionTrait, RollUpTrait {
+implements ExplicitlyCastableSignature, FunctionTrait, RollUpTrait {
 public static final List SIGNATURES = ImmutableList.of(
 
FunctionSignature.ret(DoubleType.INSTANCE).args(StringType.INSTANCE),
 
FunctionSignature.ret(DoubleType.INSTANCE).args(VarcharType.SYSTEM_DEFAULT),
-
FunctionSignature.ret(DoubleType.INSTANCE).args(VarBinaryType.INSTANCE)
+
FunctionSignature.ret(DoubleType.INSTANCE).args(VarBinaryType.INSTANCE),

Review Comment:
   [P1] Exclude the precision literal from DISTINCT grouping
   
   Adding `lg_max_k` as a child makes the inherited `getDistinctArguments()` 
return `{sk, 8}`. In a query such as `SELECT ... FROM t GROUP BY ROLLUP(g)` 
with `DATASKETCHES_HLL_UNION_AGG(DISTINCT sk, 8)` and `COUNT(DISTINCT sk)`, 
`AggregateUtils.distinctArgumentGroupCountUpToTwo` now sees `{sk, 8}` versus 
`{sk}`. `DistinctAggStrategySelector` then rejects the query as unsupported 
multi-distinct with grouping sets because this function lacks 
`SupportMultiDistinct`, even though both aggregates use the same row-varying 
key. Override `getDistinctArguments()` to return only the sketch argument (as 
other constant-parameter aggregates do), and add a ROLLUP regression.



##
be/src/exprs/aggregate/aggregate_function_datasketches_hll_union_agg.h:
##
@@ -91,12 +84,10 @@ struct AggregateFunctionHllSketchData {
 "Internal error happened when update HLL sketch: 
unknown exception.");
 }
 }
-void reset() {
-if (hll_union_data.has_value()) {
-hll_union_data->reset();
-}
-hll_union_data.reset();

Review Comment:
   [P1] Keep the one-argument cap across mixed-version partial merges
   
   One-argument input now initializes local unions with cap 12, but this 
no-configuration merge is still used by `read()` and `merge(place,rhs)`. During 
a rolling upgrade, an old BE can send a one-argument partial whose first dense 
sketch set `lgK=21`; the new BE then initializes at 21, bypassing the 
documented default cap and potentially allocating about 2 MiB per group with 
precision/memory dependent on fragment placement. Please carry the configured 
cap/version in transported state or clamp/gate legacy states before merging, 
and add a mixed-version partial-state test.



-- 
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]



  1   2   >