Skip to content

Commit bad3443

Browse files
authored
Merge pull request #1 from StarRocks/main
Update
2 parents 1817cb8 + 88c27ed commit bad3443

File tree

12,416 files changed

+1628474
-471022
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

12,416 files changed

+1628474
-471022
lines changed

.clang-format

+18
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,21 @@ PointerAlignment: Left
1313
ReflowComments: false
1414
SortUsingDeclarations: false
1515
SpacesBeforeTrailingComments: 1
16+
---
17+
Language: Java
18+
BasedOnStyle: Google
19+
AccessModifierOffset: -4
20+
AllowShortFunctionsOnASingleLine: Inline
21+
ColumnLimit: 120
22+
ConstructorInitializerIndentWidth: 8 # double of IndentWidth
23+
ContinuationIndentWidth: 8 # double of IndentWidth
24+
DerivePointerAlignment: false # always use PointerAlignment
25+
IndentCaseLabels: false
26+
IndentWidth: 4
27+
PointerAlignment: Left
28+
ReflowComments: false
29+
SortUsingDeclarations: false
30+
SpacesBeforeTrailingComments: 1
31+
---
32+
Language: Proto
33+
BasedOnStyle: Google

.clang-tidy

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
Checks: >
3+
-*,
4+
cppcoreguidelines-virtual-class-destructor,
5+
modernize-concat-nested-namespaces,
6+
modernize-deprecated-headers,
7+
modernize-deprecated-ios-base-aliases,
8+
modernize-make-shared,
9+
modernize-make-unique,
10+
modernize-pass-by-value,
11+
modernize-raw-string-literal,
12+
modernize-redundant-void-arg,
13+
modernize-replace-auto-ptr,
14+
modernize-replace-disallow-copy-and-assign-macro,
15+
modernize-replace-random-shuffle,
16+
modernize-return-braced-init-list,
17+
modernize-shrink-to-fit,
18+
modernize-unary-static-assert,
19+
modernize-use-bool-literals,
20+
modernize-use-default-member-init,
21+
modernize-use-emplace,
22+
modernize-use-equals-default,
23+
modernize-use-equals-delete,
24+
modernize-use-nullptr,
25+
modernize-use-override,
26+
modernize-use-uncaught-exceptions,
27+
performance-faster-string-find,
28+
performance-for-range-copy,
29+
performance-implicit-conversion-in-loop,
30+
performance-inefficient-algorithm,
31+
performance-inefficient-vector-operation
32+
performance-move-const-arg,
33+
performance-no-automatic-move,
34+
performance-no-int-to-ptr,
35+
performance-noexcept-move-constructor,
36+
performance-trivially-destructible,
37+
performance-type-promotion-in-math-fn,
38+
performance-unnecessary-copy-initialization,
39+
performance-unnecessary-value-param,
40+
41+
WarningsAsErrors: '*'

.dockerignore

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#Ignore any files or directories at any level, including the context root, named thirdparty
2+
**/cmake-build*
3+
**/ut_build_*
4+
**/be/output
5+
be/build_
6+
thirdparty/installed
7+
thirdparty/src
8+
**/target
9+
**/log
10+
**/.github
11+
**/.idea
12+
**/*.o
13+
**/output
14+
# negate the output as it might be used for packing container from locally build artifact
15+
!output
16+
output/fe/meta
17+
output/fe/log
18+
output/be/storage
19+
output/be/log
20+
# allow build fs_broker into allin1 docker image
21+
!fs_brokers/apache_hdfs_broker/output
22+
fs_brokers/apache_hdfs_broker/output/log

.github/CODEOWNERS

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# committer will be the owner of all codes
2+
* @StarRocks/starrocks-committer
3+
4+
# /docs/ belong to docs-maintainer
5+
/docs/ @StarRocks/docs-maintainer
6+
7+
# parser
8+
/fe/fe-core/src/main/java/com/starrocks/planner/ @StarRocks/parser
9+
/fe/fe-core/src/main/java/com/starrocks/sql/ast/ @StarRocks/parser
10+
/fe/fe-core/src/main/java/com/starrocks/sql/parser/ @StarRocks/parser
11+
12+
# analyzer
13+
/fe/fe-core/src/main/java/com/starrocks/sql/analyzer/ @StarRocks/analyzer
14+
/fe/fe-core/src/main/java/com/starrocks/analysis/ @StarRocks/analyzer
15+
16+
# optimizer
17+
/fe/fe-core/src/main/java/com/starrocks/sql/optimizer/ @StarRocks/optimizer
18+
/fe/fe-core/src/main/java/com/starrocks/statistic/ @StarRocks/optimizer
19+
20+
# sql/parser/StarRocksLex.g4 sql/parser/StarRocks.g4 belong to syntax-committer
21+
/fe/fe-core/src/main/java/com/starrocks/sql/parser/StarRocksLex.g4 @StarRocks/syntax-committer
22+
/fe/fe-core/src/main/java/com/starrocks/sql/parser/StarRocks.g4 @StarRocks/syntax-committer
23+
/gensrc/script/functions.py @StarRocks/syntax-committer
24+
25+
# /thirdparty/ /docker/dockerfiles/dev-env/dev-env.Dockerfile belong to thirdparty-maintainer
26+
/thirdparty/ @StarRocks/thirdparty-maintainer
27+
/docker/dockerfiles/dev-env/dev-env.Dockerfile @StarRocks/thirdparty-maintainer
28+
29+
# cloud-native
30+
/be/src/storage/lake/ @StarRocks/cloud-native
31+
/be/src/runtime/lake_tablets_channel.h @StarRocks/cloud-native
32+
/be/src/runtime/lake_tablets_channel.cpp @StarRocks/cloud-native
33+
34+
# error message
35+
/fe/fe-core/src/main/java/com/starrocks/common/ErrorCode.java @StarRocks/msg-reviewer
36+
37+
# StorageEngine/ExecEnv/GlobalEnv
38+
/be/src/runtime/exec_env.h @StarRocks/thread-committer
39+
/be/src/runtime/exec_env.cpp @StarRocks/thread-committer
40+
/be/src/storage/olap_server.cpp @StarRocks/thread-committer
41+
/be/src/storage/storage_engine.h @StarRocks/thread-committer
42+
/be/src/storage/storage_engine.cpp @StarRocks/thread-committer
43+
/be/src/service/starrocks_main.cpp @StarRocks/thread-committer
44+
/be/src/service/service_be/starrocks_be.cpp @StarRocks/thread-committer
45+
46+
# restful
47+
/fe/fe-core/src/main/java/com/starrocks/http @StarRocks/restful-maintainer
48+
/be/src/http @StarRocks/restful-maintainer

.github/ISSUE_TEMPLATE/bug-report.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
labels: 'type/bug'
5+
6+
---
7+
8+
<!-- (At least include the following, feel free to add if you have more content) -->
9+
10+
### Steps to reproduce the behavior (Required)
11+
1. CREATE TABLE '...'
12+
2. INSERT INTO '....'
13+
3. SELECT '....'
14+
15+
### Expected behavior (Required)
16+
17+
### Real behavior (Required)
18+
19+
### StarRocks version (Required)
20+
- You can get the StarRocks version by executing SQL `select current_version()`

.github/ISSUE_TEMPLATE/config.yml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Need help or have a question?
4+
url: https://join.slack.com/t/starrocks/shared_invite/zt-z5zxqr0k-U5lrTVlgypRIV8RbnCIAzg
5+
about: Visit our slack channel.

.github/ISSUE_TEMPLATE/enhancement.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
name: "Enhancement"
3+
about: I want to make an enhancement.
4+
labels: type/enhancement
5+
---
6+
7+
## Enhancement
+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: Feature Request
3+
about: Suggest an idea for this project
4+
labels: 'type/feature-request'
5+
6+
---
7+
8+
<!-- (At least include the following, feel free to add if you have more content) -->
9+
10+
## Feature request
11+
12+
**Is your feature request related to a problem? Please describe.**
13+
<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->
14+
15+
**Describe the solution you'd like**
16+
<!-- A clear and concise description of what you want to happen. -->
17+
18+
**Describe alternatives you've considered**
19+
<!-- A clear and concise description of any alternative solutions or features you've considered. -->
20+
21+
**Additional context**
22+
<!-- Add any other context or screenshots about the feature request here. -->
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: Refactoring Request
3+
about: Suggest a refactoring for this project
4+
labels: 'type/refactoring-request'
5+
6+
---
7+
8+
<!-- (At least include the following, feel free to add if you have more content) -->
9+
10+
## Refactoring request
11+
12+
**Is your refactoring request related to a problem? Please describe.**
13+
<!-- A clear and concise description of what the problem is. Ex. I'm having problems reading the code/add a feature because [...] -->
14+
15+
**Describe the solution you'd like**
16+
<!-- A clear and concise description of the refactoring you want to. -->
17+
18+
**Describe alternatives you've considered**
19+
<!-- A clear and concise description of any alternative solutions or refactoring method you've considered. -->
20+
21+
**Additional context**
22+
<!-- Add any other context or screenshots about the refactoring request here. -->

.github/PULL_REQUEST_TEMPLATE.md

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
Why I'm doing:
2+
3+
What I'm doing:
4+
5+
Fixes #issue
6+
7+
## What type of PR is this:
8+
9+
- [ ] BugFix
10+
- [ ] Feature
11+
- [ ] Enhancement
12+
- [ ] Refactor
13+
- [ ] UT
14+
- [ ] Doc
15+
- [ ] Tool
16+
17+
Does this PR entail a change in behavior?
18+
19+
- [x] Yes, this PR will result in a change in behavior.
20+
- [ ] No, this PR will not result in a change in behavior.
21+
22+
If yes, please specify the type of change:
23+
24+
- [ ] Interface/UI changes: syntax, type conversion, expression evaluation, display information
25+
- [ ] Parameter changes: default values, similar parameters but with different default values
26+
- [ ] Policy changes: use new policy to replace old one, functionality automatically enabled
27+
- [ ] Feature removed
28+
- [ ] Miscellaneous: upgrade & downgrade compatibility, etc.
29+
30+
## Checklist:
31+
32+
- [ ] I have added test cases for my bug fix or my new feature
33+
- [ ] This pr needs user documentation (for new or modified features or behaviors)
34+
- [ ] I have added documentation for my new feature or new function
35+
- [ ] This is a backport pr
36+
37+
## Bugfix cherry-pick branch check:
38+
- [ ] I have checked the version labels which the pr will be auto-backported to the target branch
39+
- [ ] 3.2
40+
- [ ] 3.1
41+
- [ ] 3.0
42+
- [ ] 2.5

.github/pr-title-checker-config.json

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"LABEL": {
3+
"name": "title needs [type]",
4+
"color": "EEEEEE"
5+
},
6+
"CHECKS": {
7+
"prefixes": ["[BugFix]", "[Enhancement]", "[Feature]", "[Refactor]", "[UT]", "[Doc]", "[Tool]"],
8+
"regexpFlags": "i",
9+
"ignoreLabels" : ["ignore-pr-title-check", "pass"]
10+
},
11+
"MESSAGES": {
12+
"success": "All OK",
13+
"failure": "Missing type in the title of the pull request. [BugFix], [Enhancement], [Feature], [Refactor], [UT], [Doc], [Tool]. \nExample: [BugFix] Fix some implicit conversion.",
14+
"notice": ""
15+
}
16+
}

.github/workflows/approve-checker.yml

+93
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
name: REVIEW CHECKER
2+
3+
on:
4+
5+
pull_request_review:
6+
types:
7+
- submitted
8+
9+
permissions:
10+
checks: write
11+
actions: write
12+
contents: write
13+
deployments: write
14+
discussions: write
15+
issues: write
16+
packages: write
17+
pages: write
18+
pull-requests: write
19+
repository-projects: write
20+
security-events: write
21+
statuses: write
22+
23+
jobs:
24+
25+
info:
26+
if: >
27+
(github.event.pull_request && github.event.requested_team) ||
28+
(github.event.pull_request.requested_teams && github.event.review && github.event.review.state == 'approved')
29+
runs-on: ubuntu-latest
30+
env:
31+
REPO: ${{ github.repository }}
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
outputs:
34+
LABELS: ${{ steps.label_info.outputs.labels }}
35+
PR_NUMBER: ${{ steps.pr.outputs.PR_NUMBER }}
36+
37+
steps:
38+
- name: PR
39+
id: pr
40+
run: |
41+
if [[ "${{ github.event.number }}" != "" ]]; then
42+
echo "PR_NUMBER=${{ github.event.number }}" >> $GITHUB_OUTPUT
43+
else
44+
echo "PR_NUMBER=${{ github.event.pull_request.number }}" >> $GITHUB_OUTPUT
45+
fi
46+
47+
- name: LABELS
48+
id: label_info
49+
env:
50+
PR_NUMBER: ${{ steps.pr.outputs.PR_NUMBER }}
51+
run: |
52+
labels=$(gh pr view ${PR_NUMBER} -R ${REPO} --json labels -q '.labels[].name')
53+
echo "labels<<EOF" >> $GITHUB_OUTPUT
54+
echo "$labels" >> $GITHUB_OUTPUT
55+
echo "EOF" >> $GITHUB_OUTPUT
56+
57+
cat $GITHUB_OUTPUT
58+
59+
meta-review:
60+
needs: info
61+
runs-on: [ self-hosted, normal ]
62+
if: github.event_name == 'pull_request_review' && contains(needs.info.outputs.LABELS, 'META-REVIEW')
63+
name: META-REVIEW
64+
65+
env:
66+
PR_NUMBER: ${{ needs.info.outputs.PR_NUMBER }}
67+
REPO: ${{ github.repository }}
68+
TEAM: meta-committer
69+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
70+
71+
steps:
72+
- name: META-REVIEW
73+
run: |
74+
rm -rf ./ci-tool && cp -rf /var/lib/ci-tool ./ci-tool && cd ci-tool && git pull >/dev/null
75+
./scripts/check-approve.sh
76+
77+
proto-review:
78+
needs: info
79+
runs-on: [ self-hosted, normal ]
80+
if: github.event_name == 'pull_request_review' && contains(needs.info.outputs.LABELS, 'PROTO-REVIEW')
81+
name: PROTO-REVIEW
82+
83+
env:
84+
PR_NUMBER: ${{ needs.info.outputs.PR_NUMBER }}
85+
REPO: ${{ github.repository }}
86+
TEAM: proto-team
87+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
88+
89+
steps:
90+
- name: PROTO-REVIEW
91+
run: |
92+
rm -rf ./ci-tool && cp -rf /var/lib/ci-tool ./ci-tool && cd ci-tool && git pull >/dev/null
93+
./scripts/check-approve.sh

0 commit comments

Comments
 (0)