You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "JNSimba (via GitHub)" <gi...@apache.org> on 2025/10/09 09:09:24 UTC
[PR] [improve](job) add load priv check for streaming job [doris]
JNSimba opened a new pull request, #56754:
URL: https://github.com/apache/doris/pull/56754
### What problem does this PR solve?
Currently, jobs are limited to ADMIN privileges.
However, for Streaming Jobs, similar logic to RoutineLoad is required, meaning that only LOAD privileges are required.
### Release note
None
### Check List (For Author)
- Test <!-- At least one of them must be included. -->
- [ ] 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 <!-- Add your reason? -->
- Behavior changed:
- [ ] No.
- [ ] Yes. <!-- Explain the behavior change -->
- Does this need documentation?
- [ ] No.
- [ ] 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] [improve](job) add load priv check for streaming job [doris]
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #56754:
URL: https://github.com/apache/doris/pull/56754#issuecomment-3388064930
<details>
<summary>ClickBench: <b>Total hot run time: 30.34 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 05645a4480010cc838c23c733f5d04cd03d722a5, data reload: false
query1 0.06 0.04 0.05
query2 0.09 0.05 0.05
query3 0.25 0.09 0.09
query4 1.61 0.12 0.12
query5 0.29 0.27 0.25
query6 1.17 0.65 0.63
query7 0.03 0.03 0.03
query8 0.06 0.05 0.05
query9 0.63 0.54 0.52
query10 0.57 0.57 0.59
query11 0.16 0.12 0.11
query12 0.15 0.12 0.12
query13 0.64 0.62 0.62
query14 1.04 1.05 1.03
query15 0.88 0.86 0.86
query16 0.42 0.41 0.39
query17 1.04 1.06 1.04
query18 0.21 0.20 0.20
query19 1.96 1.81 1.84
query20 0.02 0.01 0.02
query21 15.46 0.92 0.59
query22 0.76 1.23 0.75
query23 14.79 1.40 0.65
query24 7.64 1.53 0.70
query25 0.48 0.24 0.06
query26 0.59 0.16 0.14
query27 0.08 0.06 0.05
query28 9.12 1.36 0.92
query29 12.55 3.93 3.24
query30 0.28 0.13 0.12
query31 2.83 0.60 0.39
query32 3.25 0.56 0.47
query33 3.07 3.12 3.07
query34 15.88 5.49 4.85
query35 4.95 4.90 4.93
query36 0.70 0.53 0.52
query37 0.10 0.08 0.08
query38 0.07 0.05 0.04
query39 0.04 0.03 0.04
query40 0.18 0.15 0.14
query41 0.09 0.03 0.03
query42 0.04 0.03 0.03
query43 0.04 0.04 0.03
Total cold run time: 104.27 s
Total hot run time: 30.34 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] [improve](job) add load priv check for streaming job [doris]
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #56754:
URL: https://github.com/apache/doris/pull/56754#issuecomment-3388056307
<details>
<summary>TPC-DS: <b>Total hot run time: 190180 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 05645a4480010cc838c23c733f5d04cd03d722a5, data reload: false
query1 1075 428 407 407
query2 6568 1692 1689 1689
query3 6763 222 214 214
query4 26546 23533 22978 22978
query5 5261 652 510 510
query6 337 246 237 237
query7 4674 519 293 293
query8 304 250 258 250
query9 8694 2578 2573 2573
query10 539 322 293 293
query11 15381 15004 14892 14892
query12 176 116 118 116
query13 1693 544 434 434
query14 11229 9179 9137 9137
query15 206 188 180 180
query16 7679 670 505 505
query17 1256 738 621 621
query18 2067 424 331 331
query19 235 234 192 192
query20 140 134 148 134
query21 233 141 123 123
query22 4933 4980 4789 4789
query23 34852 33700 33669 33669
query24 8615 2496 2528 2496
query25 688 567 492 492
query26 1388 286 166 166
query27 3058 512 385 385
query28 4384 2216 2192 2192
query29 835 653 552 552
query30 311 259 228 228
query31 1015 874 833 833
query32 94 83 76 76
query33 683 409 340 340
query34 905 894 538 538
query35 859 841 775 775
query36 996 1014 941 941
query37 118 136 100 100
query38 3738 3742 3585 3585
query39 1528 1475 1434 1434
query40 220 125 115 115
query41 61 59 62 59
query42 117 107 108 107
query43 490 508 458 458
query44 1336 820 824 820
query45 186 183 168 168
query46 833 996 634 634
query47 1808 1878 1724 1724
query48 396 423 315 315
query49 786 513 424 424
query50 632 678 398 398
query51 3952 3857 3856 3856
query52 110 108 102 102
query53 232 271 189 189
query54 603 592 516 516
query55 89 94 91 91
query56 315 322 318 318
query57 1199 1192 1154 1154
query58 274 300 274 274
query59 2543 2700 2544 2544
query60 340 350 363 350
query61 152 166 155 155
query62 821 715 672 672
query63 235 189 189 189
query64 4413 1160 872 872
query65 4033 3961 3970 3961
query66 1077 436 333 333
query67 15574 15516 15067 15067
query68 7995 945 595 595
query69 508 311 293 293
query70 1321 1360 1288 1288
query71 484 340 367 340
query72 5760 4900 4933 4900
query73 607 561 362 362
query74 8837 9182 8819 8819
query75 3924 3373 2807 2807
query76 3553 1160 719 719
query77 807 430 317 317
query78 9593 9594 8987 8987
query79 2403 797 597 597
query80 678 554 541 541
query81 507 267 232 232
query82 425 168 135 135
query83 301 261 258 258
query84 304 116 104 104
query85 878 464 423 423
query86 350 325 300 300
query87 3874 3766 3662 3662
query88 3391 2217 2200 2200
query89 385 322 308 308
query90 2064 219 214 214
query91 168 164 140 140
query92 89 69 66 66
query93 1574 970 644 644
query94 720 441 352 352
query95 398 313 313 313
query96 479 588 285 285
query97 2974 2996 2871 2871
query98 242 214 218 214
query99 1480 1398 1329 1329
Total cold run time: 279956 ms
Total hot run time: 190180 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] [improve](job) add load priv check for streaming job [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #56754:
URL: https://github.com/apache/doris/pull/56754#issuecomment-3384913114
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] [improve](job) add load priv check for streaming job [doris]
Posted by "JNSimba (via GitHub)" <gi...@apache.org>.
JNSimba commented on PR #56754:
URL: https://github.com/apache/doris/pull/56754#issuecomment-3388014364
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] [improve](job) add load priv check for streaming job [doris]
Posted by "JNSimba (via GitHub)" <gi...@apache.org>.
JNSimba commented on PR #56754:
URL: https://github.com/apache/doris/pull/56754#issuecomment-3397156035
> I think priv of streaming job should the same as `insert into select`, rather than routine load.
1. The permissions for insert into select require write permissions on the target table and read permissions on the query table. Since the query here is tvf, it's equivalent to only having write permissions on the target table.
2. One thing I missed here is that deleting a drop job, alter job, or pause job theoretically also requires the load_priv permission on this database.
--
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] [improve](job) add load priv check for streaming job [doris]
Posted by "JNSimba (via GitHub)" <gi...@apache.org>.
JNSimba closed pull request #56754: [improve](job) add load priv check for streaming job
URL: https://github.com/apache/doris/pull/56754
--
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