You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "liaoxin01 (via GitHub)" <gi...@apache.org> on 2026/05/28 03:30:16 UTC
[PR] [fix](load) avoid query scanner updating load counters [doris]
liaoxin01 opened a new pull request, #63781:
URL: https://github.com/apache/doris/pull/63781
### What
- Restrict scanner load quality counter updates to load scanners only.
- Prevent query-side predicate filtering from being mixed into insert/delete load counters when profile is enabled.
### Why
For DELETE statements with subquery scans, normal scan predicate filtered rows could be added to RuntimeState load counters. The OlapTableSink later uses those counters to calculate load totals, which may produce invalid values like `0/-2` and fail with `Insert has too many filtered data`.
### Test
- `git diff --check`
- `sh build-support/clang-format.sh format be/src/exec/scan/scanner.cpp` (failed: local environment has no `clang-format`)
Issue: CIR-20393
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](load) avoid query scanner updating load counters [doris]
Posted by "Copilot (via GitHub)" <gi...@apache.org>.
Copilot commented on code in PR #63781:
URL: https://github.com/apache/doris/pull/63781#discussion_r3315205172
##########
be/src/exec/scan/scanner.cpp:
##########
@@ -286,7 +286,9 @@ void Scanner::_collect_profile_before_close() {
COUNTER_UPDATE(_local_state->_scan_cpu_timer, _scan_cpu_timer);
COUNTER_UPDATE(_local_state->_rows_read_counter, _num_rows_read);
- // Update stats for load
+ if (!_is_load) return;
+ // Only load scanners can contribute to load quality counters. Query-side
+ // predicate filtering must not be mixed into insert/delete load stats.
_state->update_num_rows_load_filtered(_counter.num_rows_filtered);
_state->update_num_rows_load_unselected(_counter.num_rows_unselected);
Review Comment:
This behavior change fixes a regression-prone accounting bug in load quality counters (DELETE/INSERT with subquery scans when `enable_profile` is on), but this PR doesn’t add/adjust a regression test to lock the scenario in. Consider adding a regression test that enables profile and runs a DELETE with a subquery scan that applies scan predicates, asserting it no longer fails with filtered-row ratio errors (and/or that load counters stay non-negative).
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](load) only load source scanners update load counters [doris]
Posted by "liaoxin01 (via GitHub)" <gi...@apache.org>.
liaoxin01 commented on PR #63781:
URL: https://github.com/apache/doris/pull/63781#issuecomment-4678446534
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](load) only load source scanners update load counters [doris]
Posted by "liaoxin01 (via GitHub)" <gi...@apache.org>.
liaoxin01 commented on PR #63781:
URL: https://github.com/apache/doris/pull/63781#issuecomment-4678445889
/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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](load) only load source scanners update load counters [doris]
Posted by "liaoxin01 (via GitHub)" <gi...@apache.org>.
liaoxin01 merged PR #63781:
URL: https://github.com/apache/doris/pull/63781
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](load) only load source scanners update load counters [doris]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on code in PR #63781:
URL: https://github.com/apache/doris/pull/63781#discussion_r3394399509
##########
regression-test/suites/load_p0/insert/test_scan_filtered_rows_not_pollute_load_counter.groovy:
##########
@@ -0,0 +1,98 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+suite("test_scan_filtered_rows_not_pollute_load_counter", "p0") {
+ // Rows filtered by scan predicates of a query must not be counted as load
+ // "unselected" rows. Otherwise loadedRows reported to FE becomes negative
+ // (total 0 - unselected N) and the insert fails with errors like
+ // "Insert has too many filtered data 0/-10 insert_max_filter_ratio is 1.000000".
+ def srcTable = "test_scan_filter_load_counter_src"
+ def dstTable = "test_scan_filter_load_counter_dst"
+ def uniqTable = "test_scan_filter_load_counter_uniq"
+
+ sql """ DROP TABLE IF EXISTS ${srcTable} """
+ // Predicates on value columns of an AGGREGATE KEY table can neither be pushed
+ // down as column predicates nor as common expressions, so they are evaluated
+ // by the scanner conjuncts and counted into ScannerCounter.num_rows_unselected.
+ sql """
+ CREATE TABLE ${srcTable} (
+ k1 INT,
+ v1 INT REPLACE
+ ) AGGREGATE KEY(k1)
+ DISTRIBUTED BY HASH(k1) BUCKETS 1
+ PROPERTIES ("replication_num" = "1");
+ """
+ sql """
+ INSERT INTO ${srcTable} VALUES
+ (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10)
+ """
+
+ sql """ DROP TABLE IF EXISTS ${dstTable} """
+ sql """
+ CREATE TABLE ${dstTable} (
+ k1 INT
+ ) DUPLICATE KEY(k1)
+ DISTRIBUTED BY HASH(k1) BUCKETS 1
+ PROPERTIES ("replication_num" = "1");
+ """
+
+ sql "set enable_insert_strict=false"
+ sql "set insert_max_filter_ratio=1"
+
+ // All 10 scanned rows are filtered inside the scanner; the insert must
+ // succeed as a no-op instead of failing the filter ratio check.
+ sql """ INSERT INTO ${dstTable} SELECT k1 FROM ${srcTable} WHERE v1 > 1000 """
+ qt_insert_empty "select count(*) from ${dstTable}"
+
+ // Same with profile enabled, which was the original trigger of this issue.
+ sql "set enable_profile=true"
+ sql """ INSERT INTO ${dstTable} SELECT k1 FROM ${srcTable} WHERE v1 > 1000 """
+ qt_insert_empty_profile "select count(*) from ${dstTable}"
+ sql "set enable_profile=false"
+
+ // DELETE ... WHERE EXISTS executes through the insert path (delete sign).
+ // A no-op delete whose source scan filters out all rows must succeed.
+ sql """ DROP TABLE IF EXISTS ${uniqTable} """
+ sql """
+ CREATE TABLE ${uniqTable} (
+ k1 INT,
+ v1 INT
+ ) UNIQUE KEY(k1)
+ DISTRIBUTED BY HASH(k1) BUCKETS 1
+ PROPERTIES ("replication_num" = "1");
+ """
+ sql """ INSERT INTO ${uniqTable} VALUES (1,1),(2,2),(3,3) """
+ sql """
+ DELETE FROM ${uniqTable} t WHERE EXISTS (
+ SELECT 1 FROM ${srcTable} s WHERE s.k1 = t.k1 AND s.v1 > 1000
+ )
+ """
+ qt_delete_noop "select count(*) from ${uniqTable}"
+
+ // UPDATE also executes through the insert path; a no-op update whose
+ // subquery scan filters out all rows must succeed.
+ sql """
+ UPDATE ${uniqTable} SET v1 = 100 WHERE k1 IN (
+ SELECT k1 FROM ${srcTable} WHERE v1 > 1000
+ )
+ """
+ qt_update_noop "select * from ${uniqTable} order by k1"
+
+ sql """ DROP TABLE IF EXISTS ${srcTable} """
Review Comment:
Doris regression tests should drop tables before setup but leave them after completion so a failed run can be inspected. This suite already drops all three tables before creating them, so these final drops remove the debugging state and violate the regression-test standard. Please remove the end-of-suite cleanup drops.
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](load) only load source scanners update load counters [doris]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on code in PR #63781:
URL: https://github.com/apache/doris/pull/63781#discussion_r3417645871
##########
regression-test/data/load_p0/insert/test_scan_filtered_rows_not_pollute_load_counter.out:
##########
@@ -0,0 +1,15 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !insert_empty --
+0
+
+-- !insert_empty_profile --
+0
+
+-- !delete_noop --
+3
+
+-- !update_noop --
+1 1
+2 2
+3 3
+
Review Comment:
`git diff --check` reports this generated result file as `new blank line at EOF`. Please regenerate or trim the trailing empty line so the patch passes the repository whitespace check.
##########
regression-test/suites/load_p0/insert/test_scan_filtered_rows_not_pollute_load_counter.groovy:
##########
@@ -0,0 +1,94 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+suite("test_scan_filtered_rows_not_pollute_load_counter", "p0") {
+ // Rows filtered by scan predicates of a query must not be counted as load
+ // "unselected" rows. Otherwise loadedRows reported to FE becomes negative
+ // (total 0 - unselected N) and the insert fails with errors like
+ // "Insert has too many filtered data 0/-10 insert_max_filter_ratio is 1.000000".
Review Comment:
The regression-test standard in `AGENTS.md` says ordinary simple test tables should not use `def tableName` indirection; the table names should be hardcoded in the SQL. This suite uses variables for all three ordinary tables, which makes the new test inconsistent with that rule. Please inline the literal table names throughout the SQL statements.
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](load) only load source scanners update load counters [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #63781:
URL: https://github.com/apache/doris/pull/63781#issuecomment-4679506831
# BE UT Coverage Report
Increment line coverage `0.00% (0/12)` :tada:
[Increment coverage report](http://coverage.selectdb-in.cc/coverage/b4f208d2ee451c83786597f3748b6e7a1b8f6b29_b4f208d2ee451c83786597f3748b6e7a1b8f6b29/increment_report/index.html)
[Complete coverage report](http://coverage.selectdb-in.cc/coverage/b4f208d2ee451c83786597f3748b6e7a1b8f6b29_b4f208d2ee451c83786597f3748b6e7a1b8f6b29/report/index.html)
| Category | Coverage |
|-------------------|--------------------|
| Function Coverage | 53.91% (21116/39171) |
| Line Coverage | 37.63% (201361/535150) |
| Region Coverage | 33.63% (157776/469128) |
| Branch Coverage | 34.71% (69155/199223) |
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](load) avoid query scanner updating load counters [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #63781:
URL: https://github.com/apache/doris/pull/63781#issuecomment-4560615482
Thank you for your contribution to Apache Doris.
Don't know what should be done next? See [How to process your PR](https://cwiki.apache.org/confluence/display/DORIS/How+to+process+your+PR).
Please clearly describe your PR:
1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
3. What features were added. Why was this function added?
4. Which code was refactored and why was this part of the code refactored?
5. Which functions were optimized and what is the difference before and after the optimization?
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](load) only load source scanners update load counters [doris]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #63781:
URL: https://github.com/apache/doris/pull/63781#issuecomment-4797071137
PR approved by at least one committer and no changes requested.
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](load) avoid query scanner updating load counters [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #63781:
URL: https://github.com/apache/doris/pull/63781#issuecomment-4570029239
<details>
<summary>TPC-DS: <b>Total hot run time: 173476 ms</b></summary>
```
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit 3b09c7607eaad3d8e7fa7bc922df315d9faa71e1, data reload: false
query5 4352 689 509 509
query6 338 237 200 200
query7 4220 593 317 317
query8 335 238 224 224
query9 8846 4082 4096 4082
query10 458 355 298 298
query11 5806 2638 2222 2222
query12 193 129 130 129
query13 1315 608 430 430
query14 6279 5541 5252 5252
query14_1 4563 4590 4520 4520
query15 216 206 180 180
query16 994 460 381 381
query17 1062 740 599 599
query18 2521 496 360 360
query19 216 205 159 159
query20 138 143 129 129
query21 217 148 122 122
query22 13746 13681 13427 13427
query23 17360 16700 16258 16258
query23_1 16372 16381 16420 16381
query24 7495 1842 1349 1349
query24_1 1346 1347 1338 1338
query25 592 533 454 454
query26 1309 327 180 180
query27 2677 556 361 361
query28 4474 2045 1997 1997
query29 1039 623 522 522
query30 305 248 196 196
query31 1151 1090 968 968
query32 87 76 77 76
query33 564 383 293 293
query34 1183 1176 653 653
query35 823 832 715 715
query36 1374 1420 1202 1202
query37 159 106 91 91
query38 3259 3242 3145 3145
query39 926 903 919 903
query39_1 882 868 866 866
query40 232 146 126 126
query41 63 63 62 62
query42 116 110 111 110
query43 343 350 307 307
query44
query45 218 207 195 195
query46 1104 1243 775 775
query47 2339 2341 2215 2215
query48 418 433 310 310
query49 665 518 403 403
query50 955 362 263 263
query51 4404 4356 4308 4308
query52 112 117 101 101
query53 254 285 208 208
query54 317 275 262 262
query55 95 91 86 86
query56 306 322 305 305
query57 1430 1407 1287 1287
query58 304 280 279 279
query59 1679 1738 1514 1514
query60 329 328 314 314
query61 163 160 184 160
query62 709 679 579 579
query63 246 203 212 203
query64 2446 816 648 648
query65
query66 1750 520 365 365
query67 29217 29795 29669 29669
query68
query69 478 345 313 313
query70 1053 1074 1030 1030
query71 307 279 274 274
query72 3003 2773 2554 2554
query73 836 832 460 460
query74 5139 4985 4903 4903
query75 2816 2669 2296 2296
query76 2276 1224 804 804
query77 431 437 358 358
query78 12472 12517 11910 11910
query79 1319 1028 752 752
query80 630 601 488 488
query81 457 291 243 243
query82 245 162 126 126
query83 295 289 263 263
query84 273 148 121 121
query85 936 648 548 548
query86 391 335 334 334
query87 3469 3440 3295 3295
query88 3721 2780 2746 2746
query89 432 402 346 346
query90 2167 194 202 194
query91 182 170 143 143
query92 83 83 82 82
query93 1406 1442 856 856
query94 556 346 290 290
query95 678 395 353 353
query96 1112 801 362 362
query97 2711 2751 2576 2576
query98 238 233 228 228
query99 1158 1143 1033 1033
Total cold run time: 253645 ms
Total hot run time: 173476 ms
```
</details>
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](load) avoid query scanner updating load counters [doris]
Posted by "liaoxin01 (via GitHub)" <gi...@apache.org>.
liaoxin01 commented on PR #63781:
URL: https://github.com/apache/doris/pull/63781#issuecomment-4569920525
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](load) only load source scanners update load counters [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #63781:
URL: https://github.com/apache/doris/pull/63781#issuecomment-4678990802
<details>
<summary>TPC-DS: <b>Total hot run time: 168341 ms</b></summary>
```
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit be4389bbea27cfc015db33774d14c179d3f1eea9, data reload: false
query5 4331 599 486 486
query6 447 188 194 188
query7 4828 533 299 299
query8 362 208 188 188
query9 8718 3994 3999 3994
query10 443 320 266 266
query11 5904 2343 2138 2138
query12 158 102 98 98
query13 1275 583 436 436
query14 6336 5389 5001 5001
query14_1 4335 4314 4336 4314
query15 204 194 173 173
query16 1020 443 427 427
query17 1112 677 549 549
query18 2442 452 326 326
query19 190 179 136 136
query20 110 103 104 103
query21 218 134 115 115
query22 13528 13573 13445 13445
query23 17361 16435 16050 16050
query23_1 16278 16313 16204 16204
query24 7508 1754 1303 1303
query24_1 1312 1302 1308 1302
query25 536 426 379 379
query26 1294 314 174 174
query27 2678 563 345 345
query28 4433 2038 2006 2006
query29 1091 615 500 500
query30 310 242 198 198
query31 1132 1092 960 960
query32 115 64 60 60
query33 553 346 242 242
query34 1164 1128 658 658
query35 753 769 692 692
query36 1406 1386 1252 1252
query37 150 96 85 85
query38 3217 3136 3041 3041
query39 934 907 896 896
query39_1 866 861 850 850
query40 218 118 98 98
query41 63 60 60 60
query42 93 93 93 93
query43 320 323 284 284
query44
query45 197 181 176 176
query46 1033 1184 758 758
query47 2330 2371 2256 2256
query48 391 418 289 289
query49 617 462 352 352
query50 976 349 247 247
query51 4317 4233 4258 4233
query52 88 90 79 79
query53 242 269 189 189
query54 287 212 190 190
query55 76 73 68 68
query56 232 228 203 203
query57 1436 1408 1333 1333
query58 249 211 213 211
query59 1547 1627 1414 1414
query60 269 243 231 231
query61 152 151 149 149
query62 702 643 593 593
query63 220 187 186 186
query64 2533 763 626 626
query65
query66 1802 457 344 344
query67 29677 29704 29420 29420
query68
query69 429 299 259 259
query70 951 935 961 935
query71 307 219 208 208
query72 2958 2593 2295 2295
query73 882 829 469 469
query74 5177 4988 4742 4742
query75 2618 2563 2229 2229
query76 2348 1133 768 768
query77 341 392 283 283
query78 12391 12417 11959 11959
query79 1255 1051 768 768
query80 570 503 417 417
query81 452 284 243 243
query82 240 160 121 121
query83 276 283 253 253
query84
query85 837 492 408 408
query86 318 290 275 275
query87 3339 3336 3173 3173
query88 3586 2738 2723 2723
query89 413 374 330 330
query90 2179 180 174 174
query91 167 163 135 135
query92 59 62 57 57
query93 1477 1438 853 853
query94 529 349 267 267
query95 668 460 332 332
query96 1008 812 387 387
query97 2668 2680 2552 2552
query98 209 204 197 197
query99 1155 1182 1013 1013
Total cold run time: 249323 ms
Total hot run time: 168341 ms
```
</details>
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](load) only load source scanners update load counters [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #63781:
URL: https://github.com/apache/doris/pull/63781#issuecomment-4678905126
<details>
<summary>TPC-H: <b>Total hot run time: 29485 ms</b></summary>
```
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit be4389bbea27cfc015db33774d14c179d3f1eea9, data reload: false
------ Round 1 ----------------------------------
orders Doris NULL NULL 0 0 0 NULL 0 NULL NULL 2023-12-26 18:27:23 2023-12-26 18:42:55 NULL utf-8 NULL NULL
============================================
q1 17616 4130 4122 4122
q2 q3 10784 1388 832 832
q4 4676 475 350 350
q5 7536 911 568 568
q6 182 176 141 141
q7 771 844 622 622
q8 9330 1526 1486 1486
q9 5891 4531 4503 4503
q10 6773 1808 1519 1519
q11 425 269 249 249
q12 632 430 290 290
q13 18110 3383 2783 2783
q14 270 257 239 239
q15 q16 826 767 706 706
q17 898 952 974 952
q18 6851 5769 5647 5647
q19 1346 1270 1169 1169
q20 507 403 255 255
q21 6355 2809 2747 2747
q22 464 367 305 305
Total cold run time: 100243 ms
Total hot run time: 29485 ms
----- Round 2, with runtime_filter_mode=off -----
orders Doris NULL NULL 150000000 42 6422171781 NULL 22778155 NULL NULL 2023-12-26 18:27:23 2023-12-26 18:42:55 NULL utf-8 NULL NULL
============================================
q1 5153 4735 4716 4716
q2 q3 4881 5173 4738 4738
q4 2122 2187 1401 1401
q5 4828 4800 4713 4713
q6 245 183 129 129
q7 1900 1705 1538 1538
q8 2471 2092 2073 2073
q9 8012 7810 7420 7420
q10 4722 4687 4217 4217
q11 536 386 348 348
q12 723 794 528 528
q13 2981 3361 2828 2828
q14 281 293 246 246
q15 q16 674 696 613 613
q17 1264 1253 1263 1253
q18 7246 6939 6641 6641
q19 1142 1072 1104 1072
q20 2226 2204 1985 1985
q21 5237 4550 4384 4384
q22 523 442 397 397
Total cold run time: 57167 ms
Total hot run time: 51240 ms
```
</details>
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](load) only load source scanners update load counters [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #63781:
URL: https://github.com/apache/doris/pull/63781#issuecomment-4680065870
# BE Regression && UT Coverage Report
Increment line coverage `100.00% (12/12)` :tada:
[Increment coverage report](http://coverage.selectdb-in.cc/coverage/63781_be4389bbea27cfc015db33774d14c179d3f1eea9_merge/increment_report/index.html)
[Complete coverage report](http://coverage.selectdb-in.cc/coverage/63781_be4389bbea27cfc015db33774d14c179d3f1eea9_merge/report/index.html)
| Category | Coverage |
|-------------------|--------------------|
| Function Coverage | 73.88% (28264/38258) |
| Line Coverage | 57.83% (307675/532031) |
| Region Coverage | 54.66% (257590/471295) |
| Branch Coverage | 56.02% (111752/199486) |
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](load) avoid query scanner updating load counters [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #63781:
URL: https://github.com/apache/doris/pull/63781#issuecomment-4570340655
# BE UT Coverage Report
Increment line coverage `0.00% (0/1)` :tada:
[Increment coverage report](http://coverage.selectdb-in.cc/coverage/3b09c7607eaad3d8e7fa7bc922df315d9faa71e1_3b09c7607eaad3d8e7fa7bc922df315d9faa71e1/increment_report/index.html)
[Complete coverage report](http://coverage.selectdb-in.cc/coverage/3b09c7607eaad3d8e7fa7bc922df315d9faa71e1_3b09c7607eaad3d8e7fa7bc922df315d9faa71e1/report/index.html)
| Category | Coverage |
|-------------------|--------------------|
| Function Coverage | 53.99% (20982/38863) |
| Line Coverage | 37.55% (198950/529853) |
| Region Coverage | 33.83% (155935/460884) |
| Branch Coverage | 34.84% (67915/194936) |
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](load) only load source scanners update load counters [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #63781:
URL: https://github.com/apache/doris/pull/63781#issuecomment-4678796425
<details>
<summary>TPC-H: <b>Total hot run time: 29794 ms</b></summary>
```
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit b4f208d2ee451c83786597f3748b6e7a1b8f6b29, data reload: false
------ Round 1 ----------------------------------
orders Doris NULL NULL 0 0 0 NULL 0 NULL NULL 2023-12-26 18:27:23 2023-12-26 18:42:55 NULL utf-8 NULL NULL
============================================
q1 17624 4312 4238 4238
q2 q3 10736 1426 862 862
q4 4694 487 356 356
q5 7582 872 593 593
q6 183 184 146 146
q7 785 828 620 620
q8 9613 1531 1618 1531
q9 6622 4528 4521 4521
q10 6820 1872 1547 1547
q11 438 275 253 253
q12 667 441 300 300
q13 18156 3567 2751 2751
q14 282 277 258 258
q15 q16 833 786 720 720
q17 966 901 977 901
q18 7070 5899 5745 5745
q19 1285 1227 1109 1109
q20 510 401 255 255
q21 6186 2803 2742 2742
q22 471 390 346 346
Total cold run time: 101523 ms
Total hot run time: 29794 ms
----- Round 2, with runtime_filter_mode=off -----
orders Doris NULL NULL 150000000 42 6422171781 NULL 22778155 NULL NULL 2023-12-26 18:27:23 2023-12-26 18:42:55 NULL utf-8 NULL NULL
============================================
q1 5195 5116 5091 5091
q2 q3 5059 5360 4695 4695
q4 2413 2489 1618 1618
q5 5061 5175 4991 4991
q6 262 187 135 135
q7 2036 1882 1734 1734
q8 2793 2398 2126 2126
q9 7675 7719 7670 7670
q10 4945 4814 4318 4318
q11 594 437 395 395
q12 816 796 587 587
q13 3058 3396 2851 2851
q14 276 293 270 270
q15 q16 708 738 651 651
q17 1332 1302 1295 1295
q18 7754 7160 7074 7074
q19 1096 1096 1105 1096
q20 2282 2273 1998 1998
q21 5731 4941 4743 4743
q22 546 494 447 447
Total cold run time: 59632 ms
Total hot run time: 53785 ms
```
</details>
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](load) only load source scanners update load counters [doris]
Posted by "liaoxin01 (via GitHub)" <gi...@apache.org>.
liaoxin01 commented on PR #63781:
URL: https://github.com/apache/doris/pull/63781#issuecomment-4714071356
/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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](load) avoid query scanner updating load counters [doris]
Posted by "liaoxin01 (via GitHub)" <gi...@apache.org>.
liaoxin01 commented on PR #63781:
URL: https://github.com/apache/doris/pull/63781#issuecomment-4569873037
/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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](load) avoid query scanner updating load counters [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #63781:
URL: https://github.com/apache/doris/pull/63781#issuecomment-4569988771
<details>
<summary>TPC-H: <b>Total hot run time: 31896 ms</b></summary>
```
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 3b09c7607eaad3d8e7fa7bc922df315d9faa71e1, data reload: false
------ Round 1 ----------------------------------
orders Doris NULL NULL 0 0 0 NULL 0 NULL NULL 2023-12-26 18:27:23 2023-12-26 18:42:55 NULL utf-8 NULL NULL
============================================
q1 17848 4295 4176 4176
q2 q3 10752 1388 825 825
q4 4685 479 354 354
q5 7702 2296 2104 2104
q6 238 183 139 139
q7 985 789 637 637
q8 9353 1688 1604 1604
q9 5205 4960 4958 4958
q10 6386 2224 1878 1878
q11 431 277 246 246
q12 632 424 296 296
q13 18118 3431 2746 2746
q14 271 261 246 246
q15 q16 818 776 709 709
q17 938 975 971 971
q18 6999 5792 5530 5530
q19 1345 1356 1236 1236
q20 547 435 314 314
q21 6193 2878 2595 2595
q22 460 372 332 332
Total cold run time: 99906 ms
Total hot run time: 31896 ms
----- Round 2, with runtime_filter_mode=off -----
orders Doris NULL NULL 150000000 42 6422171781 NULL 22778155 NULL NULL 2023-12-26 18:27:23 2023-12-26 18:42:55 NULL utf-8 NULL NULL
============================================
q1 5100 4974 4963 4963
q2 q3 4921 5377 4559 4559
q4 2134 2209 1365 1365
q5 4980 4727 4744 4727
q6 229 185 135 135
q7 1877 1739 1636 1636
q8 2476 2210 2207 2207
q9 7879 7450 7404 7404
q10 4786 4692 4291 4291
q11 531 404 382 382
q12 714 736 538 538
q13 3084 3370 2829 2829
q14 279 272 265 265
q15 q16 685 705 613 613
q17 1288 1259 1255 1255
q18 7314 6899 6849 6849
q19 1101 1100 1086 1086
q20 2236 2228 1963 1963
q21 5301 4731 4580 4580
q22 538 492 411 411
Total cold run time: 57453 ms
Total hot run time: 52058 ms
```
</details>
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](load) only load source scanners update load counters [doris]
Posted by "liaoxin01 (via GitHub)" <gi...@apache.org>.
liaoxin01 commented on PR #63781:
URL: https://github.com/apache/doris/pull/63781#issuecomment-4678687469
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](load) only load source scanners update load counters [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #63781:
URL: https://github.com/apache/doris/pull/63781#issuecomment-4678879964
<details>
<summary>TPC-DS: <b>Total hot run time: 171572 ms</b></summary>
```
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit b4f208d2ee451c83786597f3748b6e7a1b8f6b29, data reload: false
query5 4325 649 511 511
query6 436 193 172 172
query7 4815 517 309 309
query8 368 214 205 205
query9 8756 4094 4077 4077
query10 450 313 262 262
query11 5927 2405 2205 2205
query12 163 101 99 99
query13 1260 620 420 420
query14 6526 5886 5399 5399
query14_1 4752 4731 4685 4685
query15 207 205 180 180
query16 1049 480 430 430
query17 1091 701 563 563
query18 2426 470 336 336
query19 193 178 137 137
query20 110 110 104 104
query21 211 141 115 115
query22 13570 13713 13418 13418
query23 17580 16639 16237 16237
query23_1 16319 16470 16372 16372
query24 7573 1779 1335 1335
query24_1 1332 1329 1368 1329
query25 607 459 392 392
query26 1319 332 167 167
query27 2713 562 346 346
query28 4469 2038 2027 2027
query29 1070 664 492 492
query30 319 240 205 205
query31 1134 1101 979 979
query32 101 64 68 64
query33 568 342 258 258
query34 1166 1147 654 654
query35 818 835 739 739
query36 1372 1404 1215 1215
query37 154 114 93 93
query38 3245 3173 3095 3095
query39 933 922 893 893
query39_1 882 881 877 877
query40 232 125 108 108
query41 70 66 69 66
query42 99 97 95 95
query43 344 361 299 299
query44
query45 203 191 187 187
query46 1108 1195 760 760
query47 2397 2374 2304 2304
query48 408 423 285 285
query49 622 476 358 358
query50 1046 348 251 251
query51 4418 4362 4209 4209
query52 86 88 77 77
query53 241 279 190 190
query54 260 215 192 192
query55 80 78 68 68
query56 235 224 208 208
query57 1420 1397 1326 1326
query58 261 219 218 218
query59 1599 1695 1467 1467
query60 283 238 228 228
query61 155 152 142 142
query62 705 652 591 591
query63 242 183 184 183
query64 2524 763 594 594
query65
query66 1775 446 347 347
query67 29745 29860 29600 29600
query68
query69 416 313 268 268
query70 980 933 963 933
query71 292 217 205 205
query72 2959 2634 2331 2331
query73 852 761 439 439
query74 5115 4998 4810 4810
query75 2684 2578 2221 2221
query76 2295 1238 788 788
query77 370 397 289 289
query78 12539 12425 11892 11892
query79 1424 1028 737 737
query80 578 473 392 392
query81 460 299 246 246
query82 579 163 129 129
query83 359 281 251 251
query84
query85 834 522 444 444
query86 373 318 298 298
query87 3425 3372 3226 3226
query88 3661 2750 2760 2750
query89 434 392 333 333
query90 1841 181 187 181
query91 173 159 136 136
query92 67 61 60 60
query93 1488 1470 860 860
query94 542 353 308 308
query95 663 388 350 350
query96 1080 847 346 346
query97 2756 2710 2591 2591
query98 218 208 210 208
query99 1165 1183 1014 1014
Total cold run time: 251936 ms
Total hot run time: 171572 ms
```
</details>
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org