├── .asf.yaml ├── .github └── workflows │ ├── build-1.2.yml │ ├── build-2.0.yml │ └── build.yml ├── .gitignore ├── CODE_OF_CONDUCT.md ├── LICENSE.txt └── README.md /.asf.yaml: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one or more 3 | # contributor license agreements. See the NOTICE file distributed with 4 | # this work for additional information regarding copyright ownership. 5 | # The ASF licenses this file to You under the Apache License, Version 2.0 6 | # (the "License"); you may not use this file except in compliance with 7 | # the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | 18 | github: 19 | description: Self-managed thirdparty dependencies for Apache Doris 20 | homepage: https://doris.apache.org 21 | labels: 22 | - data-warehousing 23 | - mpp 24 | - olap 25 | - dbms 26 | - database 27 | - sql 28 | - big-data 29 | - real-time 30 | - analytics 31 | - distributed-database 32 | - iceberg 33 | - hudi 34 | - datalake 35 | - hive 36 | - hadoop 37 | - tpch 38 | - ssb 39 | - vectorized 40 | 41 | enabled_merge_buttons: 42 | squash: true 43 | merge: false 44 | rebase: false 45 | protected_branches: 46 | main: 47 | required_pull_request_reviews: 48 | dismiss_stale_reviews: true 49 | required_approving_review_count: 1 50 | bdbje: 51 | required_pull_request_reviews: 52 | dismiss_stale_reviews: true 53 | required_approving_review_count: 1 54 | libhdfs3: 55 | required_pull_request_reviews: 56 | dismiss_stale_reviews: true 57 | required_approving_review_count: 1 58 | clucene: 59 | required_status_checks: 60 | strict: false 61 | contexts: 62 | - Build (Linux) 63 | - Build (macOS) 64 | - CLucene UT (Linux) 65 | clucene-2.0: 66 | required_status_checks: 67 | strict: false 68 | contexts: 69 | - Build (Linux) 70 | - Build (macOS) 71 | - CLucene UT (Linux) 72 | clucene-2.1: 73 | required_status_checks: 74 | strict: false 75 | contexts: 76 | - Build (Linux) 77 | - Build (macOS) 78 | - CLucene UT (Linux) 79 | clucene-3.0: 80 | required_status_checks: 81 | strict: false 82 | contexts: 83 | - Build (Linux) 84 | - Build (macOS) 85 | - CLucene UT (Linux) 86 | 87 | collaborators: 88 | - zzzxl1993 89 | 90 | notifications: 91 | pullrequests_status: commits@doris.apache.org 92 | -------------------------------------------------------------------------------- /.github/workflows/build-1.2.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | name: Build (1.2-lts) 19 | 20 | on: 21 | schedule: 22 | - cron: '*/30 * * * *' 23 | 24 | jobs: 25 | prerelease: 26 | name: Prerelease 27 | runs-on: macos-latest 28 | env: 29 | GH_REPO: ${{ github.repository }} 30 | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} 31 | permissions: 32 | contents: write 33 | outputs: 34 | should_release: ${{ steps.check_diff.outputs.should_release }} 35 | steps: 36 | - name: Checkout 37 | uses: actions/checkout@v4 38 | with: 39 | repository: 'apache/doris' 40 | ref: 'branch-1.2-lts' 41 | fetch-depth: 0 42 | 43 | - name: Check Diff 44 | id: check_diff 45 | run: | 46 | tag_name='automation-1.2-lts' 47 | title="Apache Doris Third Party Prebuilt (${tag_name/automation-/})" 48 | 49 | if [[ -z "$(gh release list)" ]] || 50 | ! gh release list | awk -F "\t" '{ print $3 }' | grep "${tag_name}" >/dev/null; then 51 | gh release create -t "${title}" "${tag_name}" 52 | fi 53 | last_version="$(gh release view "${tag_name}" | sed -n -E 's/Doris Version: \*(.*)\*.*/\1/p')" 54 | current_version="$(git log -1 --format='%H')" 55 | 56 | echo "Last Version: ${last_version}" 57 | echo "Current Version: ${current_version}" 58 | 59 | should_release=false 60 | if [[ -z "${last_version}" ]]; then 61 | echo "The first release was detected." 62 | should_release=true 63 | elif [[ "${last_version}" != "${current_version}" ]]; then 64 | cmd="git diff --name-only ${last_version} ${current_version} | grep -E '^thirdparty/'" 65 | echo "Execute: ${cmd}" 66 | content="$(eval "${cmd}")" || true 67 | if [[ -n "${content}" ]]; then 68 | echo -e "Detect changes:\n${content}" 69 | should_release=true 70 | fi 71 | fi 72 | 73 | if "${should_release}"; then 74 | echo -ne "Update Time: *$(date)*\nDoris Version: *${current_version}*\nStatus: *BUILDING*" >release_note.md 75 | else 76 | gh release view "${tag_name}" | sed -n '/--/,$p' | awk '{ if (NR > 1) print $0 }' | sed "{ 77 | s/Update Time:.*/Update Time: *$(date)*/ 78 | s/Doris Version:.*/Doris Version: *${current_version}*/ 79 | }" >release_note.md 80 | fi 81 | gh release edit -F release_note.md "${tag_name}" 82 | 83 | echo "should_release=${should_release}" >> $GITHUB_OUTPUT 84 | 85 | - name: Download Source and Upload 86 | if: steps.check_diff.outputs.should_release == 'true' 87 | run: | 88 | tag_name='automation-1.2-lts' 89 | 90 | cd thirdparty 91 | sed '/# unpacking thirdpart archives/,$d' download-thirdparty.sh | bash - 92 | 93 | tar -zcvf doris-thirdparty-source.tgz src 94 | 95 | gh release upload --clobber "${tag_name}" doris-thirdparty-source.tgz 96 | 97 | build: 98 | name: Build 99 | needs: prerelease 100 | if: needs.prerelease.outputs.should_release == 'true' 101 | strategy: 102 | matrix: 103 | config: 104 | - name: macOS-x86_64 105 | os: macos-13 106 | packages: >- 107 | 'm4' 108 | 'automake' 109 | 'autoconf' 110 | 'libtool' 111 | 'pkg-config' 112 | 'texinfo' 113 | 'coreutils' 114 | 'gnu-getopt' 115 | 'python@3' 116 | 'ninja' 117 | 'ccache' 118 | 'bison' 119 | 'byacc' 120 | 'gettext' 121 | 'wget' 122 | 'pcre' 123 | 'openjdk@11' 124 | 'maven' 125 | 'node' 126 | 'llvm@15' 127 | 128 | - name: macOS-arm64 129 | os: macos-14 130 | packages: >- 131 | 'm4' 132 | 'automake' 133 | 'autoconf' 134 | 'libtool' 135 | 'pkg-config' 136 | 'texinfo' 137 | 'coreutils' 138 | 'gnu-getopt' 139 | 'python@3' 140 | 'ninja' 141 | 'ccache' 142 | 'bison' 143 | 'byacc' 144 | 'gettext' 145 | 'wget' 146 | 'pcre' 147 | 'openjdk@11' 148 | 'maven' 149 | 'node' 150 | 'llvm@15' 151 | 152 | - name: Linux 153 | os: ubuntu-22.04 154 | packages: >- 155 | 'build-essential' 156 | 'automake' 157 | 'autoconf' 158 | 'libtool-bin' 159 | 'pkg-config' 160 | 'cmake=3.22.1-1ubuntu1.22.04.2' 161 | 'ninja-build' 162 | 'ccache' 163 | 'python-is-python3' 164 | 'bison' 165 | 'byacc' 166 | 'flex' 167 | 'binutils-dev' 168 | 'libiberty-dev' 169 | 'curl' 170 | 'git' 171 | 'zip' 172 | 'unzip' 173 | 'autopoint' 174 | 'openjdk-8-jdk' 175 | 'openjdk-8-jdk-headless' 176 | 'maven' 177 | 178 | runs-on: ${{ matrix.config.os }} 179 | env: 180 | GH_REPO: ${{ github.repository }} 181 | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} 182 | steps: 183 | - name: Checkout 184 | uses: actions/checkout@v4 185 | with: 186 | repository: 'apache/doris' 187 | ref: 'branch-1.2-lts' 188 | fetch-depth: 0 189 | 190 | - name: Download 191 | run: | 192 | tag_name='automation-1.2-lts' 193 | 194 | cd thirdparty 195 | curl -L "https://github.com/${{ github.repository }}/releases/download/${tag_name}/doris-thirdparty-source.tgz" \ 196 | -o doris-thirdparty-source.tgz 197 | tar -zxvf doris-thirdparty-source.tgz 198 | 199 | - name: Prepare for ${{ matrix.config.os }} 200 | run: | 201 | if [[ "${{ matrix.config.name }}" =~ macOS-* ]]; then 202 | # Install packages except cmake 203 | brew install ${{ matrix.config.packages }} || true 204 | # Install specific version of cmake 205 | brew unlink cmake || true 206 | wget https://github.com/Kitware/CMake/releases/download/v3.22.1/cmake-3.22.1-macos-universal.tar.gz 207 | tar -xzf cmake-3.22.1-macos-universal.tar.gz 208 | sudo cp -r cmake-3.22.1-macos-universal/CMake.app/Contents/* /usr/local/ 209 | cmake --version 210 | else 211 | export DEFAULT_DIR='/opt/doris' 212 | export PATH="${DEFAULT_DIR}/ldb-toolchain/bin:${PATH}" 213 | 214 | sudo apt update 215 | sudo apt-cache policy cmake 216 | sudo DEBIAN_FRONTEND=noninteractive apt install --yes ${{ matrix.config.packages }} 217 | 218 | mkdir -p "${DEFAULT_DIR}" 219 | wget https://github.com/amosbird/ldb_toolchain_gen/releases/download/v0.12/ldb_toolchain_gen.sh \ 220 | -q -O /tmp/ldb_toolchain_gen.sh 221 | bash /tmp/ldb_toolchain_gen.sh "${DEFAULT_DIR}/ldb-toolchain" 222 | fi 223 | 224 | - name: Build and Upload 225 | run: | 226 | tag_name='automation-1.2-lts' 227 | 228 | if [[ "${{ matrix.config.name }}" == 'Linux' ]]; then 229 | export DEFAULT_DIR='/opt/doris' 230 | export PATH="${DEFAULT_DIR}/ldb-toolchain/bin:${PATH}" 231 | export PATH="$(find /usr/lib/jvm/java-8-openjdk* -maxdepth 1 -type d -name 'bin'):${PATH}" 232 | export JAVA_HOME="$(find /usr/lib/jvm/java-8-openjdk* -maxdepth 0)" 233 | export DORIS_TOOLCHAIN=gcc 234 | else 235 | export MACOSX_DEPLOYMENT_TARGET=12.0 236 | fi 237 | 238 | cd thirdparty 239 | ./build-thirdparty.sh -j "$(nproc)" 240 | 241 | kernel="$(uname -s | awk '{print tolower($0)}')" 242 | arch="$(uname -m)" 243 | rm -rf "doris-thirdparty-prebuilt-${kernel}-${arch}.tar.xz" 244 | tar -cf - installed | xz -z -T0 - >"doris-thirdparty-prebuilt-${kernel}-${arch}.tar.xz" 245 | gh release upload --clobber "${tag_name}" "doris-thirdparty-prebuilt-${kernel}-${arch}.tar.xz" 246 | 247 | success: 248 | name: Success 249 | needs: [prerelease, build] 250 | if: needs.prerelease.outputs.should_release == 'true' 251 | runs-on: ubuntu-latest 252 | env: 253 | GH_REPO: ${{ github.repository }} 254 | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} 255 | permissions: 256 | contents: write 257 | steps: 258 | - name: Update Checksums 259 | run: | 260 | tag_name='automation-1.2-lts' 261 | 262 | gh release download "${tag_name}" 263 | 264 | content="$(gh release view "${tag_name}" | sed -n '/Update Time:/,/Doris Version:/p')" 265 | echo -ne "${content}\nStatus: *SUCCESS*\n\n## SHA256 Checksums\n\`\`\`\n$(sha256sum *)\n\`\`\`" >release_note.md 266 | gh release edit -F release_note.md "${tag_name}" 267 | 268 | failure: 269 | name: Failure 270 | needs: [build] 271 | if: failure() 272 | runs-on: ubuntu-latest 273 | env: 274 | GH_REPO: ${{ github.repository }} 275 | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} 276 | permissions: 277 | contents: write 278 | steps: 279 | - name: Update Checksums 280 | run: | 281 | tag_name='automation-1.2-lts' 282 | 283 | gh release download "${tag_name}" 284 | 285 | echo -ne "Status: *FAILURE*\n\n## SHA256 Checksums\n\`\`\`\n$(sha256sum *)\n\`\`\`" >release_note.md 286 | gh release edit -F release_note.md "${tag_name}" 287 | -------------------------------------------------------------------------------- /.github/workflows/build-2.0.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | name: Build (2.0) 19 | 20 | on: 21 | schedule: 22 | - cron: '*/30 * * * *' 23 | 24 | jobs: 25 | prerelease: 26 | name: Prerelease 27 | runs-on: macos-latest 28 | env: 29 | GH_REPO: ${{ github.repository }} 30 | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} 31 | permissions: 32 | contents: write 33 | outputs: 34 | should_release: ${{ steps.check_diff.outputs.should_release }} 35 | steps: 36 | - name: Checkout 37 | uses: actions/checkout@v4 38 | with: 39 | repository: 'apache/doris' 40 | ref: 'branch-2.0' 41 | fetch-depth: 0 42 | 43 | - name: Check Diff 44 | id: check_diff 45 | run: | 46 | tag_name='automation-2.0' 47 | title="Apache Doris Third Party Prebuilt (${tag_name/automation-/})" 48 | 49 | if [[ -z "$(gh release list)" ]] || 50 | ! gh release list | awk -F "\t" '{ print $3 }' | grep "${tag_name}" >/dev/null; then 51 | gh release create -t "${title}" "${tag_name}" 52 | fi 53 | last_version="$(gh release view "${tag_name}" | sed -n -E 's/Doris Version: \*(.*)\*.*/\1/p')" 54 | current_version="$(git log -1 --format='%H')" 55 | 56 | echo "Last Version: ${last_version}" 57 | echo "Current Version: ${current_version}" 58 | 59 | should_release=false 60 | if [[ -z "${last_version}" ]]; then 61 | echo "The first release was detected." 62 | should_release=true 63 | elif [[ "${last_version}" != "${current_version}" ]]; then 64 | cmd="git diff --name-only ${last_version} ${current_version} | grep -E '^thirdparty/'" 65 | echo "Execute: ${cmd}" 66 | content="$(eval "${cmd}")" || true 67 | if [[ -n "${content}" ]]; then 68 | echo -e "Detect changes:\n${content}" 69 | should_release=true 70 | fi 71 | fi 72 | 73 | if "${should_release}"; then 74 | echo -ne "Update Time: *$(date)*\nDoris Version: *${current_version}*\nStatus: *BUILDING*" >release_note.md 75 | else 76 | gh release view "${tag_name}" | sed -n '/--/,$p' | awk '{ if (NR > 1) print $0 }' | sed "{ 77 | s/Update Time:.*/Update Time: *$(date)*/ 78 | s/Doris Version:.*/Doris Version: *${current_version}*/ 79 | }" >release_note.md 80 | fi 81 | gh release edit -F release_note.md "${tag_name}" 82 | 83 | echo "should_release=${should_release}" >> $GITHUB_OUTPUT 84 | 85 | - name: Download Source and Upload 86 | if: steps.check_diff.outputs.should_release == 'true' 87 | run: | 88 | tag_name='automation-2.0' 89 | 90 | cd thirdparty 91 | sed '/# unpacking thirdpart archives/,$d' download-thirdparty.sh | bash - 92 | 93 | tar -zcvf doris-thirdparty-source.tgz src 94 | 95 | gh release upload --clobber "${tag_name}" doris-thirdparty-source.tgz 96 | 97 | build: 98 | name: Build 99 | needs: prerelease 100 | if: needs.prerelease.outputs.should_release == 'true' 101 | strategy: 102 | matrix: 103 | config: 104 | - name: macOS-x86_64 105 | os: macos-13 106 | packages: >- 107 | 'm4' 108 | 'automake' 109 | 'autoconf' 110 | 'libtool' 111 | 'pkg-config' 112 | 'texinfo' 113 | 'coreutils' 114 | 'gnu-getopt' 115 | 'python@3' 116 | 'ninja' 117 | 'ccache' 118 | 'bison' 119 | 'byacc' 120 | 'gettext' 121 | 'wget' 122 | 'pcre' 123 | 'openjdk@11' 124 | 'maven' 125 | 'node' 126 | 'llvm@16' 127 | 128 | - name: macOS-arm64 129 | os: macos-14 130 | packages: >- 131 | 'm4' 132 | 'automake' 133 | 'autoconf' 134 | 'libtool' 135 | 'pkg-config' 136 | 'texinfo' 137 | 'coreutils' 138 | 'gnu-getopt' 139 | 'python@3' 140 | 'ninja' 141 | 'ccache' 142 | 'bison' 143 | 'byacc' 144 | 'gettext' 145 | 'wget' 146 | 'pcre' 147 | 'openjdk@11' 148 | 'maven' 149 | 'node' 150 | 'llvm@16' 151 | 152 | - name: Linux 153 | os: ubuntu-22.04 154 | packages: >- 155 | 'build-essential' 156 | 'automake' 157 | 'autoconf' 158 | 'libtool-bin' 159 | 'pkg-config' 160 | 'cmake=3.22.1-1ubuntu1.22.04.2' 161 | 'ninja-build' 162 | 'ccache' 163 | 'python-is-python3' 164 | 'bison' 165 | 'byacc' 166 | 'flex' 167 | 'binutils-dev' 168 | 'libiberty-dev' 169 | 'curl' 170 | 'git' 171 | 'zip' 172 | 'unzip' 173 | 'autopoint' 174 | 'openjdk-8-jdk' 175 | 'openjdk-8-jdk-headless' 176 | 'maven' 177 | 178 | runs-on: ${{ matrix.config.os }} 179 | env: 180 | GH_REPO: ${{ github.repository }} 181 | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} 182 | steps: 183 | - name: Checkout easimon/maximize-build-space 184 | if: ${{ matrix.config.name == 'Linux' }} 185 | run: | 186 | git clone -b v7 https://github.com/easimon/maximize-build-space 187 | 188 | - name: Maximize build space 189 | if: ${{ matrix.config.name == 'Linux' }} 190 | uses: ./maximize-build-space 191 | with: 192 | root-reserve-mb: 4096 193 | swap-size-mb: 8192 194 | remove-dotnet: 'true' 195 | remove-android: 'true' 196 | remove-haskell: 'true' 197 | remove-codeql: 'true' 198 | remove-docker-images: 'true' 199 | 200 | - name: Checkout 201 | uses: actions/checkout@v4 202 | with: 203 | repository: 'apache/doris' 204 | ref: 'branch-2.0' 205 | fetch-depth: 0 206 | 207 | - name: Download 208 | run: | 209 | tag_name='automation-2.0' 210 | 211 | cd thirdparty 212 | curl -L "https://github.com/${{ github.repository }}/releases/download/${tag_name}/doris-thirdparty-source.tgz" \ 213 | -o doris-thirdparty-source.tgz 214 | tar -zxvf doris-thirdparty-source.tgz 215 | 216 | - name: Prepare for ${{ matrix.config.os }} 217 | run: | 218 | if [[ "${{ matrix.config.name }}" =~ macOS-* ]]; then 219 | # Install packages except cmake 220 | brew install ${{ matrix.config.packages }} || true 221 | # Install specific version of cmake 222 | brew unlink cmake || true 223 | wget https://github.com/Kitware/CMake/releases/download/v3.22.1/cmake-3.22.1-macos-universal.tar.gz 224 | tar -xzf cmake-3.22.1-macos-universal.tar.gz 225 | sudo cp -r cmake-3.22.1-macos-universal/CMake.app/Contents/* /usr/local/ 226 | cmake --version 227 | else 228 | export DEFAULT_DIR='/opt/doris' 229 | export PATH="${DEFAULT_DIR}/ldb-toolchain/bin:${PATH}" 230 | 231 | sudo apt update 232 | sudo apt-cache policy cmake 233 | sudo DEBIAN_FRONTEND=noninteractive apt install --yes ${{ matrix.config.packages }} 234 | 235 | mkdir -p "${DEFAULT_DIR}" 236 | wget https://github.com/amosbird/ldb_toolchain_gen/releases/download/v0.18/ldb_toolchain_gen.sh \ 237 | -q -O /tmp/ldb_toolchain_gen.sh 238 | bash /tmp/ldb_toolchain_gen.sh "${DEFAULT_DIR}/ldb-toolchain" 239 | fi 240 | 241 | - name: Build and Upload 242 | run: | 243 | tag_name='automation-2.0' 244 | 245 | if [[ "${{ matrix.config.name }}" == 'Linux' ]]; then 246 | export DEFAULT_DIR='/opt/doris' 247 | export PATH="${DEFAULT_DIR}/ldb-toolchain/bin:${PATH}" 248 | export PATH="$(find /usr/lib/jvm/java-8-openjdk* -maxdepth 1 -type d -name 'bin'):${PATH}" 249 | export JAVA_HOME="$(find /usr/lib/jvm/java-8-openjdk* -maxdepth 0)" 250 | export DORIS_TOOLCHAIN=gcc 251 | else 252 | export MACOSX_DEPLOYMENT_TARGET=12.0 253 | fi 254 | 255 | cd thirdparty 256 | ./build-thirdparty.sh -j "$(nproc)" 257 | 258 | kernel="$(uname -s | awk '{print tolower($0)}')" 259 | arch="$(uname -m)" 260 | rm -rf "doris-thirdparty-prebuilt-${kernel}-${arch}.tar.xz" 261 | tar -cf - installed | xz -z -T0 - >"doris-thirdparty-prebuilt-${kernel}-${arch}.tar.xz" 262 | gh release upload --clobber "${tag_name}" "doris-thirdparty-prebuilt-${kernel}-${arch}.tar.xz" 263 | 264 | success: 265 | name: Success 266 | needs: [prerelease, build] 267 | if: needs.prerelease.outputs.should_release == 'true' 268 | runs-on: ubuntu-latest 269 | env: 270 | GH_REPO: ${{ github.repository }} 271 | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} 272 | permissions: 273 | contents: write 274 | steps: 275 | - name: Update Checksums 276 | run: | 277 | tag_name='automation-2.0' 278 | 279 | gh release download "${tag_name}" 280 | 281 | content="$(gh release view "${tag_name}" | sed -n '/Update Time:/,/Doris Version:/p')" 282 | echo -ne "${content}\nStatus: *SUCCESS*\n\n## SHA256 Checksums\n\`\`\`\n$(sha256sum *)\n\`\`\`" >release_note.md 283 | gh release edit -F release_note.md "${tag_name}" 284 | 285 | failure: 286 | name: Failure 287 | needs: [build] 288 | if: failure() 289 | runs-on: ubuntu-latest 290 | env: 291 | GH_REPO: ${{ github.repository }} 292 | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} 293 | permissions: 294 | contents: write 295 | steps: 296 | - name: Update Checksums 297 | run: | 298 | tag_name='automation-2.0' 299 | 300 | gh release download "${tag_name}" 301 | 302 | echo -ne "Status: *FAILURE*\n\n## SHA256 Checksums\n\`\`\`\n$(sha256sum *)\n\`\`\`" >release_note.md 303 | gh release edit -F release_note.md "${tag_name}" 304 | -------------------------------------------------------------------------------- /.github/workflows/build.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | name: Build 19 | 20 | on: 21 | schedule: 22 | - cron: '*/30 * * * *' 23 | 24 | jobs: 25 | prerelease: 26 | name: Prerelease 27 | runs-on: macos-latest 28 | env: 29 | GH_REPO: ${{ github.repository }} 30 | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} 31 | permissions: 32 | contents: write 33 | outputs: 34 | should_release: ${{ steps.check_diff.outputs.should_release }} 35 | steps: 36 | - name: Checkout 37 | uses: actions/checkout@v4 38 | with: 39 | repository: 'apache/doris' 40 | fetch-depth: 0 41 | 42 | - name: Check Diff 43 | id: check_diff 44 | run: | 45 | if [[ -z "$(gh release list)" ]] || 46 | ! gh release list | awk -F "\t" '{ print $3 }' | grep 'automation' >/dev/null; then 47 | gh release create -t 'Apache Doris Third Party Prebuilt' automation 48 | fi 49 | last_version="$(gh release view automation | sed -n -E 's/Doris Version: \*(.*)\*.*/\1/p')" 50 | current_version="$(git log -1 --format='%H')" 51 | 52 | echo "Last Version: ${last_version}" 53 | echo "Current Version: ${current_version}" 54 | 55 | should_release=false 56 | if [[ -z "${last_version}" ]]; then 57 | echo "The first release was detected." 58 | should_release=true 59 | elif [[ "${last_version}" != "${current_version}" ]]; then 60 | cmd="git diff --name-only ${last_version} ${current_version} | grep -E '^thirdparty/'" 61 | echo "Execute: ${cmd}" 62 | content="$(eval "${cmd}")" || true 63 | if [[ -n "${content}" ]]; then 64 | echo -e "Detect changes:\n${content}" 65 | should_release=true 66 | fi 67 | fi 68 | 69 | if "${should_release}"; then 70 | echo -ne "Update Time: *$(date)*\nDoris Version: *${current_version}*\nStatus: *BUILDING*" >release_note.md 71 | else 72 | gh release view automation | sed -n '/--/,$p' | awk '{ if (NR > 1) print $0 }' | sed "{ 73 | s/Update Time:.*/Update Time: *$(date)*/ 74 | s/Doris Version:.*/Doris Version: *${current_version}*/ 75 | }" >release_note.md 76 | fi 77 | gh release edit -F release_note.md automation 78 | 79 | echo "should_release=${should_release}" >> $GITHUB_OUTPUT 80 | 81 | - name: Download Source and Upload 82 | if: steps.check_diff.outputs.should_release == 'true' 83 | run: | 84 | cd thirdparty 85 | sed '/# unpacking thirdpart archives/,$d' download-thirdparty.sh | bash - 86 | 87 | tar -zcvf doris-thirdparty-source.tgz src 88 | 89 | gh release upload --clobber automation doris-thirdparty-source.tgz 90 | 91 | build: 92 | name: Build 93 | needs: prerelease 94 | if: needs.prerelease.outputs.should_release == 'true' 95 | strategy: 96 | matrix: 97 | config: 98 | - name: macOS-x86_64 99 | os: macos-13 100 | packages: >- 101 | 'm4' 102 | 'automake' 103 | 'autoconf' 104 | 'libtool' 105 | 'pkg-config' 106 | 'texinfo' 107 | 'coreutils' 108 | 'gnu-getopt' 109 | 'python@3' 110 | 'ninja' 111 | 'ccache' 112 | 'bison' 113 | 'byacc' 114 | 'gettext' 115 | 'wget' 116 | 'pcre' 117 | 'openjdk@11' 118 | 'maven' 119 | 'node' 120 | 'llvm@16' 121 | 122 | - name: macOS-arm64 123 | os: macos-14 124 | packages: >- 125 | 'm4' 126 | 'automake' 127 | 'autoconf' 128 | 'libtool' 129 | 'pkg-config' 130 | 'texinfo' 131 | 'coreutils' 132 | 'gnu-getopt' 133 | 'python@3' 134 | 'ninja' 135 | 'ccache' 136 | 'bison' 137 | 'byacc' 138 | 'gettext' 139 | 'wget' 140 | 'pcre' 141 | 'openjdk@11' 142 | 'maven' 143 | 'node' 144 | 'llvm@16' 145 | 146 | - name: Linux 147 | os: ubuntu-22.04 148 | packages: >- 149 | 'build-essential' 150 | 'automake' 151 | 'autoconf' 152 | 'libtool-bin' 153 | 'pkg-config' 154 | 'cmake=3.22.1-1ubuntu1.22.04.2' 155 | 'ninja-build' 156 | 'ccache' 157 | 'python-is-python3' 158 | 'bison' 159 | 'byacc' 160 | 'flex' 161 | 'binutils-dev' 162 | 'libiberty-dev' 163 | 'curl' 164 | 'git' 165 | 'zip' 166 | 'unzip' 167 | 'autopoint' 168 | 'openjdk-8-jdk' 169 | 'openjdk-8-jdk-headless' 170 | 'maven' 171 | 172 | runs-on: ${{ matrix.config.os }} 173 | env: 174 | GH_REPO: ${{ github.repository }} 175 | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} 176 | steps: 177 | - name: Checkout easimon/maximize-build-space 178 | if: ${{ matrix.config.name == 'Linux' }} 179 | run: | 180 | git clone -b v7 https://github.com/easimon/maximize-build-space 181 | 182 | - name: Maximize build space 183 | if: ${{ matrix.config.name == 'Linux' }} 184 | uses: ./maximize-build-space 185 | with: 186 | root-reserve-mb: 4096 187 | swap-size-mb: 8192 188 | remove-dotnet: 'true' 189 | remove-android: 'true' 190 | remove-haskell: 'true' 191 | remove-codeql: 'true' 192 | remove-docker-images: 'true' 193 | 194 | - name: Checkout 195 | uses: actions/checkout@v4 196 | with: 197 | repository: 'apache/doris' 198 | 199 | - name: Download 200 | run: | 201 | cd thirdparty 202 | curl -L https://github.com/${{ github.repository }}/releases/download/automation/doris-thirdparty-source.tgz \ 203 | -o doris-thirdparty-source.tgz 204 | tar -zxvf doris-thirdparty-source.tgz 205 | 206 | - name: Prepare for ${{ matrix.config.os }} 207 | run: | 208 | if [[ "${{ matrix.config.name }}" =~ macOS-* ]]; then 209 | # Install packages except cmake 210 | brew install ${{ matrix.config.packages }} || true 211 | # Install specific version of cmake 212 | brew unlink cmake || true 213 | wget https://github.com/Kitware/CMake/releases/download/v3.22.1/cmake-3.22.1-macos-universal.tar.gz 214 | tar -xzf cmake-3.22.1-macos-universal.tar.gz 215 | sudo cp -r cmake-3.22.1-macos-universal/CMake.app/Contents/* /usr/local/ 216 | cmake --version 217 | else 218 | export DEFAULT_DIR='/opt/doris' 219 | export PATH="${DEFAULT_DIR}/ldb-toolchain/bin:${PATH}" 220 | 221 | sudo apt update 222 | sudo apt-cache policy cmake 223 | sudo DEBIAN_FRONTEND=noninteractive apt install --yes ${{ matrix.config.packages }} 224 | 225 | mkdir -p "${DEFAULT_DIR}" 226 | wget https://github.com/amosbird/ldb_toolchain_gen/releases/download/v0.18/ldb_toolchain_gen.sh \ 227 | -q -O /tmp/ldb_toolchain_gen.sh 228 | bash /tmp/ldb_toolchain_gen.sh "${DEFAULT_DIR}/ldb-toolchain" 229 | fi 230 | 231 | - name: Build and Upload 232 | run: | 233 | if [[ "${{ matrix.config.name }}" == 'Linux' ]]; then 234 | export DEFAULT_DIR='/opt/doris' 235 | export PATH="${DEFAULT_DIR}/ldb-toolchain/bin:${PATH}" 236 | export PATH="$(find /usr/lib/jvm/java-8-openjdk* -maxdepth 1 -type d -name 'bin'):${PATH}" 237 | export JAVA_HOME="$(find /usr/lib/jvm/java-8-openjdk* -maxdepth 0)" 238 | export DORIS_TOOLCHAIN=gcc 239 | else 240 | export MACOSX_DEPLOYMENT_TARGET=12.0 241 | fi 242 | 243 | cd thirdparty 244 | ./build-thirdparty.sh -j "$(nproc)" 245 | 246 | kernel="$(uname -s | awk '{print tolower($0)}')" 247 | arch="$(uname -m)" 248 | rm -rf "doris-thirdparty-prebuilt-${kernel}-${arch}.tar.xz" 249 | tar -cf - installed | xz -z -T0 - >"doris-thirdparty-prebuilt-${kernel}-${arch}.tar.xz" 250 | gh release upload --clobber automation "doris-thirdparty-prebuilt-${kernel}-${arch}.tar.xz" 251 | 252 | success: 253 | name: Success 254 | needs: [prerelease, build] 255 | if: needs.prerelease.outputs.should_release == 'true' 256 | runs-on: ubuntu-latest 257 | env: 258 | GH_REPO: ${{ github.repository }} 259 | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} 260 | permissions: 261 | contents: write 262 | steps: 263 | - name: Update Checksums 264 | run: | 265 | gh release download automation 266 | 267 | content="$(gh release view automation | sed -n '/Update Time:/,/Doris Version:/p')" 268 | echo -ne "${content}\nStatus: *SUCCESS*\n\n## SHA256 Checksums\n\`\`\`\n$(sha256sum *)\n\`\`\`" >release_note.md 269 | gh release edit --latest -F release_note.md automation 270 | 271 | failure: 272 | name: Failure 273 | needs: [build] 274 | if: failure() 275 | runs-on: ubuntu-latest 276 | env: 277 | GH_REPO: ${{ github.repository }} 278 | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} 279 | permissions: 280 | contents: write 281 | steps: 282 | - name: Update Checksums 283 | run: | 284 | gh release download automation 285 | 286 | echo -ne "Status: *FAILURE*\n\n## SHA256 Checksums\n\`\`\`\n$(sha256sum *)\n\`\`\`" >release_note.md 287 | gh release edit --latest -F release_note.md automation 288 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | **/target/ 2 | 3 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | 19 | 20 | # Contributor Covenant Code of Conduct 21 | 22 | ## Our Pledge 23 | 24 | In the interest of fostering an open and welcoming environment, we as 25 | contributors and maintainers pledge to making participation in our project and 26 | our community a harassment-free experience for everyone, regardless of age, body 27 | size, disability, ethnicity, sex characteristics, gender identity and expression, 28 | level of experience, education, socio-economic status, nationality, personal 29 | appearance, race, religion, or sexual identity and orientation. 30 | 31 | ## Our Standards 32 | 33 | Examples of behavior that contributes to creating a positive environment 34 | include: 35 | 36 | * Using welcoming and inclusive language 37 | * Being respectful of differing viewpoints and experiences 38 | * Gracefully accepting constructive criticism 39 | * Focusing on what is best for the community 40 | * Showing empathy towards other community members 41 | 42 | Examples of unacceptable behavior by participants include: 43 | 44 | * The use of sexualized language or imagery and unwelcome sexual attention or 45 | advances 46 | * Trolling, insulting/derogatory comments, and personal or political attacks 47 | * Public or private harassment 48 | * Publishing others' private information, such as a physical or electronic 49 | address, without explicit permission 50 | * Other conduct which could reasonably be considered inappropriate in a 51 | professional setting 52 | 53 | ## Our Responsibilities 54 | 55 | Project maintainers are responsible for clarifying the standards of acceptable 56 | behavior and are expected to take appropriate and fair corrective action in 57 | response to any instances of unacceptable behavior. 58 | 59 | Project maintainers have the right and responsibility to remove, edit, or 60 | reject comments, commits, code, wiki edits, issues, and other contributions 61 | that are not aligned to this Code of Conduct, or to ban temporarily or 62 | permanently any contributor for other behaviors that they deem inappropriate, 63 | threatening, offensive, or harmful. 64 | 65 | ## Scope 66 | 67 | This Code of Conduct applies both within project spaces and in public spaces 68 | when an individual is representing the project or its community. Examples of 69 | representing a project or community include using an official project e-mail 70 | address, posting via an official social media account, or acting as an appointed 71 | representative at an online or offline event. Representation of a project may be 72 | further defined and clarified by project maintainers. 73 | 74 | ## Enforcement 75 | 76 | Instances of abusive, harassing, or otherwise unacceptable behavior may be 77 | reported by contacting the project team at dev@doris.apache.org. All 78 | complaints will be reviewed and investigated and will result in a response that 79 | is deemed necessary and appropriate to the circumstances. The project team is 80 | obligated to maintain confidentiality with regard to the reporter of an incident. 81 | Further details of specific enforcement policies may be posted separately. 82 | 83 | Project maintainers who do not follow or enforce the Code of Conduct in good 84 | faith may face temporary or permanent repercussions as determined by other 85 | members of the project's leadership. 86 | 87 | ## Attribution 88 | 89 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, 90 | available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html 91 | 92 | [homepage]: https://www.contributor-covenant.org 93 | 94 | For answers to common questions about this code of conduct, see 95 | https://www.contributor-covenant.org/faq 96 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | 203 | -------------------------------------------------------------------------------- 204 | 205 | be/src/common/status.* : BSD-style license 206 | 207 | Copyright (c) 2011 The LevelDB Authors. All rights reserved. 208 | Use of this source code is governed by a BSD-style license that can be 209 | found in the LICENSE file. See the AUTHORS file for names of contributors. 210 | 211 | -------------------------------------------------------------------------------- 212 | 213 | be/src/gutil/atomicops-internals-x86.h : Apache 2.0 License 214 | 215 | Copyright 2003 Google Inc. 216 | 217 | -------------------------------------------------------------------------------- 218 | 219 | be/src/gutil/atomicops-internals-x86.cc : Apache 2.0 License 220 | 221 | Copyright 2007 Google Inc. 222 | 223 | -------------------------------------------------------------------------------- 224 | 225 | be/src/gutil/arm_instruction_set_select.h : Apache 2.0 License 226 | 227 | Copyright 2011 Google Inc. 228 | 229 | -------------------------------------------------------------------------------- 230 | 231 | be/src/gutil/stl_util.h : Apache 2.0 License 232 | 233 | Copyright 2007 Google Inc. 234 | 235 | -------------------------------------------------------------------------------- 236 | 237 | be/src/gutil/utf/*: licensed under the following terms: 238 | 239 | UTF-8 Library 240 | 241 | The authors of this software are Rob Pike and Ken Thompson. 242 | Copyright (c) 1998-2002 by Lucent Technologies. 243 | 244 | Permission to use, copy, modify, and distribute this software for any purpose without 245 | fee is hereby granted, provided that this entire notice is included in all copies of any 246 | software which is or includes a copy or modification of this software and in all copies 247 | of the supporting documentation for such software. THIS SOFTWARE IS BEING PROVIDED "AS 248 | IS", WITHOUT ANY EXPRESS OR IMPLIED WARRANTY. IN PARTICULAR, NEITHER THE AUTHORS NOR 249 | LUCENT TECHNOLOGIES MAKE ANY REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE 250 | MERCHANTABILITY OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE. 251 | 252 | -------------------------------------------------------------------------------- 253 | 254 | be/src/gutil/valgrind.h: licensed under the following terms: 255 | 256 | This file is part of Valgrind, a dynamic binary instrumentation 257 | framework. 258 | 259 | Copyright (C) 2000-2008 Julian Seward. All rights reserved. 260 | 261 | Redistribution and use in source and binary forms, with or without 262 | modification, are permitted provided that the following conditions 263 | are met: 264 | 265 | 1. Redistributions of source code must retain the above copyright 266 | notice, this list of conditions and the following disclaimer. 267 | 268 | 2. The origin of this software must not be misrepresented; you must 269 | not claim that you wrote the original software. If you use this 270 | software in a product, an acknowledgment in the product 271 | documentation would be appreciated but is not required. 272 | 273 | 3. Altered source versions must be plainly marked as such, and must 274 | not be misrepresented as being the original software. 275 | 276 | 4. The name of the author may not be used to endorse or promote 277 | products derived from this software without specific prior written 278 | permission. 279 | 280 | THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS 281 | OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 282 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 283 | ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY 284 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 285 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 286 | GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 287 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 288 | WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 289 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 290 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 291 | 292 | -------------------------------------------------------------------------------- 293 | 294 | be/src/gutil: 3-clause BSD 295 | 296 | Except above files in this module, other files of this module are derived from code in 297 | the Chromium project, copyright (c) Google inc and (c) The Chromium Authors and 298 | licensed under the 3-clause BSD license: 299 | 300 | Copyright (c) 2013 The Chromium Authors. All rights reserved. 301 | 302 | Redistribution and use in source and binary forms, with or without modification, are 303 | permitted provided that the following conditions are met: 304 | 305 | * Redistributions of source code must retain the above copyright 306 | notice, this list of conditions and the following disclaimer. 307 | 308 | * Redistributions in binary form must reproduce the above copyright notice, this list 309 | of conditions and the following disclaimer in the documentation and/or other 310 | materials provided with the distribution. 311 | 312 | * Neither the name of Google Inc. nor the names of its contributors may be used to 313 | endorse or promote products derived from this software without specific prior 314 | written permission. 315 | 316 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 317 | EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 318 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL 319 | THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 320 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 321 | OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 322 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 323 | LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 324 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 325 | 326 | -------------------------------------------------------------------------------- 327 | 328 | Parts of be/src/runtime/string_search.hpp: Python Software License V2 329 | 330 | Copyright (c) 2001 - 2016 Python Software Foundation; All Rights Reserved 331 | 332 | PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2 333 | -------------------------------------------- 334 | 335 | 1. This LICENSE AGREEMENT is between the Python Software Foundation ("PSF"), and the 336 | Individual or Organization ("Licensee") accessing and otherwise using this software 337 | ("Python") in source or binary form and its associated documentation. 338 | 339 | 2. Subject to the terms and conditions of this License Agreement, PSF hereby grants 340 | Licensee a nonexclusive, royalty-free, world-wide license to reproduce, analyze, test, 341 | perform and/or display publicly, prepare derivative works, distribute, and otherwise use 342 | Python alone or in any derivative version, provided, however, that PSF's License 343 | Agreement and PSF's notice of copyright, i.e., "Copyright (c) 2001, 2002, 2003, 2004, 344 | 2005, 2006 Python Software Foundation; All Rights Reserved" are retained in Python alone 345 | or in any derivative version prepared by Licensee. 346 | 347 | 3. In the event Licensee prepares a derivative work that is based on or incorporates 348 | Python or any part thereof, and wants to make the derivative work available to others as 349 | provided herein, then Licensee hereby agrees to include in any such work a brief summary 350 | of the changes made to Python. 351 | 352 | 4. PSF is making Python available to Licensee on an "AS IS" basis. PSF MAKES NO 353 | REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, BUT NOT 354 | LIMITATION, PSF MAKES NO AND DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY 355 | OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT INFRINGE ANY 356 | THIRD PARTY RIGHTS. 357 | 358 | 5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON FOR ANY INCIDENTAL, 359 | SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR 360 | OTHERWISE USING PYTHON, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY 361 | THEREOF. 362 | 363 | 6. This License Agreement will automatically terminate upon a material breach of its 364 | terms and conditions. 365 | 366 | 7. Nothing in this License Agreement shall be deemed to create any relationship of 367 | agency, partnership, or joint venture between PSF and Licensee. This License Agreement 368 | does not grant permission to use PSF trademarks or trade name in a trademark sense to 369 | endorse or promote products or services of Licensee, or any third party. 370 | 371 | 8. By copying, installing or otherwise using Python, Licensee agrees to be bound by the 372 | terms and conditions of this License Agreement. 373 | 374 | -------------------------------------------------------------------------------- 375 | 376 | be/src/env (some portions): 3-clause BSD 377 | 378 | Some portions of this module are derived from code from RocksDB 379 | ( https://github.com/facebook/rocksdb ). RocksDB is dual-licensed 380 | under both the GPLv2 and Apache 2.0 License. We select Apache 2.0 381 | License. 382 | 383 | -------------------------------------------------------------------------------- 384 | 385 | be/src/util/coding.*: this code is licensed under both GPLv2 and Apache 2.0 License. 386 | Doris chooses Apache 2.0 License. 387 | 388 | Copyright (c) 2011-present, Facebook, Inc. All rights reserved. 389 | This source code is licensed under both the GPLv2 (found in the 390 | COPYING file in the root directory) and Apache 2.0 License 391 | (found in the LICENSE.Apache file in the root directory). 392 | 393 | Copyright (c) 2011 The LevelDB Authors. All rights reserved. 394 | Use of this source code is governed by a BSD-style license that can be 395 | found in the LICENSE file. See the AUTHORS file for names of contributors. 396 | 397 | -------------------------------------------------------------------------------- 398 | 399 | be/src/olap/lru_cache.h : BSD-style license 400 | be/src/olap/lru_cache.cpp : BSD-style license 401 | 402 | Copyright (c) 2011 The LevelDB Authors. All rights reserved. 403 | Use of this source code is governed by a BSD-style license that can be 404 | found in the LICENSE file. See the AUTHORS file for names of contributors. 405 | 406 | -------------------------------------------------------------------------------- 407 | 408 | be/src/olap/skiplist.h : BSD-style license 409 | 410 | Copyright (c) 2011 The LevelDB Authors. All rights reserved. 411 | Use of this source code is governed by a BSD-style license that can be 412 | found in the LICENSE file. See the AUTHORS file for names of contributors. 413 | 414 | -------------------------------------------------------------------------------- 415 | 416 | be/src/util/murmur_hash3.h 417 | be/src/util/murmur_hash3.cpp 418 | 419 | licensed under the following terms: 420 | 421 | MurmurHash3 was written by Austin Appleby, and is placed in the public 422 | domain. The author hereby disclaims copyright to this source code. 423 | 424 | -------------------------------------------------------------------------------- 425 | 426 | fe/fe-common/src/main/java/org/apache/doris/common/jmockit/*: MIT license 427 | 428 | Copyright (c) 2006 JMockit developers 429 | 430 | Permission is hereby granted, free of charge, to any person obtaining 431 | a copy of this software and associated documentation files (the 432 | "Software"), to deal in the Software without restriction, including 433 | without limitation the rights to use, copy, modify, merge, publish, 434 | distribute, sublicense, and/or sell copies of the Software, and to 435 | permit persons to whom the Software is furnished to do so, subject to 436 | the following conditions: 437 | 438 | The above copyright notice and this permission notice shall be 439 | included in all copies or substantial portions of the Software. 440 | 441 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 442 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 443 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 444 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 445 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 446 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 447 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 448 | 449 | ------------------------------------------------------------------------------- 450 | 451 | be/src/util/utf8_check.cpp: MIT license 452 | 453 | MIT License 454 | 455 | Copyright (c) 2019 Yibo Cai 456 | 457 | Permission is hereby granted, free of charge, to any person obtaining a copy 458 | of this software and associated documentation files (the "Software"), to deal 459 | in the Software without restriction, including without limitation the rights 460 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 461 | copies of the Software, and to permit persons to whom the Software is 462 | furnished to do so, subject to the following conditions: 463 | 464 | The above copyright notice and this permission notice shall be included in all 465 | copies or substantial portions of the Software. 466 | 467 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 468 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 469 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 470 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 471 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 472 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 473 | SOFTWARE. 474 | 475 | -------------------------------------------------------------------------------- 476 | 477 | be/src/util/condition_variable* : BSD-style license 478 | 479 | Copyright (c) 2011 The Chromium Authors. All rights reserved. 480 | Use of this source code is governed by a BSD-style license that can be 481 | found in the LICENSE file. 482 | 483 | -------------------------------------------------------------------------------- 484 | 485 | docs/.vuepress/* The MIT License (MIT) 486 | 487 | Copyright (c) 2018-present, Yuxi (Evan) You 488 | 489 | Permission is hereby granted, free of charge, to any person obtaining a copy 490 | of this software and associated documentation files (the "Software"), to deal 491 | in the Software without restriction, including without limitation the rights 492 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 493 | copies of the Software, and to permit persons to whom the Software is 494 | furnished to do so, subject to the following conditions: 495 | 496 | The above copyright notice and this permission notice shall be included in 497 | all copies or substantial portions of the Software. 498 | 499 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 500 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 501 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 502 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 503 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 504 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 505 | THE SOFTWARE. 506 | 507 | -------------------------------------------------------------------------------- 508 | 509 | be/src/util/sse2neon.h: MIT license 510 | 511 | This header file provides a simple API translation layer 512 | between SSE intrinsics to their corresponding Arm/Aarch64 NEON versions 513 | 514 | This header file does not yet translate all of the SSE intrinsics. 515 | 516 | Contributors to this work are: 517 | John W. Ratcliff 518 | Brandon Rowlett 519 | Ken Fast 520 | Eric van Beurden 521 | Alexander Potylitsin 522 | Hasindu Gamaarachchi 523 | Jim Huang 524 | Mark Cheng 525 | Malcolm James MacLeod 526 | Devin Hussey (easyaspi314) 527 | 528 | The MIT license: 529 | 530 | Permission is hereby granted, free of charge, to any person obtaining a copy 531 | of this software and associated documentation files (the "Software"), to deal 532 | in the Software without restriction, including without limitation the rights 533 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 534 | copies of the Software, and to permit persons to whom the Software is 535 | furnished to do so, subject to the following conditions: 536 | 537 | The above copyright notice and this permission notice shall be included in 538 | all copies or substantial portions of the Software. 539 | 540 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 541 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 542 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 543 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 544 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 545 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 546 | SOFTWARE. 547 | 548 | -------------------------------------------------------------------------------- 549 | 550 | build-support/run_clang_format.py: MIT license 551 | 552 | This script is copied from: 553 | https://github.com/DoozyX/clang-format-lint-action/blob/master/run-clang-format.py 554 | 555 | which is a wrapper script around clang-format, suitable for linting multiple files 556 | and to use for continuous integration. 557 | 558 | MIT License 559 | 560 | Copyright (c) 2019 Slobodan Kletnikov 561 | 562 | Permission is hereby granted, free of charge, to any person obtaining a copy 563 | of this software and associated documentation files (the "Software"), to deal 564 | in the Software without restriction, including without limitation the rights 565 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 566 | copies of the Software, and to permit persons to whom the Software is 567 | furnished to do so, subject to the following conditions: 568 | 569 | The above copyright notice and this permission notice shall be included in all 570 | copies or substantial portions of the Software. 571 | 572 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 573 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 574 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 575 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 576 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 577 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 578 | SOFTWARE. 579 | 580 | -------------------------------------------------------------------------------- 581 | 582 | be/src/common/signal_handler.h: 583 | 584 | Copyright (c) 2008, Google Inc. 585 | All rights reserved. 586 | 587 | Redistribution and use in source and binary forms, with or without 588 | modification, are permitted provided that the following conditions are 589 | met: 590 | 591 | * Redistributions of source code must retain the above copyright 592 | notice, this list of conditions and the following disclaimer. 593 | * Redistributions in binary form must reproduce the above 594 | copyright notice, this list of conditions and the following disclaimer 595 | in the documentation and/or other materials provided with the 596 | distribution. 597 | * Neither the name of Google Inc. nor the names of its 598 | contributors may be used to endorse or promote products derived from 599 | this software without specific prior written permission. 600 | 601 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 602 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 603 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 604 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 605 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 606 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 607 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 608 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 609 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 610 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 611 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 612 | 613 | -------------------------------------------------------------------------------- 614 | 615 | fe/fe-core/src/main/antlr4/org/apache/doris/nereids/JavaLexer.g4: BSD licence 616 | 617 | [The "BSD licence"] 618 | Copyright (c) 2013 Terence Parr, Sam Harwell 619 | Copyright (c) 2017 Ivan Kochurkin (upgrade to Java 8) 620 | Copyright (c) 2021 Michał Lorek (upgrade to Java 11) 621 | Copyright (c) 2022 Michał Lorek (upgrade to Java 17) 622 | All rights reserved. 623 | 624 | Redistribution and use in source and binary forms, with or without 625 | modification, are permitted provided that the following conditions 626 | are met: 627 | 1. Redistributions of source code must retain the above copyright 628 | notice, this list of conditions and the following disclaimer. 629 | 2. Redistributions in binary form must reproduce the above copyright 630 | notice, this list of conditions and the following disclaimer in the 631 | documentation and/or other materials provided with the distribution. 632 | 3. The name of the author may not be used to endorse or promote products 633 | derived from this software without specific prior written permission. 634 | 635 | THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 636 | IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 637 | OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 638 | IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 639 | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 640 | NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 641 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 642 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 643 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 644 | THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 645 | 646 | -------------------------------------------------------------------------------- 647 | 648 | fe/fe-core/src/main/antlr4/org/apache/doris/nereids/JavaParser.g4: BSD licence 649 | 650 | [The "BSD licence"] 651 | Copyright (c) 2013 Terence Parr, Sam Harwell 652 | Copyright (c) 2017 Ivan Kochurkin (upgrade to Java 8) 653 | Copyright (c) 2021 Michał Lorek (upgrade to Java 11) 654 | Copyright (c) 2022 Michał Lorek (upgrade to Java 17) 655 | All rights reserved. 656 | 657 | Redistribution and use in source and binary forms, with or without 658 | modification, are permitted provided that the following conditions 659 | are met: 660 | 1. Redistributions of source code must retain the above copyright 661 | notice, this list of conditions and the following disclaimer. 662 | 2. Redistributions in binary form must reproduce the above copyright 663 | notice, this list of conditions and the following disclaimer in the 664 | documentation and/or other materials provided with the distribution. 665 | 3. The name of the author may not be used to endorse or promote products 666 | derived from this software without specific prior written permission. 667 | 668 | THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 669 | IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 670 | OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 671 | IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 672 | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 673 | NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 674 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 675 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 676 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 677 | THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 678 | 679 | ---------------------------------------------------------------------------------- 680 | 681 | docs/.vuepress/public/js/jquery.min.js: 682 | 683 | jQuery v2.1.4 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license 684 | 685 | ---------------------------------------------------------------------------------- 686 | 687 | docs/.vuepress/public/css/animate.min.css: MIT license 688 | 689 | Animate.css - http://daneden.me/animate 690 | Licensed under the MIT license 691 | 692 | Copyright (c) 2013 Daniel Eden 693 | 694 | Permission is hereby granted, free of charge, to any person obtaining 695 | a copy of this software and associated documentation files (the "Software"), 696 | to deal in the Software without restriction, including without limitation 697 | the rights to use, copy, modify, merge, publish, distribute, sublicense, 698 | and/or sell copies of the Software, and to permit persons to whom the Software 699 | is furnished to do so, subject to the following conditions: 700 | 701 | The above copyright notice and this permission notice shall be included 702 | in all copies or substantial portions of the Software. 703 | 704 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 705 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 706 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 707 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, 708 | DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 709 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 710 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 711 | 712 | ---------------------------------------------------------------------------------- 713 | docs/.vuepress/public/js/wow.min.js: 714 | 715 | The MIT License (MIT) 716 | 717 | Copyright (c) 2016 Thomas Grainger. 718 | 719 | Permission is hereby granted, free of charge, to any person obtaining a copy 720 | of this software and associated documentation files (the "Software"), to deal 721 | in the Software without restriction, including without limitation the rights 722 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 723 | copies of the Software, and to permit persons to whom the Software is 724 | furnished to do so, subject to the following conditions: 725 | 726 | The above copyright notice and this permission notice shall be included in 727 | all copies or substantial portions of the Software. 728 | 729 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 730 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 731 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 732 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 733 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 734 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 735 | THE SOFTWARE. 736 | 737 | 738 | Portions of this wow.js Software may utilize the following copyrighted material, the use of which is hereby acknowledged. 739 | 740 | WOW: https://github.com/matthieua/WOW/tree/20848c410fe32d161c2330e1d261b59512094f81 741 | 742 | Copyright (C) 2014; Matthieu Aussaguel 743 | 744 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 745 | 746 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 747 | 748 | THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 749 | ---------------------------------------------------------------------------------- 750 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 19 | 20 | # Apache Doris Thirdparty Libs 21 | 22 | This repository is used to manage third-party libraries used in Apache Doris. Some libraries have not been maintained for a long time, so fork into this repository for bug fixes and feature development. Each third-party library is in a separate branch. 23 | 24 | # Current Libs 25 | 26 | | Lib Name | Branch | Description | Base version | Source URL | Latest Tag | CHANGELOG| 27 | | -------- | -------- | ------------------------------------------------------------ | ------------ | ------------------------------------------------------------ | ---------- | --- | 28 | | libhdfs3 | [libhdfs3](https://github.com/apache/doris-thirdparty/tree/libhdfs3) | designed as an alternative implementation of libhdfs, is implemented based on native Hadoop RPC protocol and HDFS data transfer protocol. It gets rid of the drawbacks of JNI, and it has a lightweight, small memory footprint code base. In addition, it is easy to use and deploy. | Master | [HAWQ_depends](https://github.com/apache/hawq/tree/master/depends/libhdfs3) | libhdfs3-v2.3.5 | [CHANGELOG](https://github.com/apache/doris-thirdparty/blob/libhdfs3/CHANGELOG.md) | 29 | | bdbje | [bdbje](https://github.com/apache/doris-thirdparty/tree/bdbje) | Berkley Database Java Edition - build and runtime support. | 18.3.12 | [bdbje Maven src](https://search.maven.org/artifact/com.sleepycat/je/18.3.12/jar) | bdbje-18.3.14-doris-snapshot | [CHANGELOG](https://github.com/apache/doris-thirdparty/blob/bdbje/CHANGELOG.md) | 30 | | datatables | [datatables](https://github.com/apache/doris-thirdparty/tree/datatables) | | 1.12.1 | | 1.12.1 | [CHANGELOG](https://github.com/apache/doris-thirdparty/blob/datatables/CHANGELOG.md) | 31 | | clucene | [clucene](https://github.com/apache/doris-thirdparty/tree/clucene) | CLucene is a C++ port of Lucene. It is a high-performance, full-featured text search engine written in C++. CLucene is faster than lucene as it is written in C++. | 2.4.1 | [cluence](http://www.sourceforge.net/projects/clucene) | 2.4.4 | [CHANGELOG](https://github.com/apache/doris-thirdparty/blob/clucene/ChangeLog) | 32 | --------------------------------------------------------------------------------