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

chunshao pushed a commit to tag v2.0.0-rc.3
in repository https://gitbox.apache.org/repos/asf/incubator-horaedb.git

commit 2a9f12a7ccc1e6166d38167c6ff91cd5c14a8df5
Author: Jiacai Liu <[email protected]>
AuthorDate: Tue Mar 12 10:39:09 2024 +0800

    fix: check ASF header for all source files (#1497)
    
    ## Rationale
    All source file should have ASF headers.
    
    ## Detailed Changes
    
    
    ## Test Plan
    CI
---
 .asf.yaml                                          |  2 +-
 licenserc.toml => .github/workflows/asf-header.yml | 34 +++++++++++++---------
 .github/workflows/ci.yml                           |  2 --
 .github/workflows/meta-ci.yml                      |  4 +--
 .pre-commit-config.yaml                            | 17 +++++++++++
 Dockerfile                                         | 17 +++++++++++
 docker/basic.sh                                    | 17 +++++++++++
 docker/docker-compose.yaml                         | 17 +++++++++++
 docker/entrypoint.sh                               | 17 +++++++++++
 integration_tests/build_meta.sh                    | 17 +++++++++++
 integration_tests/cases/common/basic.result        | 18 ++++++++++++
 integration_tests/cases/common/basic.sql           | 19 ++++++++++++
 .../cases/common/dml/case_sensitive.result         | 18 ++++++++++++
 .../cases/common/dml/case_sensitive.sql            | 19 ++++++++++++
 .../cases/common/dml/insert_mode.result            | 18 ++++++++++++
 integration_tests/cases/common/dml/insert_mode.sql | 19 ++++++++++++
 .../cases/common/dml/issue-1087.result             | 18 ++++++++++++
 integration_tests/cases/common/dml/issue-1087.sql  | 19 ++++++++++++
 .../cases/common/dml/issue-302.result              | 18 ++++++++++++
 integration_tests/cases/common/dml/issue-302.sql   | 19 ++++++++++++
 .../cases/common/dml/issue-341.result              | 18 ++++++++++++
 integration_tests/cases/common/dml/issue-341.sql   | 19 ++++++++++++
 integration_tests/cases/common/dml/issue-59.result | 18 ++++++++++++
 integration_tests/cases/common/dml/issue-59.sql    | 19 ++++++++++++
 .../cases/common/dml/issue-637.result              | 18 ++++++++++++
 integration_tests/cases/common/dml/issue-637.sql   | 19 ++++++++++++
 .../cases/common/dml/select_filter.result          | 18 ++++++++++++
 .../cases/common/dml/select_filter.sql             | 19 ++++++++++++
 .../cases/common/dml/select_having.result          | 18 ++++++++++++
 .../cases/common/dml/select_having.sql             | 19 ++++++++++++
 .../cases/common/dml/select_order.result           | 18 ++++++++++++
 .../cases/common/dml/select_order.sql              | 19 ++++++++++++
 .../cases/common/dummy/select_1.result             | 18 ++++++++++++
 integration_tests/cases/common/dummy/select_1.sql  | 19 ++++++++++++
 .../cases/common/explain/explain.result            | 18 ++++++++++++
 integration_tests/cases/common/explain/explain.sql | 19 ++++++++++++
 .../cases/common/function/aggregate.result         | 18 ++++++++++++
 .../cases/common/function/aggregate.sql            | 19 ++++++++++++
 .../cases/common/function/date_bin.result          | 18 ++++++++++++
 .../cases/common/function/date_bin.sql             | 19 ++++++++++++
 .../common/function/thetasketch_distinct.result    | 18 ++++++++++++
 .../cases/common/function/thetasketch_distinct.sql | 19 ++++++++++++
 .../cases/common/function/time_bucket.result       | 18 ++++++++++++
 .../cases/common/function/time_bucket.sql          | 19 ++++++++++++
 .../cases/common/optimizer/optimizer.result        | 18 ++++++++++++
 .../cases/common/optimizer/optimizer.sql           | 19 ++++++++++++
 .../cases/common/show/show_create_table.result     | 18 ++++++++++++
 .../cases/common/show/show_create_table.sql        | 19 ++++++++++++
 .../cases/env/cluster/ddl/alter_table.result       | 18 ++++++++++++
 .../cases/env/cluster/ddl/alter_table.sql          | 19 ++++++++++++
 .../cases/env/cluster/ddl/create_tables.result     | 18 ++++++++++++
 .../cases/env/cluster/ddl/create_tables.sql        | 19 ++++++++++++
 .../cases/env/cluster/ddl/partition_table.result   | 18 ++++++++++++
 .../cases/env/cluster/ddl/partition_table.sql      | 19 ++++++++++++
 .../cases/env/local/ddl/alter_table.result         | 18 ++++++++++++
 .../cases/env/local/ddl/alter_table.sql            | 19 ++++++++++++
 .../cases/env/local/ddl/create_tables.result       | 18 ++++++++++++
 .../cases/env/local/ddl/create_tables.sql          | 19 ++++++++++++
 .../cases/env/local/ddl/query-plan.result          | 18 ++++++++++++
 .../cases/env/local/ddl/query-plan.sql             | 19 ++++++++++++
 .../env/local/ddl/sampling-primary-key.result      | 18 ++++++++++++
 .../cases/env/local/ddl/sampling-primary-key.sql   | 19 ++++++++++++
 .../cases/env/local/influxql/basic.result          | 18 ++++++++++++
 .../cases/env/local/influxql/basic.sql             | 19 ++++++++++++
 .../cases/env/local/system/system_tables.result    | 18 ++++++++++++
 .../cases/env/local/system/system_tables.sql       | 19 ++++++++++++
 integration_tests/dist_query/diff.py               | 17 +++++++++++
 integration_tests/dist_query/run.sh                | 17 +++++++++++
 integration_tests/mysql/basic.sh                   | 17 +++++++++++
 integration_tests/opentsdb/run-tests.sh            | 17 +++++++++++
 integration_tests/opentsdb/test-put.py             | 17 +++++++++++
 integration_tests/postgresql/basic.sh              | 17 +++++++++++
 integration_tests/prom/remote-query.py             | 17 +++++++++++
 integration_tests/prom/run-tests.sh                | 17 +++++++++++
 integration_tests/recovery/check.py                | 17 +++++++++++
 integration_tests/recovery/run.sh                  | 17 +++++++++++
 integration_tests/sdk/java/pom.xml                 | 20 +++++++++++++
 .../sdk/java/src/main/java/io/ceresdb/App.java     | 19 ++++++++++++
 .../sdk/java/src/main/resources/log4j2.xml         | 20 +++++++++++++
 licenserc.toml                                     |  8 -----
 scripts/clean-large-folder.py                      | 17 +++++++++++
 scripts/free-disk-space.sh                         | 27 +++++++++--------
 scripts/run-tsbs.sh                                | 17 +++++++++++
 83 files changed, 1438 insertions(+), 40 deletions(-)

diff --git a/.asf.yaml b/.asf.yaml
index bf79faca..42ffc0d7 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -6,7 +6,7 @@
 # "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
+#   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
diff --git a/licenserc.toml b/.github/workflows/asf-header.yml
similarity index 67%
copy from licenserc.toml
copy to .github/workflows/asf-header.yml
index 23ab938c..a71c6627 100644
--- a/licenserc.toml
+++ b/.github/workflows/asf-header.yml
@@ -15,19 +15,25 @@
 # specific language governing permissions and limitations
 # under the License.
 
-headerPath = "Apache-2.0-ASF.txt"
+name: Check ASF check
 
-includes = [
-    "*.go",
-    "*.rs",
-    "*.toml",
-    "*.yml",
-    "Makefile",
-]
+on:
+  merge_group:
+  workflow_dispatch:
+  push:
+    branches:
+      - main
+      - dev
+  pull_request:
 
-excludes = [
-    # Derived
-    
"horaemeta/server/coordinator/scheduler/nodepicker/hash/consistent_uniform_test.go",
-    
"horaemeta/server/coordinator/scheduler/nodepicker/hash/consistent_uniform.go",
-    "horaemeta/server/service/http/route.go"
-]
+jobs:
+  style-check:
+    name: style-check
+    runs-on: ubuntu-latest
+    timeout-minutes: 60
+    steps:
+      - uses: actions/checkout@v3
+        with:
+          submodules: true
+      - name: Check License Header
+        uses: korandoru/hawkeye@v4
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 6bf05020..bf404fef 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -60,8 +60,6 @@ jobs:
       - name: Release Disk Quota
         run: |
           sudo make ensure-disk-quota
-      - name: Check License Header
-        uses: korandoru/hawkeye@v3
       - name: Setup Build Environment
         run: |
           sudo apt update
diff --git a/.github/workflows/meta-ci.yml b/.github/workflows/meta-ci.yml
index bb4b9ad1..0c43bf9d 100644
--- a/.github/workflows/meta-ci.yml
+++ b/.github/workflows/meta-ci.yml
@@ -39,9 +39,7 @@ jobs:
     runs-on: ubuntu-latest
     timeout-minutes: 5
     steps:
-      - uses: actions/checkout@v3
-      - name: Check License Header
-        uses: korandoru/hawkeye@v3
+      - uses: actions/checkout@v4
       - uses: actions/setup-go@v3
         with:
           go-version: 1.21.3
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index e0f594b5..449a43af 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -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.
+
 repos:
   - repo: https://github.com/pre-commit/pre-commit-hooks
     rev: v4.4.0
diff --git a/Dockerfile b/Dockerfile
index f4961ebf..0de3d643 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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.
+
 ## Builder
 ARG RUST_VERSION=1.59.0
 FROM rust:${RUST_VERSION}-slim-bullseye as build
diff --git a/docker/basic.sh b/docker/basic.sh
index 61a6f014..de783585 100755
--- a/docker/basic.sh
+++ b/docker/basic.sh
@@ -1,4 +1,21 @@
 #!/usr/bin/env bash
+# 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.
+
 
 set -exo pipefail
 
diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yaml
index 00a028ae..799ed963 100644
--- a/docker/docker-compose.yaml
+++ b/docker/docker-compose.yaml
@@ -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.
+
 version: '2'
 
 services:
diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh
index 2f7728fe..abb58817 100755
--- a/docker/entrypoint.sh
+++ b/docker/entrypoint.sh
@@ -1,4 +1,21 @@
 #!/usr/bin/env bash
+# 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.
+
 
 set -exo pipefail
 
diff --git a/integration_tests/build_meta.sh b/integration_tests/build_meta.sh
index 7576ab44..1aebbb70 100755
--- a/integration_tests/build_meta.sh
+++ b/integration_tests/build_meta.sh
@@ -1,4 +1,21 @@
 #!/usr/bin/env bash
+# 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.
+
 
 set -o errexit
 set -o nounset
diff --git a/integration_tests/cases/common/basic.result 
b/integration_tests/cases/common/basic.result
index 2fd284a8..60c5e6ee 100644
--- a/integration_tests/cases/common/basic.result
+++ b/integration_tests/cases/common/basic.result
@@ -1,3 +1,21 @@
+--
+-- 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.
+--
 DROP TABLE IF EXISTS `demo`;
 
 affected_rows: 0
diff --git a/integration_tests/cases/common/basic.sql 
b/integration_tests/cases/common/basic.sql
index 1f185e30..9b540c51 100644
--- a/integration_tests/cases/common/basic.sql
+++ b/integration_tests/cases/common/basic.sql
@@ -1,3 +1,22 @@
+--
+-- 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.
+--
+
 DROP TABLE IF EXISTS `demo`;
 
 CREATE TABLE demo (
diff --git a/integration_tests/cases/common/dml/case_sensitive.result 
b/integration_tests/cases/common/dml/case_sensitive.result
index 99b990d0..c244d45a 100644
--- a/integration_tests/cases/common/dml/case_sensitive.result
+++ b/integration_tests/cases/common/dml/case_sensitive.result
@@ -1,3 +1,21 @@
+--
+-- 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.
+--
 DROP TABLE IF EXISTS case_SENSITIVE_table1;
 
 affected_rows: 0
diff --git a/integration_tests/cases/common/dml/case_sensitive.sql 
b/integration_tests/cases/common/dml/case_sensitive.sql
index bbaae598..031bf2a2 100644
--- a/integration_tests/cases/common/dml/case_sensitive.sql
+++ b/integration_tests/cases/common/dml/case_sensitive.sql
@@ -1,3 +1,22 @@
+--
+-- 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.
+--
+
 
 DROP TABLE IF EXISTS case_SENSITIVE_table1;
 
diff --git a/integration_tests/cases/common/dml/insert_mode.result 
b/integration_tests/cases/common/dml/insert_mode.result
index ad077112..bdf9a520 100644
--- a/integration_tests/cases/common/dml/insert_mode.result
+++ b/integration_tests/cases/common/dml/insert_mode.result
@@ -1,3 +1,21 @@
+--
+-- 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.
+--
 -- overwrite
 DROP TABLE IF EXISTS `03_dml_insert_mode_table1`;
 
diff --git a/integration_tests/cases/common/dml/insert_mode.sql 
b/integration_tests/cases/common/dml/insert_mode.sql
index 7116d9c6..9327cb71 100644
--- a/integration_tests/cases/common/dml/insert_mode.sql
+++ b/integration_tests/cases/common/dml/insert_mode.sql
@@ -1,3 +1,22 @@
+--
+-- 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.
+--
+
 -- overwrite
 DROP TABLE IF EXISTS `03_dml_insert_mode_table1`;
 
diff --git a/integration_tests/cases/common/dml/issue-1087.result 
b/integration_tests/cases/common/dml/issue-1087.result
index fc1e0d8d..f9f41029 100644
--- a/integration_tests/cases/common/dml/issue-1087.result
+++ b/integration_tests/cases/common/dml/issue-1087.result
@@ -1,3 +1,21 @@
+--
+-- 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.
+--
 CREATE TABLE `issue_1087` (
     `name` string TAG NULL,
     `value` double NOT NULL,
diff --git a/integration_tests/cases/common/dml/issue-1087.sql 
b/integration_tests/cases/common/dml/issue-1087.sql
index 8aef61cf..7aa02602 100644
--- a/integration_tests/cases/common/dml/issue-1087.sql
+++ b/integration_tests/cases/common/dml/issue-1087.sql
@@ -1,3 +1,22 @@
+--
+-- 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.
+--
+
 CREATE TABLE `issue_1087` (
     `name` string TAG NULL,
     `value` double NOT NULL,
diff --git a/integration_tests/cases/common/dml/issue-302.result 
b/integration_tests/cases/common/dml/issue-302.result
index cd7afc3a..74407607 100644
--- a/integration_tests/cases/common/dml/issue-302.result
+++ b/integration_tests/cases/common/dml/issue-302.result
@@ -1,3 +1,21 @@
+--
+-- 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.
+--
 DROP TABLE IF EXISTS issue302;
 
 affected_rows: 0
diff --git a/integration_tests/cases/common/dml/issue-302.sql 
b/integration_tests/cases/common/dml/issue-302.sql
index c505fbe5..bb8b51b4 100644
--- a/integration_tests/cases/common/dml/issue-302.sql
+++ b/integration_tests/cases/common/dml/issue-302.sql
@@ -1,3 +1,22 @@
+--
+-- 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.
+--
+
 DROP TABLE IF EXISTS issue302;
 
 CREATE TABLE `issue302` (`name` string TAG NULL, `value` double NOT NULL, `t` 
timestamp NOT NULL, TIMESTAMP KEY(t)) ENGINE=Analytic with (enable_ttl='false');
diff --git a/integration_tests/cases/common/dml/issue-341.result 
b/integration_tests/cases/common/dml/issue-341.result
index 4d7da95c..0b4ffed9 100644
--- a/integration_tests/cases/common/dml/issue-341.result
+++ b/integration_tests/cases/common/dml/issue-341.result
@@ -1,3 +1,21 @@
+--
+-- 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.
+--
 DROP TABLE IF EXISTS `issue341_t1`;
 
 affected_rows: 0
diff --git a/integration_tests/cases/common/dml/issue-341.sql 
b/integration_tests/cases/common/dml/issue-341.sql
index fa8ee8fa..9836fe03 100644
--- a/integration_tests/cases/common/dml/issue-341.sql
+++ b/integration_tests/cases/common/dml/issue-341.sql
@@ -1,3 +1,22 @@
+--
+-- 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.
+--
+
 
 DROP TABLE IF EXISTS `issue341_t1`;
 DROP TABLE IF EXISTS `issue341_t2`;
diff --git a/integration_tests/cases/common/dml/issue-59.result 
b/integration_tests/cases/common/dml/issue-59.result
index 4f7544c8..7888f8d8 100644
--- a/integration_tests/cases/common/dml/issue-59.result
+++ b/integration_tests/cases/common/dml/issue-59.result
@@ -1,3 +1,21 @@
+--
+-- 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.
+--
 DROP TABLE IF EXISTS issue59;
 
 affected_rows: 0
diff --git a/integration_tests/cases/common/dml/issue-59.sql 
b/integration_tests/cases/common/dml/issue-59.sql
index 84257940..b9d1a5f8 100644
--- a/integration_tests/cases/common/dml/issue-59.sql
+++ b/integration_tests/cases/common/dml/issue-59.sql
@@ -1,3 +1,22 @@
+--
+-- 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.
+--
+
 DROP TABLE IF EXISTS issue59;
 
 CREATE TABLE issue59 (
diff --git a/integration_tests/cases/common/dml/issue-637.result 
b/integration_tests/cases/common/dml/issue-637.result
index 819a4476..93d018c2 100644
--- a/integration_tests/cases/common/dml/issue-637.result
+++ b/integration_tests/cases/common/dml/issue-637.result
@@ -1,3 +1,21 @@
+--
+-- 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.
+--
 DROP TABLE IF EXISTS `issue637`;
 
 affected_rows: 0
diff --git a/integration_tests/cases/common/dml/issue-637.sql 
b/integration_tests/cases/common/dml/issue-637.sql
index 700f7c35..ff20b53b 100644
--- a/integration_tests/cases/common/dml/issue-637.sql
+++ b/integration_tests/cases/common/dml/issue-637.sql
@@ -1,3 +1,22 @@
+--
+-- 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.
+--
+
 DROP TABLE IF EXISTS `issue637`;
 
 CREATE TABLE IF NOT EXISTS `issue637`
diff --git a/integration_tests/cases/common/dml/select_filter.result 
b/integration_tests/cases/common/dml/select_filter.result
index a54bc9a8..fe2f7bee 100644
--- a/integration_tests/cases/common/dml/select_filter.result
+++ b/integration_tests/cases/common/dml/select_filter.result
@@ -1,3 +1,21 @@
+--
+-- 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.
+--
 DROP TABLE IF EXISTS `03_dml_select_filter_table1`;
 
 affected_rows: 0
diff --git a/integration_tests/cases/common/dml/select_filter.sql 
b/integration_tests/cases/common/dml/select_filter.sql
index d4db5144..95419164 100644
--- a/integration_tests/cases/common/dml/select_filter.sql
+++ b/integration_tests/cases/common/dml/select_filter.sql
@@ -1,3 +1,22 @@
+--
+-- 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.
+--
+
 
 DROP TABLE IF EXISTS `03_dml_select_filter_table1`;
 
diff --git a/integration_tests/cases/common/dml/select_having.result 
b/integration_tests/cases/common/dml/select_having.result
index aad0c109..18b3340c 100644
--- a/integration_tests/cases/common/dml/select_having.result
+++ b/integration_tests/cases/common/dml/select_having.result
@@ -1,3 +1,21 @@
+--
+-- 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.
+--
 DROP TABLE IF EXISTS `03_dml_select_having_table1`;
 
 affected_rows: 0
diff --git a/integration_tests/cases/common/dml/select_having.sql 
b/integration_tests/cases/common/dml/select_having.sql
index bb0590b8..8f009adf 100644
--- a/integration_tests/cases/common/dml/select_having.sql
+++ b/integration_tests/cases/common/dml/select_having.sql
@@ -1,3 +1,22 @@
+--
+-- 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.
+--
+
 DROP TABLE IF EXISTS `03_dml_select_having_table1`;
 
 CREATE TABLE `03_dml_select_having_table1` (
diff --git a/integration_tests/cases/common/dml/select_order.result 
b/integration_tests/cases/common/dml/select_order.result
index fc7caa83..2daf44fe 100644
--- a/integration_tests/cases/common/dml/select_order.result
+++ b/integration_tests/cases/common/dml/select_order.result
@@ -1,3 +1,21 @@
+--
+-- 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.
+--
 DROP TABLE IF EXISTS `03_dml_select_order_table1`;
 
 affected_rows: 0
diff --git a/integration_tests/cases/common/dml/select_order.sql 
b/integration_tests/cases/common/dml/select_order.sql
index b450b97e..9a455157 100644
--- a/integration_tests/cases/common/dml/select_order.sql
+++ b/integration_tests/cases/common/dml/select_order.sql
@@ -1,3 +1,22 @@
+--
+-- 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.
+--
+
 DROP TABLE IF EXISTS `03_dml_select_order_table1`;
 
 CREATE TABLE `03_dml_select_order_table1` (
diff --git a/integration_tests/cases/common/dummy/select_1.result 
b/integration_tests/cases/common/dummy/select_1.result
index e77017e0..f88c9479 100644
--- a/integration_tests/cases/common/dummy/select_1.result
+++ b/integration_tests/cases/common/dummy/select_1.result
@@ -1,3 +1,21 @@
+--
+-- 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.
+--
 SELECT 1;
 
 Int64(1),
diff --git a/integration_tests/cases/common/dummy/select_1.sql 
b/integration_tests/cases/common/dummy/select_1.sql
index 4ea2a974..e43d60ff 100644
--- a/integration_tests/cases/common/dummy/select_1.sql
+++ b/integration_tests/cases/common/dummy/select_1.sql
@@ -1,3 +1,22 @@
+--
+-- 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.
+--
+
 SELECT 1;
 
 SELECT x;
diff --git a/integration_tests/cases/common/explain/explain.result 
b/integration_tests/cases/common/explain/explain.result
index 6cf09c07..da50788b 100644
--- a/integration_tests/cases/common/explain/explain.result
+++ b/integration_tests/cases/common/explain/explain.result
@@ -1,3 +1,21 @@
+--
+-- 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.
+--
 DROP TABLE `04_explain_t`;
 
 Failed to execute query, err: Server(ServerError { code: 500, msg: "Failed to 
create plan. Caused by: Failed to create plan, err:Table not found, 
table:04_explain_t sql:DROP TABLE `04_explain_t`;" })
diff --git a/integration_tests/cases/common/explain/explain.sql 
b/integration_tests/cases/common/explain/explain.sql
index a286b45e..ed1d443b 100644
--- a/integration_tests/cases/common/explain/explain.sql
+++ b/integration_tests/cases/common/explain/explain.sql
@@ -1,3 +1,22 @@
+--
+-- 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.
+--
+
 DROP TABLE `04_explain_t`;
 
 CREATE TABLE `04_explain_t` (t timestamp NOT NULL, TIMESTAMP KEY(t)) 
ENGINE=Analytic;
diff --git a/integration_tests/cases/common/function/aggregate.result 
b/integration_tests/cases/common/function/aggregate.result
index f45a6841..8f956cf9 100644
--- a/integration_tests/cases/common/function/aggregate.result
+++ b/integration_tests/cases/common/function/aggregate.result
@@ -1,3 +1,21 @@
+--
+-- 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.
+--
 DROP TABLE IF EXISTS `02_function_aggregate_table1`;
 
 affected_rows: 0
diff --git a/integration_tests/cases/common/function/aggregate.sql 
b/integration_tests/cases/common/function/aggregate.sql
index 8543245a..94b4a21c 100644
--- a/integration_tests/cases/common/function/aggregate.sql
+++ b/integration_tests/cases/common/function/aggregate.sql
@@ -1,3 +1,22 @@
+--
+-- 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.
+--
+
 DROP TABLE IF EXISTS `02_function_aggregate_table1`;
 
 CREATE TABLE `02_function_aggregate_table1` (
diff --git a/integration_tests/cases/common/function/date_bin.result 
b/integration_tests/cases/common/function/date_bin.result
index 8caffe88..69985c92 100644
--- a/integration_tests/cases/common/function/date_bin.result
+++ b/integration_tests/cases/common/function/date_bin.result
@@ -1,3 +1,21 @@
+--
+-- 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.
+--
 DROP TABLE IF EXISTS `02_function_date_bin_table`;
 
 affected_rows: 0
diff --git a/integration_tests/cases/common/function/date_bin.sql 
b/integration_tests/cases/common/function/date_bin.sql
index 6fe10a38..f9b9680a 100644
--- a/integration_tests/cases/common/function/date_bin.sql
+++ b/integration_tests/cases/common/function/date_bin.sql
@@ -1,3 +1,22 @@
+--
+-- 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.
+--
+
 DROP TABLE IF EXISTS `02_function_date_bin_table`;
 
 CREATE TABLE `02_function_date_bin_table` (
diff --git 
a/integration_tests/cases/common/function/thetasketch_distinct.result 
b/integration_tests/cases/common/function/thetasketch_distinct.result
index 2969d93d..3aa8aae8 100644
--- a/integration_tests/cases/common/function/thetasketch_distinct.result
+++ b/integration_tests/cases/common/function/thetasketch_distinct.result
@@ -1,3 +1,21 @@
+--
+-- 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.
+--
 DROP TABLE IF EXISTS `02_function_thetasketch_distinct_table`;
 
 affected_rows: 0
diff --git a/integration_tests/cases/common/function/thetasketch_distinct.sql 
b/integration_tests/cases/common/function/thetasketch_distinct.sql
index cb451fd1..e3d2d39c 100644
--- a/integration_tests/cases/common/function/thetasketch_distinct.sql
+++ b/integration_tests/cases/common/function/thetasketch_distinct.sql
@@ -1,3 +1,22 @@
+--
+-- 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.
+--
+
 DROP TABLE IF EXISTS `02_function_thetasketch_distinct_table`;
 
 CREATE TABLE `02_function_thetasketch_distinct_table` (
diff --git a/integration_tests/cases/common/function/time_bucket.result 
b/integration_tests/cases/common/function/time_bucket.result
index ac9c6d40..d5783a6f 100644
--- a/integration_tests/cases/common/function/time_bucket.result
+++ b/integration_tests/cases/common/function/time_bucket.result
@@ -1,3 +1,21 @@
+--
+-- 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.
+--
 DROP TABLE IF EXISTS `02_function_time_bucket_table`;
 
 affected_rows: 0
diff --git a/integration_tests/cases/common/function/time_bucket.sql 
b/integration_tests/cases/common/function/time_bucket.sql
index f1ae2c94..2eeeb123 100644
--- a/integration_tests/cases/common/function/time_bucket.sql
+++ b/integration_tests/cases/common/function/time_bucket.sql
@@ -1,3 +1,22 @@
+--
+-- 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.
+--
+
 DROP TABLE IF EXISTS `02_function_time_bucket_table`;
 
 CREATE TABLE `02_function_time_bucket_table` (
diff --git a/integration_tests/cases/common/optimizer/optimizer.result 
b/integration_tests/cases/common/optimizer/optimizer.result
index 5df9f47e..7d58e014 100644
--- a/integration_tests/cases/common/optimizer/optimizer.result
+++ b/integration_tests/cases/common/optimizer/optimizer.result
@@ -1,3 +1,21 @@
+--
+-- 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.
+--
 DROP TABLE `07_optimizer_t`;
 
 Failed to execute query, err: Server(ServerError { code: 500, msg: "Failed to 
create plan. Caused by: Failed to create plan, err:Table not found, 
table:07_optimizer_t sql:DROP TABLE `07_optimizer_t`;" })
diff --git a/integration_tests/cases/common/optimizer/optimizer.sql 
b/integration_tests/cases/common/optimizer/optimizer.sql
index 921ef3c6..35e4076d 100644
--- a/integration_tests/cases/common/optimizer/optimizer.sql
+++ b/integration_tests/cases/common/optimizer/optimizer.sql
@@ -1,3 +1,22 @@
+--
+-- 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.
+--
+
 DROP TABLE `07_optimizer_t`;
 
 CREATE TABLE `07_optimizer_t` (name string TAG, value double NOT NULL, t 
timestamp NOT NULL, TIMESTAMP KEY(t)) ENGINE=Analytic with (enable_ttl='false');
diff --git a/integration_tests/cases/common/show/show_create_table.result 
b/integration_tests/cases/common/show/show_create_table.result
index 41d43c49..4e42df33 100644
--- a/integration_tests/cases/common/show/show_create_table.result
+++ b/integration_tests/cases/common/show/show_create_table.result
@@ -1,3 +1,21 @@
+--
+-- 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.
+--
 DROP TABLE IF EXISTS `06_show_a`;
 
 affected_rows: 0
diff --git a/integration_tests/cases/common/show/show_create_table.sql 
b/integration_tests/cases/common/show/show_create_table.sql
index 80f56d84..44ad61df 100644
--- a/integration_tests/cases/common/show/show_create_table.sql
+++ b/integration_tests/cases/common/show/show_create_table.sql
@@ -1,3 +1,22 @@
+--
+-- 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.
+--
+
 DROP TABLE IF EXISTS `06_show_a`;
 DROP TABLE IF EXISTS `06_show_b`;
 DROP TABLE IF EXISTS `06_show_c`;
diff --git a/integration_tests/cases/env/cluster/ddl/alter_table.result 
b/integration_tests/cases/env/cluster/ddl/alter_table.result
index a590df3e..ef18ca11 100644
--- a/integration_tests/cases/env/cluster/ddl/alter_table.result
+++ b/integration_tests/cases/env/cluster/ddl/alter_table.result
@@ -1,3 +1,21 @@
+--
+-- 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.
+--
 DROP TABLE IF EXISTS `05_alter_table_t0`;
 
 affected_rows: 0
diff --git a/integration_tests/cases/env/cluster/ddl/alter_table.sql 
b/integration_tests/cases/env/cluster/ddl/alter_table.sql
index 0b358598..f93930d9 100644
--- a/integration_tests/cases/env/cluster/ddl/alter_table.sql
+++ b/integration_tests/cases/env/cluster/ddl/alter_table.sql
@@ -1,3 +1,22 @@
+--
+-- 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.
+--
+
 DROP TABLE IF EXISTS `05_alter_table_t0`;
 
 CREATE TABLE `05_alter_table_t0`(a int, t timestamp NOT NULL, dic string 
dictionary, TIMESTAMP KEY(t)) ENGINE = Analytic with (enable_ttl='false');
diff --git a/integration_tests/cases/env/cluster/ddl/create_tables.result 
b/integration_tests/cases/env/cluster/ddl/create_tables.result
index d68ea742..cfd536d5 100644
--- a/integration_tests/cases/env/cluster/ddl/create_tables.result
+++ b/integration_tests/cases/env/cluster/ddl/create_tables.result
@@ -1,3 +1,21 @@
+--
+-- 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.
+--
 DROP TABLE IF EXISTS `05_create_tables_t`;
 
 affected_rows: 0
diff --git a/integration_tests/cases/env/cluster/ddl/create_tables.sql 
b/integration_tests/cases/env/cluster/ddl/create_tables.sql
index f1112c0d..260c7e2b 100644
--- a/integration_tests/cases/env/cluster/ddl/create_tables.sql
+++ b/integration_tests/cases/env/cluster/ddl/create_tables.sql
@@ -1,3 +1,22 @@
+--
+-- 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.
+--
+
 DROP TABLE IF EXISTS `05_create_tables_t`;
 DROP TABLE IF EXISTS `05_create_tables_t2`;
 DROP TABLE IF EXISTS `05_create_tables_t3`;
diff --git a/integration_tests/cases/env/cluster/ddl/partition_table.result 
b/integration_tests/cases/env/cluster/ddl/partition_table.result
index 233c3483..851f5a82 100644
--- a/integration_tests/cases/env/cluster/ddl/partition_table.result
+++ b/integration_tests/cases/env/cluster/ddl/partition_table.result
@@ -1,3 +1,21 @@
+--
+-- 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.
+--
 DROP TABLE IF EXISTS `partition_table_t`;
 
 affected_rows: 0
diff --git a/integration_tests/cases/env/cluster/ddl/partition_table.sql 
b/integration_tests/cases/env/cluster/ddl/partition_table.sql
index a87dfbb2..9b056de7 100644
--- a/integration_tests/cases/env/cluster/ddl/partition_table.sql
+++ b/integration_tests/cases/env/cluster/ddl/partition_table.sql
@@ -1,3 +1,22 @@
+--
+-- 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.
+--
+
 DROP TABLE IF EXISTS `partition_table_t`;
 
 CREATE TABLE `partition_table_t`(
diff --git a/integration_tests/cases/env/local/ddl/alter_table.result 
b/integration_tests/cases/env/local/ddl/alter_table.result
index d3502f2d..8f2db031 100644
--- a/integration_tests/cases/env/local/ddl/alter_table.result
+++ b/integration_tests/cases/env/local/ddl/alter_table.result
@@ -1,3 +1,21 @@
+--
+-- 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.
+--
 DROP TABLE IF EXISTS `05_alter_table_t0`;
 
 affected_rows: 0
diff --git a/integration_tests/cases/env/local/ddl/alter_table.sql 
b/integration_tests/cases/env/local/ddl/alter_table.sql
index 460c799f..d686d856 100644
--- a/integration_tests/cases/env/local/ddl/alter_table.sql
+++ b/integration_tests/cases/env/local/ddl/alter_table.sql
@@ -1,3 +1,22 @@
+--
+-- 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.
+--
+
 DROP TABLE IF EXISTS `05_alter_table_t0`;
 
 CREATE TABLE `05_alter_table_t0`(a int, t timestamp NOT NULL, dic string 
dictionary, TIMESTAMP KEY(t)) ENGINE = Analytic with (enable_ttl='false');
diff --git a/integration_tests/cases/env/local/ddl/create_tables.result 
b/integration_tests/cases/env/local/ddl/create_tables.result
index 627b9cb7..ffa0a628 100644
--- a/integration_tests/cases/env/local/ddl/create_tables.result
+++ b/integration_tests/cases/env/local/ddl/create_tables.result
@@ -1,3 +1,21 @@
+--
+-- 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.
+--
 DROP TABLE IF EXISTS `05_create_tables_t`;
 
 affected_rows: 0
diff --git a/integration_tests/cases/env/local/ddl/create_tables.sql 
b/integration_tests/cases/env/local/ddl/create_tables.sql
index acb7392d..405ec3c5 100644
--- a/integration_tests/cases/env/local/ddl/create_tables.sql
+++ b/integration_tests/cases/env/local/ddl/create_tables.sql
@@ -1,3 +1,22 @@
+--
+-- 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.
+--
+
 DROP TABLE IF EXISTS `05_create_tables_t`;
 DROP TABLE IF EXISTS `05_create_tables_t2`;
 DROP TABLE IF EXISTS `05_create_tables_t3`;
diff --git a/integration_tests/cases/env/local/ddl/query-plan.result 
b/integration_tests/cases/env/local/ddl/query-plan.result
index 1f632184..fbc34840 100644
--- a/integration_tests/cases/env/local/ddl/query-plan.result
+++ b/integration_tests/cases/env/local/ddl/query-plan.result
@@ -1,3 +1,21 @@
+--
+-- 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.
+--
 DROP TABLE IF EXISTS `03_dml_select_real_time_range`;
 
 affected_rows: 0
diff --git a/integration_tests/cases/env/local/ddl/query-plan.sql 
b/integration_tests/cases/env/local/ddl/query-plan.sql
index 5217b1a0..378a93a7 100644
--- a/integration_tests/cases/env/local/ddl/query-plan.sql
+++ b/integration_tests/cases/env/local/ddl/query-plan.sql
@@ -1,3 +1,22 @@
+--
+-- 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.
+--
+
 DROP TABLE IF EXISTS `03_dml_select_real_time_range`;
 DROP TABLE IF EXISTS `03_append_mode_table`;
 
diff --git a/integration_tests/cases/env/local/ddl/sampling-primary-key.result 
b/integration_tests/cases/env/local/ddl/sampling-primary-key.result
index 45d74f4e..8ef0dc08 100644
--- a/integration_tests/cases/env/local/ddl/sampling-primary-key.result
+++ b/integration_tests/cases/env/local/ddl/sampling-primary-key.result
@@ -1,3 +1,21 @@
+--
+-- 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.
+--
 DROP TABLE IF EXISTS `sampling_primary_key_table`;
 
 affected_rows: 0
diff --git a/integration_tests/cases/env/local/ddl/sampling-primary-key.sql 
b/integration_tests/cases/env/local/ddl/sampling-primary-key.sql
index 23e7b07b..7a34b66b 100644
--- a/integration_tests/cases/env/local/ddl/sampling-primary-key.sql
+++ b/integration_tests/cases/env/local/ddl/sampling-primary-key.sql
@@ -1,3 +1,22 @@
+--
+-- 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.
+--
+
 
 DROP TABLE IF EXISTS `sampling_primary_key_table`;
 
diff --git a/integration_tests/cases/env/local/influxql/basic.result 
b/integration_tests/cases/env/local/influxql/basic.result
index 0e1036b9..61b6f1fd 100644
--- a/integration_tests/cases/env/local/influxql/basic.result
+++ b/integration_tests/cases/env/local/influxql/basic.result
@@ -1,3 +1,21 @@
+--
+-- 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.
+--
 DROP TABLE IF EXISTS `h2o_feet`;
 
 affected_rows: 0
diff --git a/integration_tests/cases/env/local/influxql/basic.sql 
b/integration_tests/cases/env/local/influxql/basic.sql
index f3cea093..50481e9a 100644
--- a/integration_tests/cases/env/local/influxql/basic.sql
+++ b/integration_tests/cases/env/local/influxql/basic.sql
@@ -1,3 +1,22 @@
+--
+-- 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.
+--
+
 DROP TABLE IF EXISTS `h2o_feet`;
 
 CREATE TABLE `h2o_feet` (
diff --git a/integration_tests/cases/env/local/system/system_tables.result 
b/integration_tests/cases/env/local/system/system_tables.result
index f172555f..3ac0d064 100644
--- a/integration_tests/cases/env/local/system/system_tables.result
+++ b/integration_tests/cases/env/local/system/system_tables.result
@@ -1,3 +1,21 @@
+--
+-- 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.
+--
 DROP TABLE IF EXISTS `01_system_table1`;
 
 affected_rows: 0
diff --git a/integration_tests/cases/env/local/system/system_tables.sql 
b/integration_tests/cases/env/local/system/system_tables.sql
index 7133730b..a5778a89 100644
--- a/integration_tests/cases/env/local/system/system_tables.sql
+++ b/integration_tests/cases/env/local/system/system_tables.sql
@@ -1,3 +1,22 @@
+--
+-- 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.
+--
+
 
 DROP TABLE IF EXISTS `01_system_table1`;
 
diff --git a/integration_tests/dist_query/diff.py 
b/integration_tests/dist_query/diff.py
index a5f00999..0bb90e23 100644
--- a/integration_tests/dist_query/diff.py
+++ b/integration_tests/dist_query/diff.py
@@ -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.
+
 import argparse
 import difflib
 
diff --git a/integration_tests/dist_query/run.sh 
b/integration_tests/dist_query/run.sh
index 8a7bf36e..4bdf6e06 100755
--- a/integration_tests/dist_query/run.sh
+++ b/integration_tests/dist_query/run.sh
@@ -1,4 +1,21 @@
 #!/usr/bin/env bash
+# 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.
+
 
 # Get current dir
 export CURR_DIR=$(pwd)
diff --git a/integration_tests/mysql/basic.sh b/integration_tests/mysql/basic.sh
index 7161467e..e4b2e2b8 100755
--- a/integration_tests/mysql/basic.sh
+++ b/integration_tests/mysql/basic.sh
@@ -1,4 +1,21 @@
 #!/usr/bin/env bash
+# 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.
+
 
 # This only ensure query by mysql protocol is OK,
 # Full SQL test in ensured by sqlness tests.
diff --git a/integration_tests/opentsdb/run-tests.sh 
b/integration_tests/opentsdb/run-tests.sh
index f0ac0b8c..dc7860d8 100755
--- a/integration_tests/opentsdb/run-tests.sh
+++ b/integration_tests/opentsdb/run-tests.sh
@@ -1,3 +1,20 @@
 #!/usr/bin/env bash
+# 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.
+
 
 python ./test-put.py
\ No newline at end of file
diff --git a/integration_tests/opentsdb/test-put.py 
b/integration_tests/opentsdb/test-put.py
index 983449bf..f7986a8f 100755
--- a/integration_tests/opentsdb/test-put.py
+++ b/integration_tests/opentsdb/test-put.py
@@ -1,4 +1,21 @@
 #!/usr/bin/env python
+# 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.
+
 # coding: utf-8
 
 import requests
diff --git a/integration_tests/postgresql/basic.sh 
b/integration_tests/postgresql/basic.sh
index 18c1fcd2..f1f92a31 100755
--- a/integration_tests/postgresql/basic.sh
+++ b/integration_tests/postgresql/basic.sh
@@ -1,4 +1,21 @@
 #!/usr/bin/env bash
+# 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.
+
 
 # This only ensure query by postgresql protocol is OK,
 # Full SQL test in ensured by sqlness tests.
diff --git a/integration_tests/prom/remote-query.py 
b/integration_tests/prom/remote-query.py
index 010688b9..0594df02 100755
--- a/integration_tests/prom/remote-query.py
+++ b/integration_tests/prom/remote-query.py
@@ -1,4 +1,21 @@
 #!/usr/bin/env python
+# 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.
+
 # coding: utf-8
 
 import requests
diff --git a/integration_tests/prom/run-tests.sh 
b/integration_tests/prom/run-tests.sh
index 28918542..81fdd29c 100755
--- a/integration_tests/prom/run-tests.sh
+++ b/integration_tests/prom/run-tests.sh
@@ -1,4 +1,21 @@
 #!/usr/bin/env bash
+# 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.
+
 
 VERSION=prometheus-2.43.0.linux-amd64
 wget -q 
"https://github.com/prometheus/prometheus/releases/download/v2.43.0/${VERSION}.tar.gz";
diff --git a/integration_tests/recovery/check.py 
b/integration_tests/recovery/check.py
index 73b7495b..fae7b852 100644
--- a/integration_tests/recovery/check.py
+++ b/integration_tests/recovery/check.py
@@ -1,4 +1,21 @@
 #!/usr/bin/env python
+# 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.
+
 # coding: utf-8
 
 import requests
diff --git a/integration_tests/recovery/run.sh 
b/integration_tests/recovery/run.sh
index 73c8d2f3..e716f786 100755
--- a/integration_tests/recovery/run.sh
+++ b/integration_tests/recovery/run.sh
@@ -1,4 +1,21 @@
 #!/usr/bin/env bash
+# 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.
+
 
 set -e
 
diff --git a/integration_tests/sdk/java/pom.xml 
b/integration_tests/sdk/java/pom.xml
index ceab72df..b852eefa 100644
--- a/integration_tests/sdk/java/pom.xml
+++ b/integration_tests/sdk/java/pom.xml
@@ -1,4 +1,24 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    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.
+
+-->
 
 <project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
diff --git a/integration_tests/sdk/java/src/main/java/io/ceresdb/App.java 
b/integration_tests/sdk/java/src/main/java/io/ceresdb/App.java
index feff3373..720404d1 100644
--- a/integration_tests/sdk/java/src/main/java/io/ceresdb/App.java
+++ b/integration_tests/sdk/java/src/main/java/io/ceresdb/App.java
@@ -1,3 +1,22 @@
+/*
+ * 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 io.ceresdb;
 
 import io.ceresdb.models.*;
diff --git a/integration_tests/sdk/java/src/main/resources/log4j2.xml 
b/integration_tests/sdk/java/src/main/resources/log4j2.xml
index 7e09071b..0afc2b63 100644
--- a/integration_tests/sdk/java/src/main/resources/log4j2.xml
+++ b/integration_tests/sdk/java/src/main/resources/log4j2.xml
@@ -1,4 +1,24 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    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.
+
+-->
 <Configuration status="WARN">
     <Appenders>
         <Console name="Console" target="SYSTEM_OUT">
diff --git a/licenserc.toml b/licenserc.toml
index 23ab938c..d8310c50 100644
--- a/licenserc.toml
+++ b/licenserc.toml
@@ -17,14 +17,6 @@
 
 headerPath = "Apache-2.0-ASF.txt"
 
-includes = [
-    "*.go",
-    "*.rs",
-    "*.toml",
-    "*.yml",
-    "Makefile",
-]
-
 excludes = [
     # Derived
     
"horaemeta/server/coordinator/scheduler/nodepicker/hash/consistent_uniform_test.go",
diff --git a/scripts/clean-large-folder.py b/scripts/clean-large-folder.py
index 1062708f..766485f8 100644
--- a/scripts/clean-large-folder.py
+++ b/scripts/clean-large-folder.py
@@ -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.
+
 import shutil
 import sys
 from pathlib import Path
diff --git a/scripts/free-disk-space.sh b/scripts/free-disk-space.sh
index a07502ac..8c1a9c01 100755
--- a/scripts/free-disk-space.sh
+++ b/scripts/free-disk-space.sh
@@ -1,18 +1,21 @@
 #!/usr/bin/env bash
-# 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
+# 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
+#   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.
+# 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.
+
 
 
 # Copy from 
https://github.com/apache/flink/blob/release-1.18.1/tools/azure-pipelines/free_disk_space.sh
diff --git a/scripts/run-tsbs.sh b/scripts/run-tsbs.sh
index 5d370703..d2e9e063 100755
--- a/scripts/run-tsbs.sh
+++ b/scripts/run-tsbs.sh
@@ -1,4 +1,21 @@
 #!/usr/bin/env bash
+# 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.
+
 
 # This bash supports these settings by enviroment variables:
 # - RESULT_FILE


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

Reply via email to