Skip to content

Test float plain#62088

Draft
bobhan1 wants to merge 2 commits intoapache:masterfrom
bobhan1:test-float-plain
Draft

Test float plain#62088
bobhan1 wants to merge 2 commits intoapache:masterfrom
bobhan1:test-float-plain

Conversation

@bobhan1
Copy link
Copy Markdown
Contributor

@bobhan1 bobhan1 commented Apr 3, 2026

What problem does this PR solve?

Issue Number: close #xxx

Related PR: #xxx

Problem Summary:

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

bobhan1 and others added 2 commits April 3, 2026 12:09
Add a new immutable table property 'float_type_default_use_plain_encoding'
that controls whether FLOAT/DOUBLE column types use PLAIN encoding instead
of the default BIT_SHUFFLE encoding.

- Property is boolean, defaults to false
- Cannot be modified after table creation (ALTER TABLE throws error)
- Displayed in SHOW CREATE TABLE output
- Orthogonal to storage format (V3 does not auto-enable this)
- Propagated through both non-cloud (thrift) and cloud (protobuf) paths
- BE encoding hook transforms BIT_SHUFFLE -> PLAIN for float/double types
  when enabled

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@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?

@bobhan1
Copy link
Copy Markdown
Contributor Author

bobhan1 commented Apr 3, 2026

run buildall

@doris-robot
Copy link
Copy Markdown

Cloud UT Coverage Report

Increment line coverage 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 78.48% (1798/2291)
Line Coverage 64.14% (32269/50310)
Region Coverage 64.99% (16174/24886)
Branch Coverage 55.49% (8625/15542)

@hello-stephen
Copy link
Copy Markdown
Contributor

BE UT Coverage Report

Increment line coverage 90.91% (40/44) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 53.00% (20085/37899)
Line Coverage 36.56% (188647/515986)
Region Coverage 32.81% (146489/446412)
Branch Coverage 33.97% (64153/188862)

@doris-robot
Copy link
Copy Markdown

TPC-H: Total hot run time: 29023 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 00695f88311d5ea1351cd7ad538f0d9de7be9747, 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	17622	3765	3841	3765
q2	q3	10676	864	608	608
q4	4714	473	359	359
q5	7859	1357	1173	1173
q6	309	176	141	141
q7	963	958	783	783
q8	10879	1445	1338	1338
q9	7429	5519	5298	5298
q10	6380	2035	1767	1767
q11	490	283	280	280
q12	694	402	293	293
q13	18170	2775	2182	2182
q14	288	293	264	264
q15	q16	902	855	799	799
q17	1070	1064	745	745
q18	6489	5680	5399	5399
q19	1175	1251	1080	1080
q20	624	590	319	319
q21	4704	2456	2053	2053
q22	478	406	377	377
Total cold run time: 101915 ms
Total hot run time: 29023 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	4474	4505	4338	4338
q2	q3	4675	4901	4170	4170
q4	2070	2136	1365	1365
q5	4904	4952	5164	4952
q6	187	172	138	138
q7	2025	1760	1587	1587
q8	3278	3026	3104	3026
q9	8409	8221	8299	8221
q10	4735	4514	4230	4230
q11	582	419	393	393
q12	665	714	517	517
q13	2717	3074	2377	2377
q14	301	311	279	279
q15	q16	756	765	688	688
q17	1317	1260	1235	1235
q18	7980	7276	7228	7228
q19	1160	1114	1158	1114
q20	2208	2203	1966	1966
q21	6156	5495	5042	5042
q22	572	515	447	447
Total cold run time: 59171 ms
Total hot run time: 53313 ms

@hello-stephen
Copy link
Copy Markdown
Contributor

BE Regression && UT Coverage Report

Increment line coverage 90.62% (87/96) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 73.58% (27313/37118)
Line Coverage 57.20% (294255/514415)
Region Coverage 54.42% (245167/450550)
Branch Coverage 56.14% (106348/189444)

@doris-robot
Copy link
Copy Markdown

TPC-DS: Total hot run time: 177861 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 00695f88311d5ea1351cd7ad538f0d9de7be9747, data reload: false

query5	4359	668	521	521
query6	342	243	198	198
query7	4224	595	343	343
query8	328	245	218	218
query9	8735	3974	3961	3961
query10	452	351	314	314
query11	6661	5475	5159	5159
query12	203	134	123	123
query13	1273	615	439	439
query14	5724	5218	4738	4738
query14_1	4097	4117	4094	4094
query15	213	202	183	183
query16	1010	479	442	442
query17	1130	744	614	614
query18	2465	500	378	378
query19	230	208	163	163
query20	140	132	126	126
query21	220	138	114	114
query22	13652	13526	13341	13341
query23	17780	17500	16648	16648
query23_1	16925	17268	16911	16911
query24	8053	1810	1424	1424
query24_1	1445	1453	1431	1431
query25	653	541	501	501
query26	1443	334	192	192
query27	2859	640	389	389
query28	4589	2028	1990	1990
query29	1128	730	580	580
query30	297	234	198	198
query31	1101	1042	931	931
query32	106	76	70	70
query33	543	358	313	313
query34	1175	1141	679	679
query35	779	783	684	684
query36	1243	1236	1058	1058
query37	158	108	87	87
query38	3126	3095	3024	3024
query39	911	904	859	859
query39_1	844	827	828	827
query40	237	155	135	135
query41	68	64	63	63
query42	116	111	109	109
query43	318	319	280	280
query44	
query45	208	196	191	191
query46	1195	1224	786	786
query47	2325	2370	2275	2275
query48	420	444	307	307
query49	659	599	450	450
query50	738	280	215	215
query51	4333	4267	4228	4228
query52	111	109	95	95
query53	244	264	200	200
query54	316	271	272	271
query55	99	92	86	86
query56	305	312	303	303
query57	1661	1664	1637	1637
query58	305	276	271	271
query59	2869	2951	2737	2737
query60	331	332	308	308
query61	153	151	152	151
query62	668	614	575	575
query63	238	198	191	191
query64	5396	1366	999	999
query65	
query66	1496	464	374	374
query67	24359	24354	24162	24162
query68	
query69	478	333	295	295
query70	1001	1001	1022	1001
query71	320	280	269	269
query72	2907	2805	2482	2482
query73	840	819	474	474
query74	9792	9682	9514	9514
query75	2737	2617	2307	2307
query76	2304	1139	751	751
query77	415	408	337	337
query78	11361	11370	10770	10770
query79	1524	1082	805	805
query80	685	565	516	516
query81	451	285	243	243
query82	1326	157	123	123
query83	374	292	266	266
query84	257	149	124	124
query85	851	517	443	443
query86	388	329	339	329
query87	3316	3241	3108	3108
query88	3560	2727	2710	2710
query89	447	384	357	357
query90	2033	185	180	180
query91	181	171	137	137
query92	81	77	72	72
query93	975	954	568	568
query94	541	359	268	268
query95	655	444	341	341
query96	1065	767	345	345
query97	2693	2653	2591	2591
query98	241	231	222	222
query99	1070	1039	953	953
Total cold run time: 257926 ms
Total hot run time: 177861 ms

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants