You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "codeDing18 (via GitHub)" <gi...@apache.org> on 2025/12/03 06:43:20 UTC
[PR] [Enhancement](function) The date_add function supports SECOND_MICROSECOND as interval type [doris]
codeDing18 opened a new pull request, #58665:
URL: https://github.com/apache/doris/pull/58665
### What problem does this PR solve?
The date_add function supports new type: SECOND_MICROSECOND, now we can use a string in the format 'second.microsecond' as the INTERVAL parameter.
```
mysql> select date_add("2025-10-10", INTERVAL "-1.-1" SECOND_MICROSECOND);
+-------------------------------------------------------------+
| date_add("2025-10-10", INTERVAL "-1.-1" SECOND_MICROSECOND) |
+-------------------------------------------------------------+
| 2025-10-09 23:59:58.900000 |
+-------------------------------------------------------------+
```
### Release note
None
### Check List (For Author)
- Test <!-- At least one of them must be included. -->
- [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 <!-- Add your reason? -->
- Behavior changed:
- [ ] No.
- [ ] Yes. <!-- Explain the behavior change -->
- Does this need documentation?
- [ ] No.
- [x] Yes. <!-- Add document PR link here. eg: https://github.com/apache/doris-website/pull/1214 -->
### Check List (For Reviewer who merge this PR)
- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR should merge into -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Enhancement](function) The date_add function supports SECOND_MICROSECOND as interval type [doris]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #58665:
URL: https://github.com/apache/doris/pull/58665#issuecomment-3614142882
PR approved by at least one committer and no changes requested.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Enhancement](function) The date_add function supports SECOND_MICROSECOND as interval type [doris]
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #58665:
URL: https://github.com/apache/doris/pull/58665#issuecomment-3609658793
<details>
<summary>TPC-H: <b>Total hot run time: 34501 ms</b></summary>
```
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 728990e3795ef3b98180f8a2d53c1aaf6bc0fdab, data reload: false
------ Round 1 ----------------------------------
q1 17668 4996 4924 4924
q2 2057 328 199 199
q3 10232 1306 735 735
q4 10206 794 319 319
q5 7531 2425 2109 2109
q6 189 170 139 139
q7 948 802 637 637
q8 10120 1425 1114 1114
q9 7144 5438 5437 5437
q10 6860 2229 1851 1851
q11 528 316 304 304
q12 349 384 233 233
q13 18407 3633 2981 2981
q14 234 235 216 216
q15 586 515 515 515
q16 868 863 805 805
q17 679 738 510 510
q18 7613 7144 7107 7107
q19 1149 938 613 613
q20 361 343 233 233
q21 3962 3217 2593 2593
q22 1018 966 927 927
Total cold run time: 108709 ms
Total hot run time: 34501 ms
----- Round 2, with runtime_filter_mode=off -----
q1 4981 4918 4893 4893
q2 332 416 318 318
q3 2143 2660 2327 2327
q4 1337 1772 1321 1321
q5 4221 4536 4535 4535
q6 216 169 132 132
q7 2049 2056 1864 1864
q8 2757 2522 2472 2472
q9 7510 7593 7522 7522
q10 3101 3257 2820 2820
q11 606 526 502 502
q12 715 732 826 732
q13 3433 3856 3333 3333
q14 282 413 410 410
q15 557 512 510 510
q16 892 905 880 880
q17 1175 1427 1489 1427
q18 7919 7648 7539 7539
q19 985 833 867 833
q20 2005 2065 1910 1910
q21 4910 4300 4161 4161
q22 1130 1032 974 974
Total cold run time: 53256 ms
Total hot run time: 51415 ms
```
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Enhancement](function) The date_add function supports SECOND_MICROSECOND as interval type [doris]
Posted by "linrrzqqq (via GitHub)" <gi...@apache.org>.
linrrzqqq commented on code in PR #58665:
URL: https://github.com/apache/doris/pull/58665#discussion_r2584867718
##########
be/test/vec/function/function_time_test.cpp:
##########
@@ -1230,6 +1230,41 @@ TEST(VTimestampFunctionsTest, minute_second_add_v2_test) {
}
}
+TEST(VTimestampFunctionsTest, second_microsecond_add_v2_test) {
+ std::string func_name = "second_microsecond_add";
+
+ InputTypeSet input_types = {PrimitiveType::TYPE_DATETIMEV2,
+ Consted {PrimitiveType::TYPE_STRING}};
+
+ {
+ DataSet data_set = {
+ {{std::string("2020-10-23 00:00:11.123456"), std::string("1.1")},
+ std::string("2020-10-23 00:00:12.223456")},
+ };
+
+ static_cast<void>(
+ check_function<DataTypeDateTimeV2, true>(func_name, input_types, data_set));
Review Comment:
```suggestion
static_cast<void>(
check_function<DataTypeDateTimeV2, true>(func_name, input_types, data_set, 6));
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Enhancement](function) The date_add function supports SECOND_MICROSECOND as interval type [doris]
Posted by "codeDing18 (via GitHub)" <gi...@apache.org>.
codeDing18 commented on PR #58665:
URL: https://github.com/apache/doris/pull/58665#issuecomment-3609503421
run feut
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Enhancement](function) The date_add function supports SECOND_MICROSECOND as interval type [doris]
Posted by "codeDing18 (via GitHub)" <gi...@apache.org>.
codeDing18 commented on PR #58665:
URL: https://github.com/apache/doris/pull/58665#issuecomment-3605355315
run buildall
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Enhancement](function) The date_add function supports SECOND_MICROSECOND as interval type [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #58665:
URL: https://github.com/apache/doris/pull/58665#issuecomment-3607542322
# FE Regression Coverage Report
Increment line coverage ` 79.49% (31/39)` :tada:
[Increment coverage report](http://coverage.selectdb-in.cc/coverage/58665_4f891f9f71e62ed79060251b3fac4511fffbda39_merge_fe/increment_report/index.html)
[Complete coverage report](http://coverage.selectdb-in.cc/coverage/58665_4f891f9f71e62ed79060251b3fac4511fffbda39_merge_fe/report/index.html)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Enhancement](function) The date_add function supports SECOND_MICROSECOND as interval type [doris]
Posted by "codeDing18 (via GitHub)" <gi...@apache.org>.
codeDing18 commented on PR #58665:
URL: https://github.com/apache/doris/pull/58665#issuecomment-3609818402
run compile
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Enhancement](function) The date_add function supports SECOND_MICROSECOND as interval type [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #58665:
URL: https://github.com/apache/doris/pull/58665#issuecomment-3610481835
# BE Regression && UT Coverage Report
Increment line coverage `85.71% (42/49)` :tada:
[Increment coverage report](http://coverage.selectdb-in.cc/coverage/58665_728990e3795ef3b98180f8a2d53c1aaf6bc0fdab_merge/increment_report/index.html)
[Complete coverage report](http://coverage.selectdb-in.cc/coverage/58665_728990e3795ef3b98180f8a2d53c1aaf6bc0fdab_merge/report/index.html)
| Category | Coverage |
|-------------------|--------------------|
| Function Coverage | 71.89% (24623/34253) |
| Line Coverage | 58.54% (258015/440722) |
| Region Coverage | 53.53% (214649/401011) |
| Branch Coverage | 55.01% (91702/166688) |
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Enhancement](function) The date_add function supports SECOND_MICROSECOND as interval type [doris]
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #58665:
URL: https://github.com/apache/doris/pull/58665#issuecomment-3606783587
<details>
<summary>ClickBench: <b>Total hot run time: 27.56 s</b></summary>
```
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit 4f891f9f71e62ed79060251b3fac4511fffbda39, data reload: false
query1 0.05 0.05 0.05
query2 0.10 0.05 0.04
query3 0.27 0.10 0.09
query4 1.60 0.11 0.11
query5 0.27 0.27 0.25
query6 1.15 0.65 0.63
query7 0.03 0.02 0.03
query8 0.06 0.04 0.04
query9 0.57 0.50 0.51
query10 0.57 0.55 0.56
query11 0.16 0.11 0.11
query12 0.15 0.11 0.12
query13 0.63 0.60 0.61
query14 0.98 0.98 0.99
query15 0.82 0.79 0.80
query16 0.43 0.40 0.40
query17 1.05 1.06 1.04
query18 0.27 0.22 0.21
query19 1.98 1.83 1.86
query20 0.01 0.01 0.02
query21 15.45 0.25 0.14
query22 4.97 0.05 0.04
query23 16.08 0.29 0.11
query24 1.18 0.62 0.46
query25 0.10 0.05 0.05
query26 0.14 0.14 0.14
query27 0.06 0.05 0.06
query28 3.97 1.22 1.02
query29 12.60 3.99 3.29
query30 0.27 0.14 0.11
query31 2.83 0.62 0.39
query32 3.24 0.55 0.45
query33 3.00 3.06 3.04
query34 16.90 5.23 4.58
query35 4.61 4.57 4.48
query36 0.66 0.50 0.50
query37 0.10 0.06 0.06
query38 0.07 0.05 0.03
query39 0.04 0.04 0.03
query40 0.16 0.14 0.14
query41 0.09 0.04 0.03
query42 0.05 0.03 0.03
query43 0.04 0.04 0.03
Total cold run time: 97.76 s
Total hot run time: 27.56 s
```
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Enhancement](function) The date_add function supports SECOND_MICROSECOND as interval type [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #58665:
URL: https://github.com/apache/doris/pull/58665#issuecomment-3605333553
Thank you for your contribution to Apache Doris.
Don't know what should be done next? See [How to process your PR](https://cwiki.apache.org/confluence/display/DORIS/How+to+process+your+PR).
Please clearly describe your PR:
1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
3. What features were added. Why was this function added?
4. Which code was refactored and why was this part of the code refactored?
5. Which functions were optimized and what is the difference before and after the optimization?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Enhancement](function) The date_add function supports SECOND_MICROSECOND as interval type [doris]
Posted by "codeDing18 (via GitHub)" <gi...@apache.org>.
codeDing18 commented on PR #58665:
URL: https://github.com/apache/doris/pull/58665#issuecomment-3605413911
run feut
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Enhancement](function) The date_add function supports SECOND_MICROSECOND as interval type [doris]
Posted by "linrrzqqq (via GitHub)" <gi...@apache.org>.
linrrzqqq commented on code in PR #58665:
URL: https://github.com/apache/doris/pull/58665#discussion_r2584866139
##########
be/test/vec/function/function_time_test.cpp:
##########
@@ -1230,6 +1230,41 @@ TEST(VTimestampFunctionsTest, minute_second_add_v2_test) {
}
}
+TEST(VTimestampFunctionsTest, second_microsecond_add_v2_test) {
+ std::string func_name = "second_microsecond_add";
+
+ InputTypeSet input_types = {PrimitiveType::TYPE_DATETIMEV2,
+ Consted {PrimitiveType::TYPE_STRING}};
Review Comment:
```suggestion
InputTypeSet input_types = {{PrimitiveType::TYPE_DATETIMEV2, 6}
Consted {PrimitiveType::TYPE_STRING}};
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Enhancement](function) The date_add function supports SECOND_MICROSECOND as interval type [doris]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #58665:
URL: https://github.com/apache/doris/pull/58665#issuecomment-3606575552
PR approved by anyone and no changes requested.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Enhancement](function) The date_add function supports SECOND_MICROSECOND as interval type [doris]
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #58665:
URL: https://github.com/apache/doris/pull/58665#issuecomment-3606762650
<details>
<summary>TPC-DS: <b>Total hot run time: 181697 ms</b></summary>
```
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit 4f891f9f71e62ed79060251b3fac4511fffbda39, data reload: false
query1 1069 417 400 400
query2 6569 1209 1179 1179
query3 6745 230 227 227
query4 25480 23511 22928 22928
query5 5254 624 501 501
query6 360 246 247 246
query7 4658 517 313 313
query8 331 245 248 245
query9 8719 2678 2681 2678
query10 593 386 313 313
query11 15368 15108 14514 14514
query12 196 115 113 113
query13 1685 566 448 448
query14 10140 5903 5987 5903
query15 206 200 185 185
query16 7658 689 535 535
query17 1287 763 615 615
query18 2049 457 328 328
query19 206 205 174 174
query20 129 131 123 123
query21 221 135 113 113
query22 3979 3923 3815 3815
query23 32829 31906 31865 31865
query24 8399 2444 2427 2427
query25 602 518 468 468
query26 1247 281 169 169
query27 2723 503 357 357
query28 4395 2205 2190 2190
query29 812 615 481 481
query30 319 236 216 216
query31 858 699 629 629
query32 85 74 71 71
query33 589 385 332 332
query34 842 867 541 541
query35 783 807 748 748
query36 888 920 837 837
query37 131 115 92 92
query38 3907 3838 3814 3814
query39 1454 1418 1395 1395
query40 227 135 123 123
query41 68 63 62 62
query42 133 119 114 114
query43 451 444 418 418
query44 1335 775 763 763
query45 198 195 188 188
query46 906 1004 654 654
query47 1687 1715 1628 1628
query48 406 452 334 334
query49 785 514 424 424
query50 697 728 405 405
query51 3988 3968 3842 3842
query52 118 112 110 110
query53 242 264 197 197
query54 329 320 303 303
query55 97 100 98 98
query56 367 337 345 337
query57 1141 1170 1116 1116
query58 299 291 275 275
query59 2321 2433 2354 2354
query60 372 364 362 362
query61 194 192 184 184
query62 842 746 643 643
query63 245 199 199 199
query64 4613 1357 1027 1027
query65 4048 3976 3989 3976
query66 1103 462 349 349
query67 15228 14838 14927 14838
query68 7753 998 648 648
query69 516 353 316 316
query70 1144 1091 968 968
query71 443 359 325 325
query72 6101 4892 5024 4892
query73 680 573 346 346
query74 8868 8739 8633 8633
query75 3071 3026 2575 2575
query76 3306 1137 741 741
query77 521 419 339 339
query78 9538 9606 8767 8767
query79 2689 846 590 590
query80 679 586 510 510
query81 526 271 244 244
query82 488 140 109 109
query83 265 268 255 255
query84 260 121 103 103
query85 941 497 469 469
query86 387 310 274 274
query87 4042 4028 4018 4018
query88 4257 2256 2252 2252
query89 390 329 295 295
query90 2077 223 210 210
query91 177 172 142 142
query92 82 71 67 67
query93 2502 1036 672 672
query94 739 498 337 337
query95 516 404 415 404
query96 544 556 290 290
query97 2640 2670 2614 2614
query98 260 216 213 213
query99 1282 1366 1228 1228
Total cold run time: 273889 ms
Total hot run time: 181697 ms
```
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Enhancement](function) The date_add function supports SECOND_MICROSECOND as interval type [doris]
Posted by "codeDing18 (via GitHub)" <gi...@apache.org>.
codeDing18 commented on PR #58665:
URL: https://github.com/apache/doris/pull/58665#issuecomment-3605334033
run buildall
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Enhancement](function) The date_add function supports SECOND_MICROSECOND as interval type [doris]
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #58665:
URL: https://github.com/apache/doris/pull/58665#issuecomment-3609705066
<details>
<summary>TPC-DS: <b>Total hot run time: 181717 ms</b></summary>
```
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit 728990e3795ef3b98180f8a2d53c1aaf6bc0fdab, data reload: false
query5 4372 658 513 513
query6 344 246 228 228
query7 4653 520 310 310
query8 329 256 232 232
query9 8700 2626 2637 2626
query10 538 373 322 322
query11 15261 14786 14974 14786
query12 198 119 118 118
query13 1701 589 455 455
query14 6481 3279 3021 3021
query14_1 2928 2942 2941 2941
query15 223 205 180 180
query16 7703 695 539 539
query17 1257 796 636 636
query18 2064 446 351 351
query19 220 216 196 196
query20 134 129 125 125
query21 222 141 122 122
query22 3998 3902 3899 3899
query23 16523 16171 15878 15878
query23_1 16148 16078 16111 16078
query24 6842 1637 1215 1215
query24_1 1203 1211 1224 1211
query25 648 558 493 493
query26 1258 288 174 174
query27 2702 503 352 352
query28 4329 2159 2154 2154
query29 826 662 532 532
query30 324 245 219 219
query31 824 710 634 634
query32 90 77 82 77
query33 623 403 354 354
query34 828 894 584 584
query35 795 811 721 721
query36 906 927 828 828
query37 128 120 88 88
query38 3858 3872 3783 3783
query39 770 723 715 715
query39_1 702 698 696 696
query40 229 133 121 121
query41 69 61 60 60
query42 129 110 124 110
query43 445 444 418 418
query44 1309 762 762 762
query45 199 194 183 183
query46 891 1007 678 678
query47 1649 1765 1637 1637
query48 413 421 321 321
query49 788 493 420 420
query50 675 701 405 405
query51 3867 3892 3927 3892
query52 117 113 105 105
query53 245 259 200 200
query54 314 296 282 282
query55 102 97 93 93
query56 340 346 347 346
query57 1131 1149 1109 1109
query58 325 287 272 272
query59 2333 2413 2282 2282
query60 357 338 332 332
query61 162 166 160 160
query62 768 722 651 651
query63 224 190 194 190
query64 4465 1257 892 892
query65 4036 3945 3990 3945
query66 1099 441 334 334
query67 15369 14941 14923 14923
query68 8325 997 642 642
query69 519 350 307 307
query70 1121 1021 1007 1007
query71 480 342 321 321
query72 5786 4883 4834 4834
query73 704 569 343 343
query74 8875 8859 8660 8660
query75 3688 3050 2485 2485
query76 3753 1133 754 754
query77 814 403 310 310
query78 9403 9684 8885 8885
query79 2272 843 595 595
query80 658 598 491 491
query81 512 273 244 244
query82 475 139 111 111
query83 272 272 250 250
query84 264 114 88 88
query85 952 498 442 442
query86 398 297 290 290
query87 4012 4106 3978 3978
query88 4164 2270 2273 2270
query89 389 331 297 297
query90 1865 220 213 213
query91 165 182 135 135
query92 80 74 69 69
query93 1925 1025 680 680
query94 727 445 335 335
query95 505 413 406 406
query96 540 554 290 290
query97 2618 2693 2584 2584
query98 245 207 213 207
query99 1348 1370 1275 1275
Total cold run time: 271752 ms
Total hot run time: 181717 ms
```
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Enhancement](function) The date_add function supports SECOND_MICROSECOND as interval type [doris]
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #58665:
URL: https://github.com/apache/doris/pull/58665#issuecomment-3606717917
<details>
<summary>TPC-H: <b>Total hot run time: 35668 ms</b></summary>
```
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 4f891f9f71e62ed79060251b3fac4511fffbda39, data reload: false
------ Round 1 ----------------------------------
q1 17605 5114 4925 4925
q2 2042 327 202 202
q3 10236 1334 738 738
q4 10227 880 334 334
q5 7531 2442 2140 2140
q6 185 165 137 137
q7 948 793 651 651
q8 9354 1403 1078 1078
q9 7018 5269 5334 5269
q10 6789 2192 1764 1764
q11 521 320 294 294
q12 346 385 233 233
q13 17776 3715 3076 3076
q14 243 239 215 215
q15 574 540 510 510
q16 894 855 808 808
q17 670 760 588 588
q18 7656 7503 7917 7503
q19 1262 1023 641 641
q20 402 384 239 239
q21 4322 3937 3330 3330
q22 1110 1047 993 993
Total cold run time: 107711 ms
Total hot run time: 35668 ms
----- Round 2, with runtime_filter_mode=off -----
q1 5203 5164 5223 5164
q2 339 503 358 358
q3 2281 2732 2583 2583
q4 1463 1943 1428 1428
q5 4545 4434 4523 4434
q6 210 165 127 127
q7 2035 1965 1776 1776
q8 2734 2576 2496 2496
q9 7443 7467 7459 7459
q10 3066 3216 2827 2827
q11 589 531 500 500
q12 707 740 614 614
q13 3353 3613 2987 2987
q14 269 280 261 261
q15 542 494 488 488
q16 873 894 833 833
q17 1148 1328 1369 1328
q18 7356 6981 7033 6981
q19 870 831 837 831
q20 1912 1967 1806 1806
q21 4616 4399 4110 4110
q22 1085 1026 988 988
Total cold run time: 52639 ms
Total hot run time: 50379 ms
```
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Enhancement](function) The date_add function supports SECOND_MICROSECOND as interval type [doris]
Posted by "zclllyybb (via GitHub)" <gi...@apache.org>.
zclllyybb commented on PR #58665:
URL: https://github.com/apache/doris/pull/58665#issuecomment-3605399883
@linrrzqqq PTAL
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Enhancement](function) The date_add function supports SECOND_MICROSECOND as interval type [doris]
Posted by "codeDing18 (via GitHub)" <gi...@apache.org>.
codeDing18 merged PR #58665:
URL: https://github.com/apache/doris/pull/58665
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Enhancement](function) The date_add function supports SECOND_MICROSECOND as interval type [doris]
Posted by "linrrzqqq (via GitHub)" <gi...@apache.org>.
linrrzqqq commented on code in PR #58665:
URL: https://github.com/apache/doris/pull/58665#discussion_r2584875822
##########
fe/fe-core/src/test/java/org/apache/doris/nereids/rules/expression/FoldConstantTest.java:
##########
@@ -467,6 +468,22 @@ void testFoldDate() {
new VarcharLiteral("-2:-1"));
rewritten = executor.rewrite(minuteSecondAdd, context);
Assertions.assertEquals(minuteSecondAdd, rewritten);
+
+ SecondMicrosecondAdd secondMicrosecondAdd = new SecondMicrosecondAdd(
+ DateTimeV2Literal.fromJavaDateType(LocalDateTime.of(1, 1, 1, 1, 1, 1), 0),
Review Comment:
```suggestion
DateTimeV2Literal.fromJavaDateType(LocalDateTime.of(1, 1, 1, 1, 1, 1), 6),
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Enhancement](function) The date_add function supports SECOND_MICROSECOND as interval type [doris]
Posted by "codeDing18 (via GitHub)" <gi...@apache.org>.
codeDing18 commented on PR #58665:
URL: https://github.com/apache/doris/pull/58665#issuecomment-3606625035
run buildall
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Enhancement](function) The date_add function supports SECOND_MICROSECOND as interval type [doris]
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #58665:
URL: https://github.com/apache/doris/pull/58665#issuecomment-3609730809
<details>
<summary>ClickBench: <b>Total hot run time: 27.37 s</b></summary>
```
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit 728990e3795ef3b98180f8a2d53c1aaf6bc0fdab, data reload: false
query1 0.05 0.05 0.05
query2 0.10 0.05 0.05
query3 0.26 0.09 0.09
query4 1.61 0.11 0.11
query5 0.29 0.27 0.26
query6 1.16 0.64 0.63
query7 0.03 0.02 0.03
query8 0.06 0.04 0.04
query9 0.58 0.50 0.50
query10 0.56 0.56 0.56
query11 0.17 0.10 0.10
query12 0.14 0.11 0.12
query13 0.62 0.60 0.60
query14 0.98 0.98 0.98
query15 0.82 0.79 0.80
query16 0.39 0.40 0.40
query17 1.10 1.06 1.06
query18 0.24 0.21 0.21
query19 1.83 1.85 1.88
query20 0.01 0.01 0.01
query21 15.45 0.32 0.15
query22 4.62 0.06 0.06
query23 16.01 0.26 0.10
query24 1.80 0.38 0.23
query25 0.08 0.04 0.09
query26 0.15 0.14 0.13
query27 0.08 0.05 0.06
query28 3.49 1.26 1.01
query29 12.54 4.05 3.36
query30 0.27 0.14 0.12
query31 2.82 0.60 0.38
query32 3.23 0.56 0.45
query33 3.02 3.05 3.06
query34 16.83 5.14 4.49
query35 4.52 4.62 4.50
query36 0.64 0.51 0.49
query37 0.11 0.06 0.06
query38 0.07 0.04 0.03
query39 0.05 0.03 0.04
query40 0.19 0.15 0.13
query41 0.08 0.03 0.03
query42 0.04 0.03 0.03
query43 0.04 0.04 0.03
Total cold run time: 97.13 s
Total hot run time: 27.37 s
```
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Enhancement](function) The date_add function supports SECOND_MICROSECOND as interval type [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #58665:
URL: https://github.com/apache/doris/pull/58665#issuecomment-3609790274
# BE UT Coverage Report
Increment line coverage `71.43% (35/49)` :tada:
[Increment coverage report](http://coverage.selectdb-in.cc/coverage/728990e3795ef3b98180f8a2d53c1aaf6bc0fdab_728990e3795ef3b98180f8a2d53c1aaf6bc0fdab/increment_report/index.html)
[Complete coverage report](http://coverage.selectdb-in.cc/coverage/728990e3795ef3b98180f8a2d53c1aaf6bc0fdab_728990e3795ef3b98180f8a2d53c1aaf6bc0fdab/report/index.html)
| Category | Coverage |
|-------------------|--------------------|
| Function Coverage | 53.36% (18642/34936) |
| Line Coverage | 39.02% (172125/441112) |
| Region Coverage | 33.63% (133224/396197) |
| Branch Coverage | 34.59% (57341/165789) |
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Enhancement](function) The date_add function supports SECOND_MICROSECOND as interval type [doris]
Posted by "codeDing18 (via GitHub)" <gi...@apache.org>.
codeDing18 commented on PR #58665:
URL: https://github.com/apache/doris/pull/58665#issuecomment-3609528857
run buildall
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org