[feat](dynamic table) support table stream part 4: support snapshot read
What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
Release note
None
Check List (For Author)
-
Test
- [x] Regression test
- [x] Unit Test
- [ ] Manual test (add detailed scripts or steps below)
- [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
- [ ] Previous test can cover this change.
- [ ] No code files have been changed.
- [ ] Other reason
-
Behavior changed:
- [ ] No.
- [x] Yes.
-
Does this need documentation?
- [ ] No.
- [ ] Yes.
Check List (For Reviewer who merge this PR)
- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label
Thank you for your contribution to Apache Doris. Don't know what should be done next? See How to process your PR.
Please clearly describe your PR:
- What problem was fixed (it's best to include specific error reporting information). How it was fixed.
- Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
- What features were added. Why was this function added?
- Which code was refactored and why was this part of the code refactored?
- Which functions were optimized and what is the difference before and after the optimization?
run buildall
FE UT Coverage Report
Increment line coverage 47.15% (174/369) :tada:
Increment coverage report
Complete coverage report
TPC-H: Total hot run time: 29442 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 6ea0bc72744b9578537904a646124f14d1a6644b, data reload: false
------ Round 1 ----------------------------------
============================================
q1 17608 4059 4212 4059
q2 2111 309 190 190
q3 10242 1427 817 817
q4 4696 474 350 350
q5 7520 854 579 579
q6 182 166 140 140
q7 778 830 626 626
q8 9332 1639 1588 1588
q9 5667 4565 4567 4565
q10 6778 1800 1538 1538
q11 445 270 243 243
q12 633 424 289 289
q13 18057 3499 2787 2787
q14 269 266 238 238
q15 q16 788 776 703 703
q17 1039 946 950 946
q18 7495 5902 5639 5639
q19 1179 1217 1074 1074
q20 500 416 268 268
q21 5704 2684 2496 2496
q22 443 363 307 307
Total cold run time: 101466 ms
Total hot run time: 29442 ms
----- Round 2, with runtime_filter_mode=off -----
============================================
q1 4387 4290 4302 4290
q2 311 356 217 217
q3 4620 4984 4413 4413
q4 2075 2182 1367 1367
q5 4452 4323 4329 4323
q6 234 175 127 127
q7 1728 1934 1849 1849
q8 2544 2220 2195 2195
q9 8342 8354 8130 8130
q10 4808 4800 4303 4303
q11 572 466 400 400
q12 746 768 543 543
q13 3320 3645 3008 3008
q14 306 303 284 284
q15 q16 730 731 649 649
q17 1355 1343 1465 1343
q18 7763 7295 7235 7235
q19 1156 1143 1085 1085
q20 2241 2223 1956 1956
q21 5295 4613 4486 4486
q22 520 489 399 399
Total cold run time: 57505 ms
Total hot run time: 52602 ms
TPC-DS: Total hot run time: 173308 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 6ea0bc72744b9578537904a646124f14d1a6644b, data reload: false
query5 4329 658 483 483
query6 429 210 177 177
query7 4835 565 308 308
query8 373 212 195 195
query9 8786 4060 4085 4060
query10 437 313 265 265
query11 5865 2271 2116 2116
query12 154 100 95 95
query13 1239 590 407 407
query14 6349 5411 5110 5110
query14_1 4385 4360 4349 4349
query15 200 196 176 176
query16 991 473 420 420
query17 918 696 554 554
query18 2415 473 340 340
query19 209 185 146 146
query20 116 110 105 105
query21 220 145 116 116
query22 13564 13552 13371 13371
query23 17374 16516 16219 16219
query23_1 16224 16259 16342 16259
query24 7754 1807 1329 1329
query24_1 1323 1319 1330 1319
query25 594 459 402 402
query26 1324 307 172 172
query27 2693 559 349 349
query28 4494 2056 1997 1997
query29 1129 624 505 505
query30 318 239 198 198
query31 1112 1067 966 966
query32 118 66 65 65
query33 548 313 268 268
query34 1169 1139 647 647
query35 756 802 705 705
query36 1387 1377 1191 1191
query37 161 109 94 94
query38 1897 1752 1690 1690
query39 924 904 886 886
query39_1 908 878 882 878
query40 221 126 107 107
query41 75 69 66 66
query42 91 88 86 86
query43 320 329 289 289
query44 1438 761 788 761
query45 203 191 182 182
query46 1096 1205 748 748
query47 2367 2334 2240 2240
query48 402 433 277 277
query49 638 477 354 354
query50 1019 364 275 275
query51 4406 4364 4359 4359
query52 82 82 72 72
query53 262 286 207 207
query54 280 230 217 217
query55 74 74 66 66
query56 249 239 226 226
query57 1467 1431 1359 1359
query58 241 213 205 205
query59 1619 1682 1500 1500
query60 279 244 223 223
query61 147 148 147 147
query62 701 630 572 572
query63 230 187 193 187
query64 2520 758 589 589
query65 4882 4813 4797 4797
query66 1786 458 346 346
query67 29790 29679 29567 29567
query68 3083 1520 898 898
query69 397 314 266 266
query70 1050 938 966 938
query71 293 229 216 216
query72 2912 2708 2202 2202
query73 820 714 448 448
query74 5161 4964 4781 4781
query75 2619 2613 2216 2216
query76 2320 1224 806 806
query77 357 374 290 290
query78 12490 12317 11913 11913
query79 1436 1115 762 762
query80 1279 470 381 381
query81 537 285 239 239
query82 655 157 118 118
query83 357 273 251 251
query84 320 179 112 112
query85 994 516 413 413
query86 429 312 288 288
query87 1843 1837 1772 1772
query88 3703 2771 2774 2771
query89 437 385 329 329
query90 1915 189 192 189
query91 176 158 129 129
query92 66 62 57 57
query93 1621 1476 892 892
query94 720 353 304 304
query95 684 365 444 365
query96 1014 745 370 370
query97 2655 2692 2608 2608
query98 215 205 199 199
query99 1198 1149 1027 1027
Total cold run time: 258973 ms
Total hot run time: 173308 ms
ClickBench: Total hot run time: 25.14 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit 6ea0bc72744b9578537904a646124f14d1a6644b, data reload: false
query1 0.00 0.00 0.01
query2 0.10 0.05 0.05
query3 0.25 0.14 0.14
query4 1.61 0.14 0.13
query5 0.25 0.24 0.22
query6 1.28 1.09 1.05
query7 0.04 0.00 0.00
query8 0.08 0.04 0.03
query9 0.38 0.31 0.30
query10 0.55 0.54 0.56
query11 0.21 0.15 0.13
query12 0.18 0.14 0.14
query13 0.47 0.47 0.48
query14 1.02 1.01 1.00
query15 0.61 0.60 0.61
query16 0.30 0.31 0.34
query17 1.07 1.11 1.06
query18 0.23 0.21 0.21
query19 1.99 1.97 1.97
query20 0.02 0.01 0.01
query21 15.54 0.24 0.14
query22 4.64 0.05 0.05
query23 16.13 0.31 0.12
query24 3.08 0.44 0.33
query25 0.11 0.06 0.04
query26 0.73 0.21 0.16
query27 0.04 0.04 0.04
query28 3.54 0.90 0.54
query29 12.48 4.27 3.45
query30 0.26 0.15 0.16
query31 2.78 0.59 0.31
query32 3.22 0.61 0.49
query33 3.16 3.34 3.21
query34 15.70 4.20 3.49
query35 3.55 3.47 3.53
query36 0.55 0.41 0.42
query37 0.09 0.07 0.06
query38 0.05 0.04 0.04
query39 0.04 0.03 0.03
query40 0.18 0.17 0.16
query41 0.09 0.03 0.04
query42 0.04 0.03 0.03
query43 0.05 0.04 0.03
Total cold run time: 96.69 s
Total hot run time: 25.14 s
BE UT Coverage Report
Increment line coverage 63.46% (66/104) :tada:
Increment coverage report Complete coverage report
| Category | Coverage |
|---|---|
| Function Coverage | 54.51% (21413/39286) |
| Line Coverage | 38.00% (204176/537267) |
| Region Coverage | 34.00% (160217/471166) |
| Branch Coverage | 34.98% (70119/200448) |
FE Regression Coverage Report
Increment line coverage 41.94% (182/434) :tada:
Increment coverage report
Complete coverage report
run buildall
FE UT Coverage Report
Increment line coverage 51.65% (235/455) :tada:
Increment coverage report
Complete coverage report
TPC-H: Total hot run time: 29321 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 163edc9f508b0c2c6640cf303fdaeef45781f0cb, data reload: false
------ Round 1 ----------------------------------
============================================
q1 17625 4082 3958 3958
q2 2001 329 190 190
q3 10379 1458 854 854
q4 4681 471 338 338
q5 7518 871 564 564
q6 185 172 138 138
q7 802 848 627 627
q8 9345 1612 1646 1612
q9 5608 4544 4503 4503
q10 6678 1795 1538 1538
q11 451 277 255 255
q12 638 426 300 300
q13 18158 3429 2750 2750
q14 268 262 245 245
q15 q16 792 784 716 716
q17 945 992 953 953
q18 6843 5815 5589 5589
q19 1213 1354 1139 1139
q20 468 413 268 268
q21 5624 2647 2481 2481
q22 446 364 303 303
Total cold run time: 100668 ms
Total hot run time: 29321 ms
----- Round 2, with runtime_filter_mode=off -----
============================================
q1 4347 4262 4272 4262
q2 316 351 225 225
q3 4617 4977 4398 4398
q4 2054 2115 1394 1394
q5 4429 4314 4297 4297
q6 238 179 131 131
q7 1708 1640 1782 1640
q8 2691 2194 2245 2194
q9 8308 8490 8276 8276
q10 4909 4730 4309 4309
q11 577 419 385 385
q12 749 752 559 559
q13 3284 3584 2899 2899
q14 305 296 256 256
q15 q16 714 721 625 625
q17 1344 1306 1334 1306
q18 7896 7359 7386 7359
q19 1207 1150 1128 1128
q20 2224 2254 1997 1997
q21 5258 4560 4442 4442
q22 539 459 407 407
Total cold run time: 57714 ms
Total hot run time: 52489 ms
TPC-DS: Total hot run time: 172138 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 163edc9f508b0c2c6640cf303fdaeef45781f0cb, data reload: false
query5 4317 621 461 461
query6 454 189 171 171
query7 4798 576 313 313
query8 332 186 168 168
query9 8750 4028 4065 4028
query10 461 316 252 252
query11 5895 2384 2149 2149
query12 165 103 100 100
query13 1285 611 460 460
query14 6471 5298 4948 4948
query14_1 4287 4250 4296 4250
query15 216 201 182 182
query16 1031 471 425 425
query17 1111 695 564 564
query18 2642 460 331 331
query19 196 180 140 140
query20 113 105 101 101
query21 216 141 123 123
query22 13614 13577 13319 13319
query23 17491 16549 16150 16150
query23_1 16307 16251 16333 16251
query24 7459 1776 1313 1313
query24_1 1325 1314 1303 1303
query25 593 453 371 371
query26 1299 311 173 173
query27 2652 586 345 345
query28 4417 2035 1994 1994
query29 1060 612 476 476
query30 301 233 195 195
query31 1115 1072 938 938
query32 102 62 61 61
query33 508 307 254 254
query34 1200 1259 647 647
query35 767 759 671 671
query36 1365 1380 1237 1237
query37 151 108 91 91
query38 1885 1714 1666 1666
query39 926 922 903 903
query39_1 879 889 891 889
query40 218 127 100 100
query41 66 63 66 63
query42 91 86 87 86
query43 329 333 288 288
query44 1445 769 759 759
query45 213 191 181 181
query46 1073 1255 732 732
query47 2359 2358 2181 2181
query48 381 427 284 284
query49 584 444 315 315
query50 1022 367 264 264
query51 4431 4408 4428 4408
query52 86 84 73 73
query53 257 276 198 198
query54 292 263 225 225
query55 79 73 68 68
query56 244 241 231 231
query57 1433 1416 1327 1327
query58 258 220 218 218
query59 1676 1638 1457 1457
query60 309 258 229 229
query61 179 177 177 177
query62 700 658 589 589
query63 238 202 200 200
query64 2527 817 649 649
query65 4876 4791 4811 4791
query66 1761 500 349 349
query67 28853 28788 28682 28682
query68 3405 1550 995 995
query69 415 304 280 280
query70 1073 974 970 970
query71 303 249 213 213
query72 3105 2667 2312 2312
query73 817 754 437 437
query74 5116 4954 4793 4793
query75 2586 2532 2163 2163
query76 2303 1195 835 835
query77 341 372 292 292
query78 12260 12402 11757 11757
query79 1518 1157 791 791
query80 1269 476 376 376
query81 520 290 234 234
query82 634 154 127 127
query83 347 271 250 250
query84 259 145 113 113
query85 944 525 411 411
query86 445 309 292 292
query87 1842 1840 1784 1784
query88 3770 2781 2752 2752
query89 434 400 329 329
query90 1886 184 187 184
query91 176 166 135 135
query92 69 62 53 53
query93 1651 1489 898 898
query94 705 347 307 307
query95 670 486 354 354
query96 1078 833 348 348
query97 2688 2677 2567 2567
query98 217 204 202 202
query99 1182 1146 1015 1015
Total cold run time: 258485 ms
Total hot run time: 172138 ms
ClickBench: Total hot run time: 25.3 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit 163edc9f508b0c2c6640cf303fdaeef45781f0cb, data reload: false
query1 0.01 0.01 0.01
query2 0.11 0.05 0.05
query3 0.25 0.14 0.13
query4 1.61 0.14 0.14
query5 0.25 0.23 0.23
query6 1.30 1.12 1.07
query7 0.04 0.01 0.00
query8 0.05 0.04 0.04
query9 0.38 0.31 0.32
query10 0.56 0.55 0.54
query11 0.20 0.15 0.14
query12 0.19 0.15 0.14
query13 0.46 0.47 0.48
query14 1.03 1.01 1.01
query15 0.62 0.60 0.62
query16 0.35 0.34 0.33
query17 1.13 1.10 1.15
query18 0.23 0.23 0.22
query19 2.08 1.94 1.93
query20 0.02 0.02 0.01
query21 15.47 0.23 0.13
query22 4.85 0.05 0.06
query23 16.16 0.32 0.13
query24 2.96 0.43 0.32
query25 0.11 0.06 0.04
query26 0.75 0.22 0.15
query27 0.05 0.04 0.03
query28 3.48 0.93 0.53
query29 12.51 4.35 3.45
query30 0.29 0.15 0.18
query31 2.77 0.58 0.31
query32 3.22 0.62 0.48
query33 3.24 3.23 3.24
query34 15.45 4.24 3.51
query35 3.50 3.54 3.52
query36 0.55 0.43 0.42
query37 0.10 0.07 0.07
query38 0.05 0.04 0.03
query39 0.04 0.03 0.03
query40 0.17 0.16 0.15
query41 0.09 0.03 0.03
query42 0.04 0.03 0.03
query43 0.04 0.04 0.04
Total cold run time: 96.76 s
Total hot run time: 25.3 s
run buildall
Cloud UT Coverage Report
Increment line coverage :tada:
Increment coverage report Complete coverage report
| Category | Coverage |
|---|---|
| Function Coverage | 77.38% (1895/2449) |
| Line Coverage | 64.44% (33992/52753) |
| Region Coverage | 64.84% (17489/26973) |
| Branch Coverage | 54.05% (9374/17344) |
FE UT Coverage Report
Increment line coverage 61.39% (291/474) :tada:
Increment coverage report
Complete coverage report
TPC-H: Total hot run time: 29736 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit c4fd8c633a3f4abace31fca5043540c13c940009, data reload: false
------ Round 1 ----------------------------------
============================================
q1 17764 4210 4125 4125
q2 2009 311 193 193
q3 10351 1452 823 823
q4 4758 470 337 337
q5 8058 856 580 580
q6 307 171 144 144
q7 856 856 628 628
q8 10512 1717 1667 1667
q9 5721 4535 4511 4511
q10 6816 1807 1496 1496
q11 441 273 247 247
q12 648 433 296 296
q13 18170 3359 2805 2805
q14 274 256 241 241
q15 q16 786 783 709 709
q17 1041 997 1031 997
q18 6706 5778 5547 5547
q19 1150 1270 1073 1073
q20 502 401 260 260
q21 6093 2892 2739 2739
q22 459 380 318 318
Total cold run time: 103422 ms
Total hot run time: 29736 ms
----- Round 2, with runtime_filter_mode=off -----
============================================
q1 5129 4918 4843 4843
q2 323 349 228 228
q3 5025 5198 4631 4631
q4 2148 2124 1371 1371
q5 4997 4683 4784 4683
q6 241 181 130 130
q7 1890 1779 1573 1573
q8 2425 2242 2141 2141
q9 7926 7575 7546 7546
q10 4791 4675 4231 4231
q11 529 419 370 370
q12 728 731 521 521
q13 2969 3364 2810 2810
q14 275 279 253 253
q15 q16 686 697 592 592
q17 1286 1294 1272 1272
q18 7523 6931 6880 6880
q19 1110 1072 1106 1072
q20 2258 2231 1949 1949
q21 5287 4565 4426 4426
q22 516 469 391 391
Total cold run time: 58062 ms
Total hot run time: 51913 ms
TPC-DS: Total hot run time: 171912 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 c4fd8c633a3f4abace31fca5043540c13c940009, data reload: false
query5 4317 635 477 477
query6 430 193 187 187
query7 4892 575 310 310
query8 340 190 172 172
query9 8768 4043 4034 4034
query10 448 305 271 271
query11 5815 2312 2131 2131
query12 155 103 99 99
query13 1263 585 438 438
query14 6276 5287 4992 4992
query14_1 4291 4276 4260 4260
query15 218 203 181 181
query16 1004 467 430 430
query17 1093 679 564 564
query18 2426 464 334 334
query19 197 181 138 138
query20 118 105 107 105
query21 221 131 115 115
query22 13725 13651 13362 13362
query23 17348 16447 16092 16092
query23_1 16125 16229 16303 16229
query24 7722 1765 1274 1274
query24_1 1318 1298 1289 1289
query25 541 435 364 364
query26 1291 321 167 167
query27 2703 559 334 334
query28 4517 2027 2041 2027
query29 1039 653 470 470
query30 304 227 196 196
query31 1127 1066 950 950
query32 102 57 59 57
query33 513 307 234 234
query34 1165 1185 660 660
query35 763 778 666 666
query36 1394 1375 1252 1252
query37 152 107 106 106
query38 1868 1700 1663 1663
query39 931 918 894 894
query39_1 878 869 885 869
query40 227 118 98 98
query41 63 63 62 62
query42 91 88 91 88
query43 316 326 282 282
query44 1418 790 767 767
query45 200 189 175 175
query46 1071 1172 764 764
query47 2374 2269 2212 2212
query48 377 397 298 298
query49 575 430 315 315
query50 1009 359 256 256
query51 4463 4376 4297 4297
query52 82 79 68 68
query53 241 264 190 190
query54 267 239 202 202
query55 72 68 65 65
query56 235 220 226 220
query57 1449 1444 1310 1310
query58 242 216 218 216
query59 1577 1637 1413 1413
query60 287 250 223 223
query61 160 149 172 149
query62 701 636 583 583
query63 235 191 197 191
query64 2599 833 659 659
query65 4925 4785 4788 4785
query66 1794 482 355 355
query67 29199 28826 28709 28709
query68 3349 1524 921 921
query69 413 310 274 274
query70 1126 983 970 970
query71 297 239 219 219
query72 3058 2567 2329 2329
query73 838 750 437 437
query74 5104 4909 4797 4797
query75 2576 2534 2183 2183
query76 2317 1186 828 828
query77 350 382 305 305
query78 12533 12404 11973 11973
query79 1270 1130 756 756
query80 590 461 383 383
query81 451 274 241 241
query82 474 156 117 117
query83 353 272 242 242
query84 262 151 114 114
query85 851 526 411 411
query86 356 312 296 296
query87 1855 1821 1772 1772
query88 3669 2778 2762 2762
query89 413 382 337 337
query90 1932 181 182 181
query91 169 168 132 132
query92 62 62 58 58
query93 1513 1554 951 951
query94 530 351 321 321
query95 682 368 351 351
query96 1060 819 344 344
query97 2693 2715 2546 2546
query98 222 212 204 204
query99 1174 1142 1042 1042
Total cold run time: 257051 ms
Total hot run time: 171912 ms
ClickBench: Total hot run time: 25.19 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit c4fd8c633a3f4abace31fca5043540c13c940009, data reload: false
query1 0.01 0.01 0.01
query2 0.09 0.05 0.05
query3 0.26 0.14 0.14
query4 1.61 0.17 0.14
query5 0.23 0.22 0.23
query6 1.22 1.08 1.08
query7 0.04 0.01 0.01
query8 0.06 0.04 0.04
query9 0.38 0.31 0.32
query10 0.57 0.58 0.59
query11 0.19 0.14 0.13
query12 0.18 0.14 0.15
query13 0.48 0.48 0.48
query14 1.02 1.00 0.99
query15 0.62 0.59 0.59
query16 0.31 0.34 0.33
query17 1.12 1.09 1.05
query18 0.23 0.20 0.20
query19 2.07 2.02 1.89
query20 0.02 0.01 0.01
query21 15.45 0.23 0.15
query22 4.74 0.06 0.05
query23 16.13 0.33 0.12
query24 2.98 0.41 0.32
query25 0.15 0.04 0.05
query26 0.75 0.21 0.17
query27 0.04 0.04 0.03
query28 3.49 0.97 0.56
query29 12.48 4.28 3.46
query30 0.28 0.16 0.15
query31 2.77 0.61 0.31
query32 3.22 0.59 0.48
query33 3.22 3.25 3.24
query34 15.67 4.19 3.49
query35 3.50 3.44 3.50
query36 0.55 0.45 0.42
query37 0.09 0.07 0.06
query38 0.05 0.04 0.04
query39 0.04 0.04 0.03
query40 0.17 0.17 0.15
query41 0.08 0.04 0.03
query42 0.03 0.03 0.03
query43 0.04 0.03 0.03
Total cold run time: 96.63 s
Total hot run time: 25.19 s
run buildall