Skip to content

[Feature] support binlog<row> read and write (row type) (2/3)#63110

Open
Userwhite wants to merge 10 commits into
apache:masterfrom
Userwhite:feature/binlog-write-port
Open

[Feature] support binlog<row> read and write (row type) (2/3)#63110
Userwhite wants to merge 10 commits into
apache:masterfrom
Userwhite:feature/binlog-write-port

Conversation

@Userwhite
Copy link
Copy Markdown
Contributor

What problem does this PR solve?

Issue Number: close #61956

This PR support write and read path of binlog.

Write Path

  1. TabletsChannel splits the request based on OlapTableSchemaParam and concurrently submits Data and Binlog tasks to the executor via GroupFlushContext.
  2. At the storage layer, data is flushed by SegmentWriter and RowBinlogSegmentWriter respectively. RowBinlogSegmentWriter fills in partial column updates and "Before" data via Historical RetrieveContext.
  3. During the Commit/Publish stages, the delete_bitmap is calculated synchronously.
  4. In the Publish stage, the delete_bitmap inside the current Rowset is copied to binlog_delvec.
  5. Finally, TxnManager uniformly persists the Rowset Meta.
image image

Write Implementation Details

  • Concurrent Flush Model:
    Allows GroupFlushContext to submit both DATA_IN_GROUP and BINLOG_IN_GROUP tasks concurrently for the same SharedMemtable.
  • Reuse delete bitmap:
    Segment ID allocations for both writers are strictly synchronized during the flush phase.
    So binlog_delvec can resue tablet delete_bitmap(seq update, partial update conflict)

Read Path

  1. A query is initiated via TableBinlogFunction, and the READER_BINLOG flag is pushed down along the OlapScanNode to the underlying SegmentIterator.
  2. After iterating through the physical data, the 64-bit Version/LSN and Commit TSO are injected into the result set in real-time via _update_lsn_col_if_needed and _update_tso_col_if_needed.
image

How to do simple test

    CREATE TABLE test_row_binlog_simple (
        k1 INT,
        v1 INT,
        v2 STRING
    )
    UNIQUE KEY(k1)
    DISTRIBUTED BY HASH(k1) BUCKETS 1
    PROPERTIES (
        "replication_num" = "1",
        "enable_unique_key_merge_on_write" = "true",
        "binlog.enable" = "true",
        "binlog.format" = "ROW",
        "binlog.need_historical_value" = "true"
    );

    INSERT INTO test_row_binlog_simple VALUES
        (1, 10, '10'),
        (2, 20, '20');

    UPDATE test_row_binlog_simple
    SET v1 = 11, v2 = '11'
    WHERE k1 = 1;

    SELECT
        __DORIS_BINLOG_LSN__ DIV 18446744073709551616 AS version,
        __DORIS_BINLOG_LSN__ % 18446744073709551616 AS row_id,
        __DORIS_BINLOG_OP__ AS op,
        k1,
        v1,
        v2,
        __BEFORE__v1__,
        __BEFORE__v2__
    FROM binlog("table" = "test_row_binlog_simple")
    ORDER BY __DORIS_BINLOG_LSN__;

Release note

None

Check List (For Author)

  • Test

    • Regression test
    • 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.
    • 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

@hello-stephen
Copy link
Copy Markdown
Contributor

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:

  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?

@Userwhite
Copy link
Copy Markdown
Contributor Author

/review

@Userwhite
Copy link
Copy Markdown
Contributor Author

run buildall

@Userwhite
Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen
Copy link
Copy Markdown
Contributor

Cloud UT Coverage Report

Increment line coverage 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 78.00% (1844/2364)
Line Coverage 64.67% (33010/51047)
Region Coverage 65.25% (16383/25109)
Branch Coverage 55.76% (8737/15668)

@hello-stephen
Copy link
Copy Markdown
Contributor

TPC-DS: Total hot run time: 66541 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 511688743c45e5a1a8a3a78aefe4a0b7d9abba90, data reload: false

query5	
query6	424	376	373	373
query7	4438	
query8	
query9	
query10	
query11	
query12	348	278	270	270
query13	
query14	
query14_1	
query15	703	680	691	680
query16	1162	821	801	801
query17	
query18	2865	1370	1361	1361
query19	
query20	295	286	296	286
query21	1547	1148	1149	1148
query22	23203	25933	25093	25093
query23	
query23_1	
query24	
query24_1	
query25	
query26	
query27	
query28	
query29	
query30	766	737	722	722
query31	
query32	
query33	
query34	
query35	
query36	
query37	
query38	
query39	1878	1589	1604	1589
query39_1	1553	1473	1564	1473
query40	
query41	150	95	143	95
query42	
query43	
query44	
query45	
query46	
query47	
query48	
query49	
query50	
query51	
query52	
query53	
query54	
query55	
query56	
query57	
query58	
query59	
query60	
query61	
query62	
query63	
query64	
query65	
query66	
query67	
query68	
query69	
query70	
query71	
query72	
query73	
query74	
query75	
query76	
query77	
query78	
query79	
query80	
query81	
query82	
query83	
query84	
query85	
query86	
query87	
query88	
query89	
query90	
query91	
query92	
query93	
query94	
query95	
query96	
query97	
query98	
query99	
Total cold run time: 78263 ms
Total hot run time: 66541 ms

@hello-stephen
Copy link
Copy Markdown
Contributor

TPC-DS: Total hot run time: 71162 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 e3a62978f65d893cf500232e94729678c69eaf38, data reload: false

query5	4768	2742	2705	2705
query6	420	365	361	361
query7	4337	1307	1302	1302
query8	663	628	622	622
query9	25754	
query10	
query11	
query12	399	359	342	342
query13	
query14	
query14_1	
query15	
query16	
query17	
query18	
query19	
query20	
query21	1850	1407	1320	1320
query22	26205	24338	22465	22465
query23	
query23_1	
query24	
query24_1	
query25	
query26	
query27	
query28	
query29	
query30	750	744	750	744
query31	
query32	
query33	
query34	
query35	
query36	
query37	
query38	
query39	1954	1671	1648	1648
query39_1	1597	1567	1539	1539
query40	523	448	454	448
query41	147	99	99	99
query42	
query43	
query44	
query45	
query46	
query47	
query48	
query49	
query50	
query51	
query52	
query53	
query54	
query55	
query56	
query57	3362	3287	3283	3283
query58	
query59	
query60	
query61	
query62	
query63	
query64	
query65	
query66	
query67	
query68	
query69	
query70	
query71	
query72	
query73	
query74	
query75	
query76	
query77	
query78	
query79	
query80	
query81	1134	1104	1102	1102
query82	
query83	
query84	333	195	196	195
query85	
query86	
query87	
query88	
query89	
query90	
query91	285	257	252	252
query92	
query93	
query94	
query95	
query96	
query97	
query98	
query99	
Total cold run time: 92121 ms
Total hot run time: 71162 ms

@Userwhite
Copy link
Copy Markdown
Contributor Author

run buildall

@Userwhite
Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen
Copy link
Copy Markdown
Contributor

Cloud UT Coverage Report

Increment line coverage 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 78.00% (1844/2364)
Line Coverage 64.61% (32982/51047)
Region Coverage 65.20% (16370/25109)
Branch Coverage 55.74% (8734/15668)

@hello-stephen
Copy link
Copy Markdown
Contributor

Cloud UT Coverage Report

Increment line coverage 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 78.00% (1844/2364)
Line Coverage 64.69% (33020/51047)
Region Coverage 65.27% (16388/25109)
Branch Coverage 55.80% (8743/15668)

@hello-stephen
Copy link
Copy Markdown
Contributor

FE UT Coverage Report

Increment line coverage 12.08% (18/149) 🎉
Increment coverage report
Complete coverage report

@hello-stephen
Copy link
Copy Markdown
Contributor

TPC-DS: Total hot run time: 70442 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 e3f6fdce796a83104fde12695a02840f2187f1b0, data reload: false

query5	4451	2694	2674	2674
query6	424	385	374	374
query7	4354	1264	1262	1262
query8	672	638	622	622
query9	25362	
query10	
query11	
query12	362	294	302	294
query13	
query14	
query14_1	
query15	
query16	
query17	
query18	
query19	
query20	
query21	1868	1386	1435	1386
query22	26666	24554	22518	22518
query23	
query23_1	
query24	
query24_1	
query25	
query26	
query27	
query28	
query29	
query30	741	725	721	721
query31	
query32	
query33	
query34	
query35	
query36	
query37	
query38	
query39	1946	1612	1587	1587
query39_1	1593	1578	1575	1575
query40	496	430	430	430
query41	143	97	98	97
query42	
query43	
query44	
query45	
query46	
query47	
query48	
query49	
query50	
query51	
query52	
query53	
query54	
query55	
query56	
query57	3306	3227	3254	3227
query58	
query59	
query60	
query61	
query62	
query63	
query64	
query65	
query66	
query67	
query68	
query69	
query70	
query71	
query72	
query73	
query74	
query75	
query76	
query77	
query78	
query79	
query80	
query81	1113	1089	1094	1089
query82	
query83	
query84	323	196	198	196
query85	
query86	
query87	
query88	
query89	
query90	
query91	280	259	251	251
query92	
query93	
query94	
query95	
query96	
query97	
query98	
query99	
Total cold run time: 91374 ms
Total hot run time: 70442 ms

@hello-stephen
Copy link
Copy Markdown
Contributor

TPC-DS: Total hot run time: 57471 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 5f5a2d0b46006d08bae44ce6dceab1c868a80032, data reload: false

query5	5801	1530	1387	1387
query6	371	263	251	251
query7	4285	662	506	506
query8	605	557	564	557
query9	13888	13199	
query10	
query11	
query12	329	238	247	238
query13	
query14	
query14_1	
query15	
query16	
query17	
query18	
query19	
query20	
query21	940	694	639	639
query22	24279	25696	23050	23050
query23	
query23_1	
query24	
query24_1	
query25	
query26	
query27	
query28	
query29	
query30	676	668	637	637
query31	
query32	
query33	
query34	
query35	
query36	
query37	
query38	
query39	1433	1377	1371	1371
query39_1	1329	1320	1308	1308
query40	
query41	151	98	91	91
query42	
query43	
query44	
query45	
query46	
query47	
query48	
query49	
query50	
query51	
query52	
query53	
query54	
query55	
query56	
query57	
query58	
query59	
query60	
query61	
query62	
query63	
query64	
query65	
query66	
query67	
query68	
query69	
query70	
query71	
query72	
query73	
query74	
query75	
query76	
query77	
query78	
query79	
query80	
query81	
query82	
query83	
query84	
query85	
query86	
query87	
query88	
query89	
query90	
query91	
query92	
query93	
query94	
query95	
query96	
query97	
query98	
query99	
Total cold run time: 80618 ms
Total hot run time: 57471 ms

@Userwhite
Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen
Copy link
Copy Markdown
Contributor

Cloud UT Coverage Report

Increment line coverage 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 78.05% (1849/2369)
Line Coverage 64.76% (33240/51327)
Region Coverage 65.29% (16451/25198)
Branch Coverage 55.85% (8786/15732)

@hello-stephen
Copy link
Copy Markdown
Contributor

FE Regression Coverage Report

Increment line coverage 26.50% (75/283) 🎉
Increment coverage report
Complete coverage report

@hello-stephen
Copy link
Copy Markdown
Contributor

FE Regression Coverage Report

Increment line coverage 24.44% (76/311) 🎉
Increment coverage report
Complete coverage report

2 similar comments
@hello-stephen
Copy link
Copy Markdown
Contributor

FE Regression Coverage Report

Increment line coverage 24.44% (76/311) 🎉
Increment coverage report
Complete coverage report

@hello-stephen
Copy link
Copy Markdown
Contributor

FE Regression Coverage Report

Increment line coverage 24.44% (76/311) 🎉
Increment coverage report
Complete coverage report

@hello-stephen
Copy link
Copy Markdown
Contributor

TPC-DS: Total hot run time: 61024 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 5f5a2d0b46006d08bae44ce6dceab1c868a80032, data reload: false

query5	
query6	411	279	264	264
query7	4370	757	670	670
query8	612	606	558	558
query9	16454	
query10	
query11	
query12	350	247	250	247
query13	
query14	
query14_1	
query15	636	627	601	601
query16	1214	706	678	678
query17	
query18	3081	1080	1025	1025
query19	
query20	258	254	256	254
query21	1444	1061	1060	1060
query22	23805	25765	23854	23854
query23	
query23_1	
query24	
query24_1	
query25	
query26	
query27	
query28	
query29	
query30	700	656	654	654
query31	
query32	
query33	
query34	
query35	
query36	
query37	
query38	
query39	1779	1502	1462	1462
query39_1	1467	1454	1429	1429
query40	
query41	142	92	88	88
query42	
query43	
query44	
query45	
query46	
query47	
query48	
query49	
query50	
query51	
query52	
query53	
query54	
query55	
query56	
query57	
query58	
query59	
query60	
query61	
query62	
query63	
query64	
query65	
query66	
query67	
query68	
query69	
query70	
query71	
query72	
query73	
query74	
query75	
query76	
query77	
query78	
query79	
query80	
query81	
query82	
query83	
query84	
query85	
query86	
query87	
query88	
query89	
query90	
query91	
query92	
query93	
query94	
query95	
query96	
query97	
query98	
query99	
Total cold run time: 80461 ms
Total hot run time: 61024 ms

@Userwhite
Copy link
Copy Markdown
Contributor Author

run beut

@Userwhite
Copy link
Copy Markdown
Contributor Author

run buildall

@Userwhite
Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen
Copy link
Copy Markdown
Contributor

TPC-H: Total hot run time: 29731 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit ac2b83b68736a6c9d56376c15d32bda53750fa17, 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	17684	3963	3818	3818
q2	q3	10657	859	607	607
q4	4662	460	340	340
q5	7462	1316	1134	1134
q6	188	172	143	143
q7	922	957	755	755
q8	9307	1422	1265	1265
q9	5678	5389	5311	5311
q10	6313	2074	1799	1799
q11	480	277	263	263
q12	637	411	294	294
q13	18111	3743	2798	2798
q14	293	281	262	262
q15	q16	898	869	787	787
q17	970	1105	797	797
q18	6496	5681	5655	5655
q19	1182	1287	1119	1119
q20	507	402	271	271
q21	4609	2361	1959	1959
q22	478	398	354	354
Total cold run time: 97534 ms
Total hot run time: 29731 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	4598	4570	4556	4556
q2	q3	4634	4771	4213	4213
q4	2095	2184	1400	1400
q5	5065	4953	5264	4953
q6	189	175	138	138
q7	2018	1854	1636	1636
q8	3415	3072	3117	3072
q9	8436	8564	8461	8461
q10	4494	4523	4264	4264
q11	606	431	388	388
q12	693	786	505	505
q13	3220	3532	2963	2963
q14	309	304	279	279
q15	q16	747	773	678	678
q17	1384	1352	1321	1321
q18	7991	7264	7130	7130
q19	1168	1169	1171	1169
q20	2267	2246	1972	1972
q21	6228	5424	4863	4863
q22	526	484	423	423
Total cold run time: 60083 ms
Total hot run time: 54384 ms

@hello-stephen
Copy link
Copy Markdown
Contributor

TPC-DS: Total hot run time: 169763 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 ac2b83b68736a6c9d56376c15d32bda53750fa17, data reload: false

query5	4303	661	506	506
query6	339	225	202	202
query7	4234	559	311	311
query8	326	234	213	213
query9	8818	4074	4063	4063
query10	450	333	299	299
query11	5771	2371	2263	2263
query12	181	137	129	129
query13	1305	623	432	432
query14	6367	5385	5066	5066
query14_1	4405	4414	4399	4399
query15	209	208	185	185
query16	1004	464	485	464
query17	1164	766	675	675
query18	2760	475	352	352
query19	214	202	170	170
query20	135	132	131	131
query21	215	137	117	117
query22	13576	13573	13337	13337
query23	17124	16406	15985	15985
query23_1	16206	16132	16177	16132
query24	7396	1755	1349	1349
query24_1	1349	1369	1352	1352
query25	576	502	434	434
query26	1310	332	170	170
query27	2664	567	349	349
query28	4341	1941	1941	1941
query29	999	647	510	510
query30	302	243	200	200
query31	1119	1054	933	933
query32	88	75	83	75
query33	517	367	290	290
query34	1197	1155	664	664
query35	751	799	674	674
query36	1344	1349	1154	1154
query37	154	104	93	93
query38	3215	3120	3033	3033
query39	935	910	876	876
query39_1	878	870	871	870
query40	241	161	139	139
query41	66	64	62	62
query42	111	112	112	112
query43	319	326	285	285
query44	
query45	211	201	196	196
query46	1090	1183	750	750
query47	2296	2294	2185	2185
query48	394	423	292	292
query49	637	535	422	422
query50	706	282	218	218
query51	4297	4247	4232	4232
query52	106	107	100	100
query53	255	292	208	208
query54	306	286	250	250
query55	94	92	86	86
query56	306	302	308	302
query57	1386	1394	1275	1275
query58	309	283	264	264
query59	1535	1642	1365	1365
query60	337	329	327	327
query61	153	156	156	156
query62	657	654	558	558
query63	248	201	210	201
query64	2389	819	658	658
query65	
query66	1682	515	396	396
query67	29943	29958	29671	29671
query68	
query69	452	342	307	307
query70	1027	1020	912	912
query71	313	286	277	277
query72	2925	2690	2459	2459
query73	885	798	400	400
query74	5069	4911	4744	4744
query75	2807	2673	2365	2365
query76	2264	1119	759	759
query77	427	445	349	349
query78	12984	12964	12356	12356
query79	1379	1019	751	751
query80	710	621	540	540
query81	452	291	244	244
query82	848	164	125	125
query83	366	281	254	254
query84	264	148	122	122
query85	945	582	524	524
query86	400	322	310	310
query87	3474	3351	3188	3188
query88	3563	2704	2732	2704
query89	443	380	343	343
query90	1840	183	184	183
query91	175	162	139	139
query92	79	78	76	76
query93	990	990	552	552
query94	554	339	305	305
query95	672	377	346	346
query96	1044	773	328	328
query97	2711	2687	2558	2558
query98	247	231	231	231
query99	1090	1123	980	980
Total cold run time: 252593 ms
Total hot run time: 169763 ms

@hello-stephen
Copy link
Copy Markdown
Contributor

FE Regression Coverage Report

Increment line coverage 38.86% (75/193) 🎉
Increment coverage report
Complete coverage report

@hello-stephen
Copy link
Copy Markdown
Contributor

FE Regression Coverage Report

Increment line coverage 39.38% (76/193) 🎉
Increment coverage report
Complete coverage report

Comment thread be/src/cloud/cloud_tablet.cpp Outdated
Comment thread be/src/cloud/cloud_tablets_channel.cpp Outdated
Comment thread be/src/exec/scan/parallel_scanner_builder.cpp
Comment thread be/src/storage/rowset/segment_creator.cpp Outdated
Comment thread be/src/storage/segment/segment_iterator.cpp
Comment thread be/src/storage/tablet/tablet_manager.cpp Outdated
Comment thread be/src/storage/task/engine_publish_version_task.cpp
Comment thread conf/be.conf Outdated
gavinchou
gavinchou previously approved these changes May 15, 2026
@github-actions github-actions Bot added the approved Indicates a PR has been approved by one committer. label May 15, 2026
@github-actions
Copy link
Copy Markdown
Contributor

PR approved by at least one committer and no changes requested.

@github-actions
Copy link
Copy Markdown
Contributor

PR approved by anyone and no changes requested.

@hello-stephen
Copy link
Copy Markdown
Contributor

TPC-H: Total hot run time: 31563 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 486420c546570b7e8462ac2db7ade4822f1f0e0e, 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	17648	3981	3936	3936
q2	q3	10947	1415	798	798
q4	4766	480	336	336
q5	10570	2297	2076	2076
q6	388	175	140	140
q7	959	772	632	632
q8	9626	1738	1599	1599
q9	7069	4919	4903	4903
q10	6532	2066	1824	1824
q11	426	270	248	248
q12	689	425	298	298
q13	18211	3351	2820	2820
q14	262	261	240	240
q15	q16	815	776	712	712
q17	938	954	1037	954
q18	6918	5740	6096	5740
q19	1205	1285	1069	1069
q20	522	405	268	268
q21	6157	2727	2653	2653
q22	455	371	317	317
Total cold run time: 105103 ms
Total hot run time: 31563 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	4810	4586	4701	4586
q2	q3	4825	5294	4634	4634
q4	2155	2229	1407	1407
q5	4733	4658	4861	4658
q6	237	184	136	136
q7	1765	1631	1476	1476
q8	2238	1951	1943	1943
q9	7277	7295	7212	7212
q10	4492	4429	4012	4012
q11	579	434	359	359
q12	714	736	510	510
q13	2997	3338	2780	2780
q14	268	281	256	256
q15	q16	679	708	625	625
q17	1312	1279	1271	1271
q18	7529	6746	6885	6746
q19	1128	1066	1081	1066
q20	2239	2233	1956	1956
q21	5333	4616	4477	4477
q22	524	451	405	405
Total cold run time: 55834 ms
Total hot run time: 50515 ms

@hello-stephen
Copy link
Copy Markdown
Contributor

TPC-DS: Total hot run time: 170583 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 486420c546570b7e8462ac2db7ade4822f1f0e0e, data reload: false

query5	4329	643	507	507
query6	330	216	199	199
query7	4225	563	303	303
query8	327	233	215	215
query9	8844	4086	4023	4023
query10	478	342	313	313
query11	5783	2423	2219	2219
query12	186	132	129	129
query13	1287	613	460	460
query14	6028	5355	5054	5054
query14_1	4335	4325	4299	4299
query15	208	200	180	180
query16	1014	451	427	427
query17	1137	715	585	585
query18	2449	482	342	342
query19	230	195	157	157
query20	138	133	128	128
query21	217	139	114	114
query22	13628	13515	13396	13396
query23	17209	16386	16082	16082
query23_1	16075	16163	16201	16163
query24	7399	1736	1284	1284
query24_1	1300	1292	1299	1292
query25	572	502	444	444
query26	1346	323	179	179
query27	2679	563	359	359
query28	4491	2001	2000	2000
query29	1006	660	512	512
query30	318	241	199	199
query31	1113	1065	938	938
query32	89	76	77	76
query33	545	361	330	330
query34	1170	1120	657	657
query35	764	793	689	689
query36	1352	1342	1204	1204
query37	162	113	99	99
query38	3219	3151	3063	3063
query39	929	952	884	884
query39_1	898	884	875	875
query40	242	152	133	133
query41	70	69	67	67
query42	111	120	109	109
query43	317	327	286	286
query44	
query45	211	201	200	200
query46	1059	1211	745	745
query47	2288	2303	2226	2226
query48	412	417	302	302
query49	657	506	398	398
query50	964	340	254	254
query51	4363	4280	4177	4177
query52	110	108	98	98
query53	259	300	211	211
query54	325	286	264	264
query55	96	96	87	87
query56	332	349	334	334
query57	1431	1358	1304	1304
query58	308	286	273	273
query59	1519	1621	1416	1416
query60	332	335	326	326
query61	182	175	215	175
query62	675	627	539	539
query63	244	200	201	200
query64	2387	803	625	625
query65	
query66	1723	474	362	362
query67	29426	29967	29868	29868
query68	
query69	460	333	309	309
query70	1038	949	933	933
query71	314	277	265	265
query72	3021	2775	2357	2357
query73	864	753	405	405
query74	5048	4917	4724	4724
query75	2682	2638	2257	2257
query76	2274	1149	783	783
query77	396	406	332	332
query78	12159	12044	11557	11557
query79	1453	1063	781	781
query80	770	545	473	473
query81	477	280	243	243
query82	1304	160	125	125
query83	352	275	249	249
query84	262	135	114	114
query85	906	526	446	446
query86	434	322	308	308
query87	3423	3387	3201	3201
query88	3628	2750	2742	2742
query89	446	386	339	339
query90	1794	179	176	176
query91	179	166	171	166
query92	79	78	71	71
query93	1514	1389	858	858
query94	611	344	302	302
query95	668	467	351	351
query96	1072	757	346	346
query97	2712	2684	2553	2553
query98	257	229	225	225
query99	1096	1100	974	974
Total cold run time: 252565 ms
Total hot run time: 170583 ms

@Userwhite
Copy link
Copy Markdown
Contributor Author

run buildall

@github-actions github-actions Bot removed the approved Indicates a PR has been approved by one committer. label May 16, 2026
@hello-stephen
Copy link
Copy Markdown
Contributor

Cloud UT Coverage Report

Increment line coverage 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 78.06% (1854/2375)
Line Coverage 64.52% (33328/51653)
Region Coverage 65.23% (16525/25335)
Branch Coverage 55.74% (8833/15848)

@hello-stephen
Copy link
Copy Markdown
Contributor

TPC-H: Total hot run time: 31337 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 7b843c81b943f135791f255dbf0633815ac5f3c4, 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	17621	3938	3845	3845
q2	q3	10985	1437	813	813
q4	4751	477	357	357
q5	10298	2285	2135	2135
q6	409	176	148	148
q7	947	796	638	638
q8	9598	1820	1748	1748
q9	7115	4969	4953	4953
q10	6481	2166	1832	1832
q11	447	275	251	251
q12	693	429	301	301
q13	18253	3387	2789	2789
q14	266	257	248	248
q15	q16	818	798	713	713
q17	918	964	1046	964
q18	6781	5725	5555	5555
q19	1247	1256	1041	1041
q20	521	411	260	260
q21	5635	2560	2441	2441
q22	426	356	305	305
Total cold run time: 104210 ms
Total hot run time: 31337 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	4237	4141	4113	4113
q2	q3	4514	4870	4299	4299
q4	2135	2198	1409	1409
q5	4439	4285	5104	4285
q6	251	188	142	142
q7	2013	1831	1574	1574
q8	2393	2141	2118	2118
q9	7796	7700	7802	7700
q10	4550	4718	4084	4084
q11	585	442	379	379
q12	727	726	547	547
q13	3182	3691	2983	2983
q14	303	309	279	279
q15	q16	725	741	662	662
q17	1387	1367	1325	1325
q18	7973	7263	6769	6769
q19	1101	1109	1084	1084
q20	2269	2225	1912	1912
q21	5321	4659	4493	4493
q22	526	449	432	432
Total cold run time: 56427 ms
Total hot run time: 50589 ms

@hello-stephen
Copy link
Copy Markdown
Contributor

FE UT Coverage Report

Increment line coverage 12.08% (18/149) 🎉
Increment coverage report
Complete coverage report

@hello-stephen
Copy link
Copy Markdown
Contributor

TPC-DS: Total hot run time: 170144 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 7b843c81b943f135791f255dbf0633815ac5f3c4, data reload: false

query5	4326	662	519	519
query6	349	224	205	205
query7	4327	565	308	308
query8	322	231	219	219
query9	8853	4077	4023	4023
query10	467	358	315	315
query11	5832	2367	2183	2183
query12	186	129	133	129
query13	1278	631	429	429
query14	6021	5385	5043	5043
query14_1	4388	4404	4327	4327
query15	209	209	190	190
query16	1008	465	469	465
query17	1155	727	619	619
query18	2538	505	374	374
query19	224	218	172	172
query20	140	135	131	131
query21	219	152	126	126
query22	13607	13533	13337	13337
query23	17215	16378	16083	16083
query23_1	16317	16106	16210	16106
query24	7482	1757	1313	1313
query24_1	1311	1316	1322	1316
query25	582	508	456	456
query26	1323	332	183	183
query27	2678	573	341	341
query28	4468	1952	1939	1939
query29	1063	651	520	520
query30	311	241	193	193
query31	1113	1076	933	933
query32	132	73	75	73
query33	542	356	290	290
query34	1189	1092	638	638
query35	750	772	687	687
query36	1340	1321	1174	1174
query37	152	104	93	93
query38	3206	3110	3022	3022
query39	940	944	904	904
query39_1	865	894	874	874
query40	233	144	124	124
query41	65	62	75	62
query42	116	111	109	109
query43	326	328	288	288
query44	
query45	212	202	196	196
query46	1064	1195	725	725
query47	2299	2324	2177	2177
query48	407	442	303	303
query49	636	499	391	391
query50	957	347	263	263
query51	4322	4289	4218	4218
query52	114	104	94	94
query53	258	290	216	216
query54	323	263	263	263
query55	99	90	86	86
query56	312	310	302	302
query57	1421	1407	1327	1327
query58	300	277	275	275
query59	1550	1606	1410	1410
query60	323	331	308	308
query61	158	155	155	155
query62	670	622	549	549
query63	241	199	204	199
query64	2425	791	627	627
query65	
query66	1696	477	350	350
query67	30084	29963	29852	29852
query68	
query69	463	342	308	308
query70	1063	973	974	973
query71	317	285	265	265
query72	2966	2740	2443	2443
query73	792	718	415	415
query74	5053	4869	4710	4710
query75	2683	2596	2290	2290
query76	2279	1126	767	767
query77	399	434	334	334
query78	12139	12192	11546	11546
query79	1438	1010	736	736
query80	887	546	447	447
query81	489	276	243	243
query82	1350	162	124	124
query83	343	284	245	245
query84	256	141	110	110
query85	984	545	469	469
query86	442	322	330	322
query87	3464	3323	3207	3207
query88	3535	2673	2654	2654
query89	452	384	339	339
query90	1769	179	183	179
query91	180	171	144	144
query92	84	78	75	75
query93	1575	1427	808	808
query94	611	344	320	320
query95	687	467	344	344
query96	998	786	342	342
query97	2714	2706	2574	2574
query98	233	232	230	230
query99	1124	1111	1010	1010
Total cold run time: 254047 ms
Total hot run time: 170144 ms

Comment thread be/src/load/memtable/memtable_flush_executor.cpp
Copy link
Copy Markdown

@VividByteWorker VividByteWorker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

def tsoPersistConfig = sql "SHOW FRONTEND CONFIG like '%enable_tso_persist_journal%';"
try {
sql "ADMIN SET FRONTEND CONFIG ('enable_tso_persist_journal' = 'true')"
sql "ADMIN SET FRONTEND CONFIG ('experimental_enable_tso_feature' = 'true')"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should move this to regression test config

@hello-stephen
Copy link
Copy Markdown
Contributor

BE Regression && UT Coverage Report

Increment line coverage 60.44% (1239/2050) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 73.68% (27915/37889)
Line Coverage 57.59% (302708/525592)
Region Coverage 54.61% (252609/462556)
Branch Coverage 56.26% (109328/194330)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] add row type for doris binlog

5 participants