Skip to content

[fix](TIMESTAMPTZ)Prevents timezone-unsafe reparsing using getStringValue()#64026

Draft
starocean999 wants to merge 7 commits into
apache:masterfrom
starocean999:master_0601
Draft

[fix](TIMESTAMPTZ)Prevents timezone-unsafe reparsing using getStringValue()#64026
starocean999 wants to merge 7 commits into
apache:masterfrom
starocean999:master_0601

Conversation

@starocean999
Copy link
Copy Markdown
Contributor

  • Summary: Refactors partition literal handling to store typed LiteralExpr (removing string/long PartitionValue ctors), tightens literal comparison semantics, ensures Nereids partition expressions are cast to partition-column types before legacy conversion, fixes timezone-aware TIMESTAMPTZ microsecond rounding overflow, and resolves related build/checkstyle/test failures introduced during the refactor.

  • Partition API changes: PartitionValue now only accepts typed LiteralExpr (string/long constructors removed). Call sites updated to use LiteralExprUtils.createLiteral(...) or NullLiteral.create(type) for null/default partition values. This reduces late-parsing bugs and enforces consistent types.

  • Nereids → catalog conversion: Nereids partition nodes (e.g., InPartition, StepPartition, LessThanPartition, AlterMultiPartitionOp) now cast expressions to the table partition column types before converting to PartitionValue/legacy formats. This fixes partition-boundary/regression issues.

  • TIMESTAMPTZ fix: Prevents timezone-unsafe reparsing during microsecond rounding. DateTimeLiteral overflow/rounding now advances using internal date/time fields (not getStringValue() reparse), and TimestampTzLiteral behavior is kept timezone-correct. Added unit coverage (focused test) for the boundary case '9999-12-31 23:59:59.999999+08:00'.

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?

@starocean999
Copy link
Copy Markdown
Contributor Author

/review

Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

I found one blocking data-correctness issue in the partition literal refactor.

Critical checkpoint conclusions:

  • Goal/test: The PR aims to make partition literals typed and timezone-safe, with unit and regression coverage for TIMESTAMPTZ boundaries. The TIMESTAMPTZ-focused paths are covered, but decimal/float partition ordering is not covered.
  • Scope/focus: The change is mostly focused, but removing PartitionValue.getValue(type) changes a broad partition-key invariant.
  • Concurrency/lifecycle/config/compatibility: No new concurrency, lifecycle, config, storage-format, or FE-BE protocol issues found.
  • Parallel paths: Both range/list key creation paths were changed consistently, but they now share the same typing bug.
  • Tests: Missing coverage for DECIMAL/DOUBLE partition values with different inferred literal scales/types.
  • Data correctness: Blocking issue below can make partition comparisons non-antisymmetric, which can corrupt range validation/pruning decisions.
  • Observability/performance/other: No additional blocking issue found.

User focus: No additional user-provided review focus was specified.

Comment thread fe/fe-core/src/main/java/org/apache/doris/catalog/PartitionKey.java
@starocean999
Copy link
Copy Markdown
Contributor Author

/review

Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

Automated review summary:

I found two blocking correctness issues in the partition conversion changes. The TIMESTAMPTZ multi/step partition path now derives startString/endString from the typed legacy literal, whose string form includes fractional seconds and +00:00; the existing multi-partition date-format probing only accepts compact/date/datetime strings up to length 19, so valid TIMESTAMPTZ step partition DDL can fail before partition generation. Separately, Nereids LESS THAN translation now truncates extra boundary values with Math.min(...), which can turn an invalid range partition clause into a different valid catalog descriptor instead of preserving the values for catalog cardinality validation.

Critical checkpoint conclusions:

  • Goal/test coverage: the PR generally addresses typed partition literal handling and TIMESTAMPTZ timezone-safe boundaries with added unit/regression tests, but the coverage does not include TIMESTAMPTZ step/multi partitions or invalid over-wide LESS THAN bounds.
  • Scope/focus: the change is mostly focused, but removing late string parsing exposed several call paths that still depend on original partition literal text/arity.
  • Concurrency/lifecycle/config/persistence: no new concurrency, lifecycle, dynamic config, or EditLog persistence concerns were identified in the reviewed paths.
  • Compatibility/parallel paths: both legacy/catalog and Nereids partition construction paths are affected; the two comments identify parallel paths where the new typed conversion changes behavior.
  • Error handling/data correctness: the TIMESTAMPTZ step partition path rejects valid DDL, and the LESS THAN path can silently accept a malformed boundary with changed semantics.
  • Performance/observability: no material performance or observability issues found.

User focus: no additional user-provided review focus was supplied.

Comment thread fe/fe-core/src/main/java/org/apache/doris/analysis/MultiPartitionDesc.java Outdated
@starocean999
Copy link
Copy Markdown
Contributor Author

/review

@starocean999
Copy link
Copy Markdown
Contributor Author

run buildall

Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

I found additional correctness issues in separate partition translation paths. Existing threads already cover the PartitionKey literal coercion problem, TIMESTAMPTZ multi-partition formatting, and LESS THAN extra-boundary truncation/validation, so I did not duplicate those.

Critical checkpoint conclusions:

  • Goal/test: the PR aims to preserve typed partition literals, especially TIMESTAMPTZ boundaries, and adds regression/unit coverage, but malformed partition cardinality cases are not consistently covered.
  • Scope/focus: the approach is mostly focused, but the new typed casting was applied before validation in several entry points.
  • Concurrency/lifecycle/config/compatibility: no new concurrency, special lifecycle, config, persistence format, or FE-BE protocol compatibility concern was found in the reviewed paths.
  • Parallel paths: range LESS THAN received an explicit guard, but LIST, STEP, and ALTER multi-partition paths still have the same pre-validation cast hazard.
  • Error handling: malformed DDL can now throw index/cast failures before the existing partition descriptor validation produces a controlled user-facing error.
  • Tests: good TIMESTAMPTZ coverage was added, but negative cardinality tests for LIST/STEP/ALTER multi partitions are missing.
  • Observability/performance: no additional observability need or material performance concern was found.

User focus: no additional user-provided review focus.

@hello-stephen
Copy link
Copy Markdown
Contributor

FE UT Coverage Report

Increment line coverage 64.56% (133/206) 🎉
Increment coverage report
Complete coverage report

@hello-stephen
Copy link
Copy Markdown
Contributor

TPC-H: Total hot run time: 29121 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit a98396742d625c21e81d8531a32b86ab68884174, 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	17873	4180	4025	4025
q2	q3	10776	1453	801	801
q4	4687	477	358	358
q5	7584	880	602	602
q6	194	177	135	135
q7	780	860	642	642
q8	9479	1535	1608	1535
q9	5746	4498	4541	4498
q10	6683	1813	1521	1521
q11	421	273	251	251
q12	630	428	291	291
q13	18106	3359	2771	2771
q14	266	269	251	251
q15	q16	824	778	706	706
q17	1005	1007	815	815
q18	7118	5698	5537	5537
q19	1353	1262	1129	1129
q20	528	404	269	269
q21	6369	2821	2655	2655
q22	446	371	329	329
Total cold run time: 100868 ms
Total hot run time: 29121 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	5097	4700	4858	4700
q2	q3	4897	5279	4702	4702
q4	2134	2224	1405	1405
q5	4869	4855	4706	4706
q6	232	178	129	129
q7	1857	1736	1645	1645
q8	2421	2126	2071	2071
q9	7833	7806	7365	7365
q10	4755	4682	4229	4229
q11	532	394	362	362
q12	738	737	534	534
q13	3014	3383	2786	2786
q14	273	279	263	263
q15	q16	677	698	611	611
q17	1301	1266	1297	1266
q18	7239	6948	6813	6813
q19	1145	1096	1075	1075
q20	2219	2215	1951	1951
q21	5314	4653	4461	4461
q22	520	442	397	397
Total cold run time: 57067 ms
Total hot run time: 51471 ms

@hello-stephen
Copy link
Copy Markdown
Contributor

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

query5	4332	635	489	489
query6	452	207	192	192
query7	4895	546	314	314
query8	382	221	214	214
query9	8800	4040	4029	4029
query10	446	329	267	267
query11	5971	2343	2163	2163
query12	157	103	104	103
query13	1257	611	434	434
query14	6433	5467	5074	5074
query14_1	4388	4393	4382	4382
query15	204	196	175	175
query16	1023	437	420	420
query17	915	708	574	574
query18	2517	471	339	339
query19	202	182	146	146
query20	113	108	112	108
query21	219	137	123	123
query22	13659	13603	13471	13471
query23	17209	16531	16137	16137
query23_1	16377	16248	16285	16248
query24	7472	1779	1315	1315
query24_1	1310	1327	1314	1314
query25	538	467	416	416
query26	1317	323	169	169
query27	2704	510	342	342
query28	4453	2000	2036	2000
query29	1091	633	504	504
query30	310	243	206	206
query31	1127	1092	976	976
query32	113	64	61	61
query33	533	329	266	266
query34	1203	1165	654	654
query35	766	801	694	694
query36	1409	1426	1203	1203
query37	160	110	96	96
query38	3227	3167	3048	3048
query39	935	916	895	895
query39_1	891	904	890	890
query40	226	131	113	113
query41	72	70	70	70
query42	99	98	97	97
query43	327	337	282	282
query44	
query45	206	195	181	181
query46	1090	1244	740	740
query47	2388	2444	2259	2259
query48	390	440	314	314
query49	656	491	389	389
query50	991	368	266	266
query51	4360	4341	4231	4231
query52	91	91	80	80
query53	254	270	199	199
query54	290	272	230	230
query55	82	79	75	75
query56	251	275	241	241
query57	1444	1437	1350	1350
query58	263	235	216	216
query59	1601	1641	1466	1466
query60	299	263	239	239
query61	186	178	207	178
query62	694	680	588	588
query63	228	189	187	187
query64	2595	804	621	621
query65	
query66	1811	473	339	339
query67	29814	29701	29630	29630
query68	
query69	436	314	265	265
query70	994	963	905	905
query71	309	220	215	215
query72	3027	2754	2404	2404
query73	885	789	437	437
query74	5175	5074	4797	4797
query75	2656	2623	2240	2240
query76	2331	1132	768	768
query77	350	376	279	279
query78	12516	12628	11908	11908
query79	1504	1111	761	761
query80	1295	477	396	396
query81	525	285	252	252
query82	659	164	121	121
query83	353	274	254	254
query84	306	142	114	114
query85	931	539	432	432
query86	541	303	292	292
query87	3442	3365	3198	3198
query88	3616	2721	2717	2717
query89	433	383	332	332
query90	2005	184	180	180
query91	176	168	142	142
query92	68	60	59	59
query93	1631	1428	927	927
query94	733	377	306	306
query95	668	471	356	356
query96	1024	758	353	353
query97	2737	2737	2555	2555
query98	219	206	202	202
query99	1205	1208	1072	1072
Total cold run time: 253467 ms
Total hot run time: 169494 ms

@hello-stephen
Copy link
Copy Markdown
Contributor

FE Regression Coverage Report

Increment line coverage 78.16% (161/206) 🎉
Increment coverage report
Complete coverage report

@starocean999
Copy link
Copy Markdown
Contributor Author

/review

@starocean999
Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen
Copy link
Copy Markdown
Contributor

TPC-H: Total hot run time: 29626 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 9aa0374bdd2b91fa39dda66b6d3b8443c19f72e0, 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	17797	4230	4119	4119
q2	q3	10748	1372	858	858
q4	4681	481	346	346
q5	7614	882	579	579
q6	186	177	152	152
q7	802	868	627	627
q8	9551	1625	1651	1625
q9	6839	4479	4470	4470
q10	6863	1785	1519	1519
q11	455	282	257	257
q12	653	440	301	301
q13	18207	3775	2817	2817
q14	281	264	237	237
q15	q16	820	768	716	716
q17	1669	1062	857	857
q18	6630	5736	5656	5656
q19	1700	1396	1149	1149
q20	522	536	307	307
q21	6051	2828	2721	2721
q22	463	386	313	313
Total cold run time: 102532 ms
Total hot run time: 29626 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	5024	4964	5203	4964
q2	q3	5024	5318	4827	4827
q4	2238	2290	1472	1472
q5	5063	5031	4950	4950
q6	241	182	133	133
q7	1990	1881	1686	1686
q8	2500	2129	2062	2062
q9	7432	7493	7462	7462
q10	4736	4703	4203	4203
q11	550	409	377	377
q12	739	747	525	525
q13	3012	3447	2845	2845
q14	282	286	260	260
q15	q16	687	721	628	628
q17	1303	1268	1265	1265
q18	7548	6947	6826	6826
q19	1134	1113	1093	1093
q20	2234	2235	1960	1960
q21	5360	4651	4520	4520
q22	545	463	427	427
Total cold run time: 57642 ms
Total hot run time: 52485 ms

@hello-stephen
Copy link
Copy Markdown
Contributor

TPC-DS: Total hot run time: 169029 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 9aa0374bdd2b91fa39dda66b6d3b8443c19f72e0, data reload: false

query5	4333	629	475	475
query6	464	206	184	184
query7	4828	584	305	305
query8	358	216	214	214
query9	8729	4046	4043	4043
query10	484	308	258	258
query11	5934	2354	2173	2173
query12	157	99	97	97
query13	1263	620	434	434
query14	6520	5418	5095	5095
query14_1	4453	4443	4439	4439
query15	212	198	178	178
query16	1027	465	373	373
query17	1166	726	610	610
query18	2718	506	373	373
query19	214	200	152	152
query20	116	111	109	109
query21	224	145	125	125
query22	13719	13540	13383	13383
query23	17408	16470	16061	16061
query23_1	16361	16319	16233	16233
query24	7536	1774	1318	1318
query24_1	1338	1284	1300	1284
query25	553	442	380	380
query26	1295	315	170	170
query27	2685	550	343	343
query28	4402	2019	2021	2019
query29	1061	625	475	475
query30	320	240	202	202
query31	1122	1078	944	944
query32	106	61	60	60
query33	535	319	256	256
query34	1186	1147	675	675
query35	774	789	675	675
query36	1404	1380	1243	1243
query37	163	107	95	95
query38	3226	3141	3041	3041
query39	928	921	891	891
query39_1	876	880	880	880
query40	218	124	105	105
query41	76	63	64	63
query42	103	96	95	95
query43	334	331	278	278
query44	
query45	201	189	180	180
query46	1145	1215	762	762
query47	2372	2368	2234	2234
query48	410	408	309	309
query49	658	479	367	367
query50	1104	376	264	264
query51	4292	4388	4268	4268
query52	87	89	78	78
query53	257	274	194	194
query54	286	219	234	219
query55	79	76	70	70
query56	248	234	227	227
query57	1451	1435	1306	1306
query58	242	217	213	213
query59	1546	1701	1423	1423
query60	291	247	233	233
query61	157	157	156	156
query62	702	657	586	586
query63	232	188	183	183
query64	2523	782	625	625
query65	
query66	1747	466	353	353
query67	29859	29682	29567	29567
query68	
query69	424	304	275	275
query70	965	978	921	921
query71	315	222	212	212
query72	2989	2708	2370	2370
query73	847	811	447	447
query74	5145	4939	4787	4787
query75	2668	2569	2242	2242
query76	2325	1149	771	771
query77	352	378	302	302
query78	12197	12344	11938	11938
query79	1320	1072	747	747
query80	541	477	396	396
query81	446	277	249	249
query82	248	162	122	122
query83	299	280	253	253
query84	258	142	111	111
query85	862	521	469	469
query86	328	297	302	297
query87	3408	3354	3190	3190
query88	3662	2753	2735	2735
query89	414	385	335	335
query90	2205	174	177	174
query91	180	168	135	135
query92	64	62	62	62
query93	1433	1436	881	881
query94	532	342	303	303
query95	682	471	351	351
query96	1036	801	372	372
query97	2704	2739	2574	2574
query98	224	211	200	200
query99	1146	1169	1034	1034
Total cold run time: 251458 ms
Total hot run time: 169029 ms

Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

I found one build/style issue in the added FE test. The functional changes otherwise look consistent with the stated goal, and the previously known review threads were not duplicated.

Critical checkpoint conclusions:

  • Goal/test proof: The PR canonicalizes/typed-parses partition literals, especially TIMESTAMPTZ partition boundaries, and adds targeted unit/regression coverage. One added test has a Checkstyle indentation issue.
  • Scope/focus: The changes are mostly focused on partition literal typing and related tests.
  • Concurrency/lifecycle: No new concurrent state, locking, or special lifecycle management found in the reviewed paths.
  • Configuration/compatibility: No new configs. I did not find a new FE-BE protocol or storage-format compatibility concern beyond the already-known review context.
  • Parallel paths: Nereids CREATE/ALTER partition paths, MTMV partition rollup, and external partition cache conversions were checked. No additional distinct issue found.
  • Validation/error handling: Earlier cardinality/cast hazards are already covered by existing threads and appear addressed in the current checkout; no duplicate comments submitted.
  • Tests: Regression and unit coverage was added for TIMESTAMPTZ partition boundary behavior and malformed partition inputs, but the added Java test needs indentation fixed so FE style checks can pass.
  • Observability/performance/transactions: No new observability requirement, hot-path performance issue, or transaction/persistence issue found.

User focus: No additional user-provided review focus was specified.

alterMultiPartitionOp::getPartitionKeyDesc);
Assertions.assertTrue(exception.getMessage().contains("Invalid number format: 20.1"));
}

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.

This method declaration is indented one level deeper than the surrounding test methods, which should trip FE Checkstyle's indentation rule. Please align it with the @Test annotation.

Suggested change
public void testStepPartitionUsesCanonicalTimestampTzTextForMultiPartitionTranslation() throws Exception {

@starocean999
Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen
Copy link
Copy Markdown
Contributor

TPC-H: Total hot run time: 29332 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 684781042cacf9500624d3da7fba784f51239799, 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	17801	4068	4001	4001
q2	q3	10809	1370	818	818
q4	4693	474	343	343
q5	7623	883	587	587
q6	180	175	135	135
q7	762	831	657	657
q8	9355	1638	1681	1638
q9	5937	4541	4520	4520
q10	6761	1806	1550	1550
q11	438	268	252	252
q12	632	419	288	288
q13	18092	3357	2758	2758
q14	267	258	241	241
q15	q16	828	780	721	721
q17	998	973	972	972
q18	6919	5824	5581	5581
q19	1304	1320	976	976
q20	537	406	267	267
q21	6379	2808	2706	2706
q22	465	387	321	321
Total cold run time: 100780 ms
Total hot run time: 29332 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	5113	4764	4860	4764
q2	q3	4839	5249	4737	4737
q4	2096	2197	1362	1362
q5	4793	4854	4680	4680
q6	227	177	128	128
q7	1892	1803	1582	1582
q8	2438	2092	2083	2083
q9	7958	7565	7349	7349
q10	4723	4705	4215	4215
q11	524	385	355	355
q12	719	743	519	519
q13	2984	3399	2776	2776
q14	268	288	245	245
q15	q16	689	692	610	610
q17	1278	1249	1235	1235
q18	7124	6856	6827	6827
q19	1108	1084	1081	1081
q20	2221	2215	1959	1959
q21	5320	4639	4423	4423
q22	510	457	431	431
Total cold run time: 56824 ms
Total hot run time: 51361 ms

@hello-stephen
Copy link
Copy Markdown
Contributor

TPC-DS: Total hot run time: 168961 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 684781042cacf9500624d3da7fba784f51239799, data reload: false

query5	4319	639	489	489
query6	436	202	184	184
query7	4839	548	301	301
query8	369	210	200	200
query9	8799	4124	4098	4098
query10	460	310	261	261
query11	5902	2348	2195	2195
query12	152	104	101	101
query13	1274	610	440	440
query14	6454	5428	5087	5087
query14_1	4430	4399	4398	4398
query15	209	201	176	176
query16	999	445	441	441
query17	1130	711	609	609
query18	2590	490	357	357
query19	205	188	146	146
query20	115	108	110	108
query21	232	140	129	129
query22	13728	13583	13423	13423
query23	17485	16473	16315	16315
query23_1	16322	16304	16397	16304
query24	7438	1790	1317	1317
query24_1	1302	1300	1311	1300
query25	563	440	379	379
query26	1310	325	163	163
query27	2669	569	339	339
query28	4427	2009	2037	2009
query29	1057	599	476	476
query30	311	240	198	198
query31	1118	1076	958	958
query32	106	63	58	58
query33	517	312	257	257
query34	1180	1142	669	669
query35	745	772	692	692
query36	1433	1396	1266	1266
query37	153	104	92	92
query38	3210	3187	3082	3082
query39	924	937	894	894
query39_1	873	883	870	870
query40	217	123	100	100
query41	66	64	63	63
query42	101	96	95	95
query43	328	328	275	275
query44	
query45	199	185	179	179
query46	1091	1178	735	735
query47	2366	2388	2217	2217
query48	395	408	297	297
query49	636	500	346	346
query50	977	352	251	251
query51	4304	4286	4239	4239
query52	88	88	77	77
query53	251	277	195	195
query54	271	214	195	195
query55	77	74	69	69
query56	230	231	212	212
query57	1447	1428	1304	1304
query58	250	214	212	212
query59	1592	1670	1464	1464
query60	294	248	230	230
query61	157	157	161	157
query62	699	649	585	585
query63	234	185	190	185
query64	2542	760	611	611
query65	
query66	1773	462	347	347
query67	29713	29603	28847	28847
query68	
query69	422	302	265	265
query70	978	949	922	922
query71	307	238	206	206
query72	3008	2794	2363	2363
query73	851	782	432	432
query74	5181	4932	4751	4751
query75	2648	2593	2237	2237
query76	2367	1146	803	803
query77	348	380	290	290
query78	12296	12301	11926	11926
query79	1247	1045	786	786
query80	526	470	392	392
query81	458	280	245	245
query82	233	161	123	123
query83	269	275	249	249
query84	270	138	108	108
query85	846	542	421	421
query86	344	293	296	293
query87	3344	3382	3171	3171
query88	3611	2773	2738	2738
query89	415	381	333	333
query90	2206	173	179	173
query91	172	161	142	142
query92	69	64	52	52
query93	1445	1420	864	864
query94	531	372	321	321
query95	678	381	445	381
query96	1038	785	327	327
query97	2717	2682	2598	2598
query98	213	205	206	205
query99	1161	1165	1024	1024
Total cold run time: 250631 ms
Total hot run time: 168961 ms

@hello-stephen
Copy link
Copy Markdown
Contributor

FE Regression Coverage Report

Increment line coverage 65.67% (220/335) 🎉
Increment coverage report
Complete coverage report

@starocean999
Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen
Copy link
Copy Markdown
Contributor

FE Regression Coverage Report

Increment line coverage 55.07% (239/434) 🎉
Increment coverage report
Complete coverage report

@hello-stephen
Copy link
Copy Markdown
Contributor

TPC-H: Total hot run time: 29183 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit a6a73207327602e6900f8c0ab12a6dc33cb3d1ed, 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	17599	4036	4029	4029
q2	q3	10759	1348	832	832
q4	4706	475	339	339
q5	7564	881	585	585
q6	186	176	135	135
q7	771	857	657	657
q8	9384	1680	1603	1603
q9	5786	4467	4465	4465
q10	6728	1801	1549	1549
q11	432	269	258	258
q12	639	421	285	285
q13	18087	3388	2769	2769
q14	266	258	242	242
q15	q16	819	782	708	708
q17	979	989	850	850
q18	6884	5675	5570	5570
q19	1302	1242	1102	1102
q20	523	411	256	256
q21	6166	2788	2631	2631
q22	477	369	318	318
Total cold run time: 100057 ms
Total hot run time: 29183 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	4998	4747	4826	4747
q2	q3	4949	5349	4760	4760
q4	2162	2199	1514	1514
q5	4747	4870	4646	4646
q6	235	188	126	126
q7	1839	1714	1667	1667
q8	2380	2077	2026	2026
q9	7885	7930	7484	7484
q10	4729	4685	4187	4187
q11	526	379	349	349
q12	727	749	526	526
q13	3013	3375	2830	2830
q14	273	281	256	256
q15	q16	678	693	613	613
q17	1289	1245	1253	1245
q18	7309	6959	6814	6814
q19	1115	1095	1086	1086
q20	2211	2187	1940	1940
q21	5260	4518	4396	4396
q22	501	438	401	401
Total cold run time: 56826 ms
Total hot run time: 51613 ms

@hello-stephen
Copy link
Copy Markdown
Contributor

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

query5	4337	627	491	491
query6	428	207	195	195
query7	4818	555	298	298
query8	373	216	216	216
query9	8795	4005	4010	4005
query10	466	328	254	254
query11	5914	2331	2115	2115
query12	159	103	99	99
query13	1251	614	434	434
query14	6409	5399	5039	5039
query14_1	4386	4358	4396	4358
query15	201	196	175	175
query16	983	469	419	419
query17	1093	710	561	561
query18	2467	479	336	336
query19	197	183	145	145
query20	110	109	107	107
query21	226	142	114	114
query22	13628	13473	13468	13468
query23	17497	16432	16198	16198
query23_1	16299	16373	16271	16271
query24	7442	1763	1308	1308
query24_1	1287	1325	1305	1305
query25	590	472	413	413
query26	1338	309	173	173
query27	2670	558	348	348
query28	4497	2023	2050	2023
query29	1110	632	508	508
query30	308	240	203	203
query31	1151	1078	964	964
query32	109	67	67	67
query33	552	329	283	283
query34	1180	1117	661	661
query35	764	828	684	684
query36	1408	1417	1227	1227
query37	154	107	93	93
query38	3200	3157	2996	2996
query39	950	919	894	894
query39_1	872	896	881	881
query40	232	130	105	105
query41	77	69	68	68
query42	99	98	100	98
query43	323	325	287	287
query44	
query45	199	201	194	194
query46	1110	1198	784	784
query47	2422	2392	2314	2314
query48	405	436	299	299
query49	653	486	365	365
query50	1007	349	258	258
query51	4361	4294	4286	4286
query52	92	91	80	80
query53	245	275	196	196
query54	299	242	217	217
query55	83	80	73	73
query56	249	237	240	237
query57	1465	1430	1368	1368
query58	259	227	223	223
query59	1595	1669	1457	1457
query60	302	266	249	249
query61	195	205	161	161
query62	693	664	598	598
query63	229	186	186	186
query64	2573	793	637	637
query65	
query66	1780	475	341	341
query67	29783	29734	29476	29476
query68	
query69	425	310	262	262
query70	938	991	917	917
query71	310	231	212	212
query72	3152	2746	2407	2407
query73	811	738	423	423
query74	5157	4988	4772	4772
query75	2667	2611	2244	2244
query76	2326	1135	761	761
query77	346	381	277	277
query78	12337	12480	11906	11906
query79	1431	1056	781	781
query80	615	472	394	394
query81	450	280	246	246
query82	569	158	127	127
query83	341	282	248	248
query84	262	157	112	112
query85	874	533	436	436
query86	362	289	290	289
query87	3355	3368	3211	3211
query88	3614	2744	2734	2734
query89	433	386	328	328
query90	1960	187	180	180
query91	181	166	136	136
query92	63	60	60	60
query93	1543	1457	939	939
query94	551	341	305	305
query95	682	402	353	353
query96	1070	792	352	352
query97	2696	2694	2569	2569
query98	207	207	205	205
query99	1161	1170	1059	1059
Total cold run time: 251695 ms
Total hot run time: 169983 ms

@starocean999
Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen
Copy link
Copy Markdown
Contributor

TPC-H: Total hot run time: 28865 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit e5bc1fd95269d212c61cbd5abf00b91d7ad037ef, 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	17683	3942	3918	3918
q2	q3	10835	1392	824	824
q4	4686	507	358	358
q5	7556	878	578	578
q6	187	171	140	140
q7	759	866	651	651
q8	9436	1451	1437	1437
q9	5789	4473	4493	4473
q10	6825	1782	1544	1544
q11	431	272	248	248
q12	625	418	292	292
q13	18186	3398	2781	2781
q14	263	250	245	245
q15	q16	813	763	716	716
q17	990	879	997	879
q18	6843	5853	5560	5560
q19	1328	1313	1035	1035
q20	525	395	266	266
q21	6246	2786	2609	2609
q22	464	376	311	311
Total cold run time: 100470 ms
Total hot run time: 28865 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	5144	4585	4874	4585
q2	q3	4858	5290	4635	4635
q4	2082	2172	1393	1393
q5	4819	4899	4629	4629
q6	229	175	125	125
q7	1859	1756	1612	1612
q8	2481	2110	2092	2092
q9	7933	7680	7434	7434
q10	4713	4738	4224	4224
q11	516	382	355	355
q12	715	729	521	521
q13	2976	3373	2810	2810
q14	267	284	253	253
q15	q16	679	707	620	620
q17	1265	1252	1238	1238
q18	7195	6793	6755	6755
q19	1083	1113	1109	1109
q20	2215	2213	1932	1932
q21	5218	4580	4426	4426
q22	533	476	401	401
Total cold run time: 56780 ms
Total hot run time: 51149 ms

@hello-stephen
Copy link
Copy Markdown
Contributor

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

query5	4335	645	476	476
query6	433	192	178	178
query7	4873	580	312	312
query8	364	215	208	208
query9	8732	3979	3987	3979
query10	449	327	261	261
query11	5984	2363	2211	2211
query12	165	108	99	99
query13	1257	606	439	439
query14	6382	5429	5079	5079
query14_1	4418	4392	4384	4384
query15	213	202	179	179
query16	1004	446	442	442
query17	1134	728	608	608
query18	2456	476	350	350
query19	206	190	149	149
query20	126	107	110	107
query21	220	143	120	120
query22	13604	13575	13337	13337
query23	17279	16448	16107	16107
query23_1	16276	16374	16361	16361
query24	7521	1762	1327	1327
query24_1	1326	1304	1330	1304
query25	580	463	414	414
query26	1303	313	170	170
query27	2655	544	356	356
query28	4475	2018	1999	1999
query29	1086	633	501	501
query30	314	243	200	200
query31	1135	1089	959	959
query32	115	64	66	64
query33	541	331	260	260
query34	1192	1112	651	651
query35	754	822	676	676
query36	1395	1372	1225	1225
query37	151	110	94	94
query38	3227	3134	3046	3046
query39	923	920	882	882
query39_1	897	877	861	861
query40	218	122	103	103
query41	67	64	62	62
query42	92	92	96	92
query43	316	321	276	276
query44	
query45	196	183	179	179
query46	1118	1188	731	731
query47	2384	2440	2207	2207
query48	401	403	290	290
query49	631	467	346	346
query50	964	343	253	253
query51	4308	4306	4248	4248
query52	89	90	76	76
query53	248	265	189	189
query54	259	214	198	198
query55	78	78	71	71
query56	235	222	226	222
query57	1406	1394	1310	1310
query58	236	217	202	202
query59	1586	1631	1404	1404
query60	271	245	226	226
query61	159	154	156	154
query62	702	650	571	571
query63	227	187	184	184
query64	2544	787	641	641
query65	
query66	1790	466	346	346
query67	29792	29721	29639	29639
query68	
query69	424	309	312	309
query70	999	985	938	938
query71	289	228	211	211
query72	3051	2738	2371	2371
query73	828	763	450	450
query74	5172	4927	4752	4752
query75	2654	2566	2245	2245
query76	2353	1173	782	782
query77	353	375	288	288
query78	12417	12553	11965	11965
query79	1423	1044	775	775
query80	604	473	403	403
query81	448	283	248	248
query82	572	158	119	119
query83	374	305	253	253
query84	269	138	114	114
query85	881	538	434	434
query86	371	311	286	286
query87	3348	3348	3164	3164
query88	3605	2733	2742	2733
query89	434	377	330	330
query90	2027	184	177	177
query91	178	167	135	135
query92	62	58	59	58
query93	1451	1428	870	870
query94	537	349	321	321
query95	700	472	350	350
query96	1061	784	325	325
query97	2704	2697	2607	2607
query98	210	204	211	204
query99	1144	1171	1026	1026
Total cold run time: 251013 ms
Total hot run time: 168974 ms

@hello-stephen
Copy link
Copy Markdown
Contributor

FE UT Coverage Report

Increment line coverage 70.05% (262/374) 🎉
Increment coverage report
Complete coverage report

@hello-stephen
Copy link
Copy Markdown
Contributor

FE Regression Coverage Report

Increment line coverage 61.50% (230/374) 🎉
Increment coverage report
Complete coverage report

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.

2 participants