This is an automated email from the ASF dual-hosted git repository.

shuke987 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/doris-sdk.git


The following commit(s) were added to refs/heads/main by this push:
     new dddf3ef  [CI] Harden SDK workflows and repository protections (#15)
dddf3ef is described below

commit dddf3efcd978ed78de86f61d7e1ebb1a36b411c5
Author: Mingyu Chen (Rayner) <[email protected]>
AuthorDate: Thu Nov 26 16:36:55 2026 +0800

    [CI] Harden SDK workflows and repository protections (#15)
    
    * [CI] Harden SDK workflows and repository protections
    * [CI] Remove review-thread and release-tag requirements
    * [CI] Remove CODEOWNERS and code owner approval rule
---
 .asf.yaml                                          | 30 ++++++++++
 .github/workflows/build-extension.yaml             | 68 ++++++++++++++++------
 .github/workflows/license.yaml                     | 20 ++++---
 README.md                                          | 61 +++++--------------
 env.sh                                             | 15 +++--
 .../doris_go_stream_load/benchmark_demo.conf       | 17 ++++++
 .../doris_go_stream_load/benchmark_demo.go         | 17 ++++++
 stream-load-sdks/doris_go_stream_load/client.go    | 17 ++++++
 .../doris_go_stream_load/client_test.go            | 17 ++++++
 stream-load-sdks/doris_go_stream_load/config.go    | 17 ++++++
 .../doris_go_stream_load/example/main.go           | 17 ++++++
 .../doris_go_stream_load/loader_config.go          | 17 ++++++
 .../doris_go_stream_load/loader_config_test.go     | 17 ++++++
 .../doris_go_stream_load/normal_demo.go            | 17 ++++++
 .../doris_go_stream_load/request_queue.go          | 17 ++++++
 stream-load-sdks/doris_go_stream_load/sender.go    | 17 ++++++
 stream-load-sdks/doris_go_stream_load/types.go     | 17 ++++++
 thrift-service/build.sh                            |  2 +-
 thrift-service/pom.xml                             | 11 +++-
 19 files changed, 329 insertions(+), 82 deletions(-)

diff --git a/.asf.yaml b/.asf.yaml
index bd2e792..8c82df9 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -43,6 +43,36 @@ github:
     merge:   false
     rebase:  false
 
+  rulesets:
+    - name: Default Branch Protection
+      type: branch
+      branches:
+        includes:
+          - "~DEFAULT_BRANCH"
+          - "*-release"
+          - "release/**/*"
+          - "rel/**/*"
+      bypass_teams: []
+      restrict_deletion: true
+      restrict_force_push: true
+      required_pull_request_reviews:
+        required_approving_review_count: 1
+        dismiss_stale_reviews: true
+
+    # The required checks are available on the default branch. Existing release
+    # branches need the workflow updates before they can require these checks.
+    - name: Default Branch CI
+      type: branch
+      restrict_deletion: false
+      restrict_force_push: false
+      required_status_checks:
+        - name: License header
+          app_slug: 15368 # GitHub Actions
+        - name: Build Extensions
+          app_slug: 15368
+        - name: Go SDK tests
+          app_slug: 15368
+
 notifications:
     pullrequests_status:  [email protected]
 
diff --git a/.github/workflows/build-extension.yaml 
b/.github/workflows/build-extension.yaml
index 6266588..9bcb431 100644
--- a/.github/workflows/build-extension.yaml
+++ b/.github/workflows/build-extension.yaml
@@ -21,29 +21,61 @@ on:
   pull_request:
   push:
 
+permissions:
+  contents: read
+
 jobs:
   build-extension:
-    name: "Build Extensions"
-    runs-on: ubuntu-latest
-    defaults:
-      run:
-        shell: bash
+    name: Build Extensions
+    runs-on: ubuntu-24.04
+    timeout-minutes: 20
     steps:
-      - name: Checkout
-        uses: actions/checkout@main
-
-      - name: Setup java
-        uses: actions/setup-java@v2
+      - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # 
v7.0.1
         with:
-          distribution: adopt
+          persist-credentials: false
+      - uses: actions/setup-java@d1374f8ac74474200d16ef8ecee22c7ae7a51880 # 
v6.3.0
+        with:
+          distribution: temurin
           java-version: '8'
+          overwrite-settings: false
 
-      - name: Setup Apache Thrift Compiler
+      - name: Build Apache Thrift compiler
+        shell: bash
+        working-directory: ${{ runner.temp }}
+        env:
+          THRIFT_VERSION: '0.24.0'
+          THRIFT_SHA256: 
e0fa5839a4c5c1d631b0931cf2c554ebbfa4e2fee3a9fb3ffd4f82ce4396c6e4
         run: |
-          wget 
http://archive.ubuntu.com/ubuntu/pool/universe/t/thrift/thrift-compiler_0.16.0-2_amd64.deb
-          sudo dpkg -i thrift-compiler_0.16.0-2_amd64.deb
-          thrift --version
+          archive="thrift-${THRIFT_VERSION}.tar.gz"
+          curl --fail --silent --show-error --location --proto '=https' 
--retry 3 \
+            --output "$archive" 
"https://archive.apache.org/dist/thrift/${THRIFT_VERSION}/${archive}";
+          printf '%s  %s\n' "$THRIFT_SHA256" "$archive" | sha256sum --check
+          tar -xzf "$archive"
+          cmake -S "thrift-${THRIFT_VERSION}" -B thrift-build 
-DCMAKE_BUILD_TYPE=Release \
+            -DBUILD_LIBRARIES=OFF -DBUILD_TESTING=OFF -DBUILD_TUTORIALS=OFF
+          cmake --build thrift-build --parallel 2 --target thrift-compiler
 
-      - name: Build Doris SDK
-        run: |
-          cd thrift-service && mvn clean package
+      - name: Build Java Thrift SDK
+        working-directory: thrift-service
+        run: mvn --batch-mode --no-transfer-progress 
-Dthrift.binary="$RUNNER_TEMP/thrift-build/compiler/cpp/bin/thrift" clean 
package
+
+  test-go:
+    name: Go SDK tests
+    runs-on: ubuntu-latest
+    timeout-minutes: 10
+    defaults:
+      run:
+        working-directory: stream-load-sdks/doris_go_stream_load
+    steps:
+      - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # 
v7.0.1
+        with:
+          persist-credentials: false
+      - uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # 
v7.1.0
+        with:
+          go-version: '1.27.x'
+          cache: false
+      - name: Test Go SDK
+        run: go test -mod=readonly ./...
+      - name: Build Go SDK example
+        working-directory: stream-load-sdks/doris_go_stream_load/example
+        run: go test -mod=readonly ./...
diff --git a/.github/workflows/license.yaml b/.github/workflows/license.yaml
index 422309c..d04a8e2 100644
--- a/.github/workflows/license.yaml
+++ b/.github/workflows/license.yaml
@@ -20,20 +20,24 @@ name: License
 on:
   push:
   pull_request:
-    branches:
-      - main
-    paths-ignore:
-      - '**/*.md'
+
+permissions:
+  contents: read
 
 jobs:
   license-header:
-    if: github.repository == 'apache/doris-sdk'
     name: License header
     runs-on: ubuntu-latest
     timeout-minutes: 10
     steps:
-      - uses: actions/checkout@v3
+      - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # 
v7.0.1
+        with:
+          persist-credentials: false
+      - uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # 
v7.1.0
         with:
-          submodules: true
+          go-version: '1.27.x'
+          cache: false
       - name: Check license header
-        uses: apache/skywalking-eyes@main
+        run: |
+          GOBIN="$RUNNER_TEMP/bin" go install 
github.com/apache/skywalking-eyes/cmd/[email protected]
+          "$RUNNER_TEMP/bin/license-eye" header check
diff --git a/README.md b/README.md
index b1460ac..38741fb 100644
--- a/README.md
+++ b/README.md
@@ -23,58 +23,29 @@ This repository contains the sdk for the [Apache 
Doris](https://doris.apache.org
 
 ## Build and Install
 
-Ready to work
+Build the Java Thrift SDK with JDK 8 or later, Maven, and the Apache Thrift
+0.24.0 compiler. The compiler version must match the Java library version in
+`thrift-service/pom.xml`.
 
-1.Modify the `custom_env.sh.tpl` file and rename it to `custom_env.sh`
+Download the compiler source or the Windows executable from the Apache archive
+and verify the corresponding SHA-256 checksum before use. On Linux and macOS,
+install CMake, a C++ compiler, Flex and a recent Bison, then build from the
+extracted archive. [Apache Thrift 0.24.0 
archive](https://archive.apache.org/dist/thrift/0.24.0/)
 
-2.Specify the thrift installation directory
-
-```bash
-##source file content
-#export THRIFT_BIN=
-#export MVN_BIN=
-#export JAVA_HOME=
-
-##amend as below,MacOS as an example
-export THRIFT_BIN=/opt/homebrew/Cellar/[email protected]/0.16.0/bin/thrift
-export MVN_BIN=/opt/homebrew/Cellar/maven/3.9.0/bin/mvn
-export JAVA_HOME=/Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Home
-```
-
-Install `thrift` 0.16.0
-
-Windows:
 ```bash
-  1. Download: `http://archive.apache.org/dist/thrift/0.16.0/thrift-0.16.0.exe`
-  2. Modify thrift-0.16.0.exe to thrift.exe
+cmake -S thrift-0.24.0 -B thrift-build -DCMAKE_BUILD_TYPE=Release \
+  -DBUILD_LIBRARIES=OFF -DBUILD_TESTING=OFF -DBUILD_TUTORIALS=OFF
+cmake --build thrift-build --target thrift-compiler
 ```
 
-MacOS:
-```bash
-   brew install [email protected]
-```
+If CMake picks up the older system Bison on macOS, add
+`-DBISON_EXECUTABLE="$(brew --prefix bison)/bin/bison"` to the configure 
command.
 
-Note: Executing `brew install [email protected]` on MacOS may report an error that 
the version cannot be found. The solution is as follows, execute it in the 
terminal:
-```bash
-  1. brew tap-new $USER/local-tap
-  2. brew extract --version='0.16.0' thrift $USER/local-tap
-  3. brew install [email protected]
-```
+From this repository, pass the path to the resulting compiler to Maven.
 
-Linux:
 ```bash
-  1. wget https://archive.apache.org/dist/thrift/0.16.0/thrift-0.16.0.tar.gz  
# Download source package
-  2. yum install -y autoconf automake libtool cmake ncurses-devel 
openssl-devel lzo-devel zlib-devel gcc gcc-c++  # Install dependencies
-  3. tar zxvf thrift-0.16.0.tar.gz
-  4. cd thrift-0.16.0
-  5. ./configure --without-tests
-  6. make
-  7. make install
-  8. thrift --version  # Check the version after installation is complete
+mvn -pl thrift-service 
-Dthrift.binary=/path/to/thrift-build/compiler/cpp/bin/thrift clean package
 ```
-Note: If you have compiled Doris, you do not need to install thrift, you can 
directly use `$DORIS_HOME/thirdparty/installed/bin/thrift`
 
-Execute following command in `thrift-service` dir:
-```bash
-  sh build.sh
-```
+On Linux and macOS you can also copy `custom_env.sh.tpl` to `custom_env.sh`, 
set
+`THRIFT_BIN` to the compiler path, and run `bash build.sh` from 
`thrift-service`.
diff --git a/env.sh b/env.sh
index 85580e5..d484a1a 100755
--- a/env.sh
+++ b/env.sh
@@ -41,18 +41,17 @@ thrift_failed() {
     echo "For example: "
     echo "    THRIFT_BIN=/path/to/thrift/bin/thrift"
     echo ""
-    echo "You can install [email protected] by yourself, or if you have compiled 
the Doris core source file,"
-    echo "there is thrift in 'thirdparty/installed/bin/'"
+    echo "Install the Apache Thrift 0.24.0 compiler. See README.md for build 
instructions."
     exit 1
 }
 
 # check thrift
-[ -z "$THRIFT_BIN" ] && export THRIFT_BIN=$(which thrift)
-$THRIFT_BIN --version >/dev/null 2>&1
-[ $? -eq 127 ] && thrift_failed
-THRIFT_VER=$($THRIFT_BIN --version | awk '{print $3}')
-if [ x"${THRIFT_VER}" != x"0.16.0" ]; then
-    echo "oh, thrift version must be v0.16.0, please reinstall [email protected]"
+export THRIFT_BIN="${THRIFT_BIN:-$(command -v thrift)}"
+if ! thrift_version=$("$THRIFT_BIN" --version 2>/dev/null); then
+    thrift_failed
+fi
+if [[ "$thrift_version" != "Thrift version 0.24.0" ]]; then
+    echo "Expected Apache Thrift 0.24.0, found $thrift_version"
     exit 1
 fi
 
diff --git a/stream-load-sdks/doris_go_stream_load/benchmark_demo.conf 
b/stream-load-sdks/doris_go_stream_load/benchmark_demo.conf
index 1b2780d..3be24cc 100644
--- a/stream-load-sdks/doris_go_stream_load/benchmark_demo.conf
+++ b/stream-load-sdks/doris_go_stream_load/benchmark_demo.conf
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
 stream_load_url = 
http://some_dors.com:8080/api/wushilin/example_table/_stream_load
 # database is not required when stream_load_url is defined.
 database = some_database
diff --git a/stream-load-sdks/doris_go_stream_load/benchmark_demo.go 
b/stream-load-sdks/doris_go_stream_load/benchmark_demo.go
index 68efaad..1546320 100644
--- a/stream-load-sdks/doris_go_stream_load/benchmark_demo.go
+++ b/stream-load-sdks/doris_go_stream_load/benchmark_demo.go
@@ -1,3 +1,20 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
 //go:build ignore
 
 package main
diff --git a/stream-load-sdks/doris_go_stream_load/client.go 
b/stream-load-sdks/doris_go_stream_load/client.go
index 14dd6c0..995864a 100644
--- a/stream-load-sdks/doris_go_stream_load/client.go
+++ b/stream-load-sdks/doris_go_stream_load/client.go
@@ -1,3 +1,20 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
 package dorisstreamload
 
 import (
diff --git a/stream-load-sdks/doris_go_stream_load/client_test.go 
b/stream-load-sdks/doris_go_stream_load/client_test.go
index 7f178c4..8c0d098 100644
--- a/stream-load-sdks/doris_go_stream_load/client_test.go
+++ b/stream-load-sdks/doris_go_stream_load/client_test.go
@@ -1,3 +1,20 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
 package dorisstreamload
 
 import (
diff --git a/stream-load-sdks/doris_go_stream_load/config.go 
b/stream-load-sdks/doris_go_stream_load/config.go
index 03b51ed..7bb818b 100644
--- a/stream-load-sdks/doris_go_stream_load/config.go
+++ b/stream-load-sdks/doris_go_stream_load/config.go
@@ -1,3 +1,20 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
 package dorisstreamload
 
 import (
diff --git a/stream-load-sdks/doris_go_stream_load/example/main.go 
b/stream-load-sdks/doris_go_stream_load/example/main.go
index 5633b46..31fe505 100644
--- a/stream-load-sdks/doris_go_stream_load/example/main.go
+++ b/stream-load-sdks/doris_go_stream_load/example/main.go
@@ -1,3 +1,20 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
 package main
 
 import (
diff --git a/stream-load-sdks/doris_go_stream_load/loader_config.go 
b/stream-load-sdks/doris_go_stream_load/loader_config.go
index 08e9d22..f2bb9ce 100644
--- a/stream-load-sdks/doris_go_stream_load/loader_config.go
+++ b/stream-load-sdks/doris_go_stream_load/loader_config.go
@@ -1,3 +1,20 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
 package dorisstreamload
 
 import (
diff --git a/stream-load-sdks/doris_go_stream_load/loader_config_test.go 
b/stream-load-sdks/doris_go_stream_load/loader_config_test.go
index 2a6aefc..8c7fedb 100644
--- a/stream-load-sdks/doris_go_stream_load/loader_config_test.go
+++ b/stream-load-sdks/doris_go_stream_load/loader_config_test.go
@@ -1,3 +1,20 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
 package dorisstreamload
 
 import (
diff --git a/stream-load-sdks/doris_go_stream_load/normal_demo.go 
b/stream-load-sdks/doris_go_stream_load/normal_demo.go
index 9e9f7b0..714ace8 100644
--- a/stream-load-sdks/doris_go_stream_load/normal_demo.go
+++ b/stream-load-sdks/doris_go_stream_load/normal_demo.go
@@ -1,3 +1,20 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
 //go:build ignore
 
 package main
diff --git a/stream-load-sdks/doris_go_stream_load/request_queue.go 
b/stream-load-sdks/doris_go_stream_load/request_queue.go
index 8ba7a79..3e332f0 100644
--- a/stream-load-sdks/doris_go_stream_load/request_queue.go
+++ b/stream-load-sdks/doris_go_stream_load/request_queue.go
@@ -1,3 +1,20 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
 package dorisstreamload
 
 import (
diff --git a/stream-load-sdks/doris_go_stream_load/sender.go 
b/stream-load-sdks/doris_go_stream_load/sender.go
index 42fa0b7..93e417e 100644
--- a/stream-load-sdks/doris_go_stream_load/sender.go
+++ b/stream-load-sdks/doris_go_stream_load/sender.go
@@ -1,3 +1,20 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
 package dorisstreamload
 
 import (
diff --git a/stream-load-sdks/doris_go_stream_load/types.go 
b/stream-load-sdks/doris_go_stream_load/types.go
index 7622f2e..77dbc1a 100644
--- a/stream-load-sdks/doris_go_stream_load/types.go
+++ b/stream-load-sdks/doris_go_stream_load/types.go
@@ -1,3 +1,20 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
 package dorisstreamload
 
 import (
diff --git a/thrift-service/build.sh b/thrift-service/build.sh
index 187564a..fb07f4d 100755
--- a/thrift-service/build.sh
+++ b/thrift-service/build.sh
@@ -115,7 +115,7 @@ if [[ -f ${DORIS_HOME}/custom_env.sh ]]; then
 fi
 
 echo_g " build starting..."
-${MVN_BIN} clean package -Dthrift.binary=${THRIFT_BIN} "$@"
+"$MVN_BIN" clean package -Dthrift.binary="$THRIFT_BIN" "$@"
 
 
 EXIT_CODE=$?
diff --git a/thrift-service/pom.xml b/thrift-service/pom.xml
index 959b467..5b272b7 100644
--- a/thrift-service/pom.xml
+++ b/thrift-service/pom.xml
@@ -28,7 +28,8 @@ under the License.
     <artifactId>thrift-service</artifactId>
 
     <properties>
-        <libthrift.version>0.16.0</libthrift.version>
+        <libthrift.version>0.24.0</libthrift.version>
+        <thrift.binary>thrift</thrift.binary>
     </properties>
 
     <dependencies>
@@ -37,6 +38,11 @@ under the License.
             <artifactId>libthrift</artifactId>
             <version>${libthrift.version}</version>
         </dependency>
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>slf4j-api</artifactId>
+            <version>1.7.36</version>
+        </dependency>
     </dependencies>
 
     <build>
@@ -46,7 +52,8 @@ under the License.
                 <artifactId>maven-thrift-plugin</artifactId>
                 <version>0.1.11</version>
                 <configuration>
-                    <generator>java:fullcamel</generator>
+                    <thriftExecutable>${thrift.binary}</thriftExecutable>
+                    
<generator>java:fullcamel,generated_annotations=suppress</generator>
                 </configuration>
                 <executions>
                     <execution>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to