Skip to content

Commit 03a869b

Browse files
morningmanmorningman-cmy
authored andcommitted
[License] Add License header for missing files (#7130)
1. Add License header for missing files 2. Modify the spark pom.xml to correct the location of `thrift`
1 parent dca842f commit 03a869b

File tree

36 files changed

+547
-60
lines changed

36 files changed

+547
-60
lines changed

.licenserc.yaml

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
header:
2+
license:
3+
spdx-id: Apache-2.0
4+
copyright-owner: Apache Software Foundation
5+
6+
paths-ignore:
7+
- 'dist'
8+
- 'licenses'
9+
- '**/*.md'
10+
- 'LICENSE'
11+
- 'NOTICE'
12+
- 'DISCLAIMER'
13+
- '.clang-format'
14+
- '.gitattributes'
15+
- '.gitignore'
16+
- '.gitmodules'
17+
- '.licenserc.yaml'
18+
- '.rat-excludes'
19+
- 'be/src/common/status.cpp'
20+
- 'be/src/common/status.h'
21+
- 'be/src/env/env.h'
22+
- 'be/src/env/env_posix.cpp'
23+
- '**/glibc-compatibility/**'
24+
- '**/gutil/**'
25+
- '**/test_data/**'
26+
- '**/jmockit/**'
27+
- '**/*.json'
28+
- '**/*.dat'
29+
- '**/*.svg'
30+
- '**/*.md5'
31+
- '**/*.patch'
32+
- '**/*.log'
33+
- 'tsan_suppressions'
34+
- 'docs/.markdownlintignore'
35+
- 'fe/fe-core/src/test/resources/data/net_snmp_normal'
36+
- 'be/src/olap/lru_cache.cpp'
37+
- 'be/src/olap/lru_cache.h'
38+
- 'be/src/olap/skiplist.h'
39+
- 'be/src/runtime/string_search.hpp'
40+
- 'be/src/util/coding.cpp'
41+
- 'be/src/util/coding.h'
42+
- 'be/src/util/condition_variable.cpp'
43+
- 'be/src/util/condition_variable.h'
44+
- 'be/src/util/murmur_hash3.cpp'
45+
- 'be/src/util/murmur_hash3.h'
46+
- 'be/src/util/mustache/mustache.cc'
47+
- 'be/src/util/mustache/mustache.h'
48+
- 'be/src/util/sse2neo.h'
49+
- 'be/src/util/sse2neon.h'
50+
- 'be/src/util/utf8_check.cpp'
51+
52+
comment: on-failure

be/src/runtime/runtime_filter_mgr.cpp

+17
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
// Licensed to the Apache Software Foundation (ASF) under one
2+
// or more contributor license agreements. See the NOTICE file
3+
// distributed with this work for additional information
4+
// regarding copyright ownership. The ASF licenses this file
5+
// to you under the Apache License, Version 2.0 (the
6+
// "License"); you may not use this file except in compliance
7+
// with the License. You may obtain a copy of the License at
8+
//
9+
// http://www.apache.org/licenses/LICENSE-2.0
10+
//
11+
// Unless required by applicable law or agreed to in writing,
12+
// software distributed under the License is distributed on an
13+
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
// KIND, either express or implied. See the License for the
15+
// specific language governing permissions and limitations
16+
// under the License.
17+
118
#include "runtime/runtime_filter_mgr.h"
219

320
#include <string>
+18-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,21 @@
1+
// Licensed to the Apache Software Foundation (ASF) under one
2+
// or more contributor license agreements. See the NOTICE file
3+
// distributed with this work for additional information
4+
// regarding copyright ownership. The ASF licenses this file
5+
// to you under the Apache License, Version 2.0 (the
6+
// "License"); you may not use this file except in compliance
7+
// with the License. You may obtain a copy of the License at
8+
//
9+
// http://www.apache.org/licenses/LICENSE-2.0
10+
//
11+
// Unless required by applicable law or agreed to in writing,
12+
// software distributed under the License is distributed on an
13+
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
// KIND, either express or implied. See the License for the
15+
// specific language governing permissions and limitations
16+
// under the License.
17+
118
/* Override style of sidebar's sub-direcotry */
219
.sidebar-group.is-sub-group > .sidebar-heading:not(.clickable) {
320
opacity: 1 !important;
4-
}
21+
}

extension/DataX/doriswriter/README

Whitespace-only changes.

extension/DataX/doriswriter/src/main/assembly/package.xml

+22-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<!--
4+
Licensed to the Apache Software Foundation (ASF) under one
5+
or more contributor license agreements. See the NOTICE file
6+
distributed with this work for additional information
7+
regarding copyright ownership. The ASF licenses this file
8+
to you under the Apache License, Version 2.0 (the
9+
"License"); you may not use this file except in compliance
10+
with the License. You may obtain a copy of the License at
11+
12+
http://www.apache.org/licenses/LICENSE-2.0
13+
14+
Unless required by applicable law or agreed to in writing,
15+
software distributed under the License is distributed on an
16+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17+
KIND, either express or implied. See the License for the
18+
specific language governing permissions and limitations
19+
under the License.
20+
-->
21+
122
<assembly
223
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
324
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@@ -32,4 +53,4 @@
3253
<scope>runtime</scope>
3354
</dependencySet>
3455
</dependencySets>
35-
</assembly>
56+
</assembly>

extension/DataX/doriswriter/src/main/java/com/alibaba/datax/plugin/writer/doriswriter/DorisCodec.java

+19
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
Licensed to the Apache Software Foundation (ASF) under one
3+
or more contributor license agreements. See the NOTICE file
4+
distributed with this work for additional information
5+
regarding copyright ownership. The ASF licenses this file
6+
to you under the Apache License, Version 2.0 (the
7+
"License"); you may not use this file except in compliance
8+
with the License. You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing,
13+
software distributed under the License is distributed on an
14+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
KIND, either express or implied. See the License for the
16+
specific language governing permissions and limitations
17+
under the License.
18+
-->
19+
*/
120
package com.alibaba.datax.plugin.writer.doriswriter;
221

322
import com.alibaba.datax.common.element.Column;

extension/DataX/init-env.sh

+8-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
#!/usr/bin/env bash
2-
# Copyright (c) 2017, Baidu.com, Inc. All Rights Reserved
3-
4-
# Licensed under the Apache License, Version 2.0 (the "License");
5-
# you may not use this file except in compliance with the License.
6-
# You may obtain a copy of the License at
1+
#/bin/bash
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
79
#
810
# http://www.apache.org/licenses/LICENSE-2.0
911
#

extension/flink-doris-connector/pom.xml

+20
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,24 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<!--
4+
Licensed to the Apache Software Foundation (ASF) under one
5+
or more contributor license agreements. See the NOTICE file
6+
distributed with this work for additional information
7+
regarding copyright ownership. The ASF licenses this file
8+
to you under the Apache License, Version 2.0 (the
9+
"License"); you may not use this file except in compliance
10+
with the License. You may obtain a copy of the License at
11+
12+
http://www.apache.org/licenses/LICENSE-2.0
13+
14+
Unless required by applicable law or agreed to in writing,
15+
software distributed under the License is distributed on an
16+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17+
KIND, either express or implied. See the License for the
18+
specific language governing permissions and limitations
19+
under the License.
20+
-->
21+
222
<project xmlns="http://maven.apache.org/POM/4.0.0"
323
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
424
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

extension/flink-doris-connector/src/main/java/org/apache/doris/flink/cfg/DorisSink.java

+17
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
// Licensed to the Apache Software Foundation (ASF) under one
2+
// or more contributor license agreements. See the NOTICE file
3+
// distributed with this work for additional information
4+
// regarding copyright ownership. The ASF licenses this file
5+
// to you under the Apache License, Version 2.0 (the
6+
// "License"); you may not use this file except in compliance
7+
// with the License. You may obtain a copy of the License at
8+
//
9+
// http://www.apache.org/licenses/LICENSE-2.0
10+
//
11+
// Unless required by applicable law or agreed to in writing,
12+
// software distributed under the License is distributed on an
13+
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
// KIND, either express or implied. See the License for the
15+
// specific language governing permissions and limitations
16+
// under the License.
17+
118
package org.apache.doris.flink.cfg;
219

320
import org.apache.doris.flink.table.DorisDynamicOutputFormat;

extension/flink-doris-connector/src/main/java/org/apache/doris/flink/cfg/GenericDorisSinkFunction.java

+18-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
// Licensed to the Apache Software Foundation (ASF) under one
2+
// or more contributor license agreements. See the NOTICE file
3+
// distributed with this work for additional information
4+
// regarding copyright ownership. The ASF licenses this file
5+
// to you under the Apache License, Version 2.0 (the
6+
// "License"); you may not use this file except in compliance
7+
// with the License. You may obtain a copy of the License at
8+
//
9+
// http://www.apache.org/licenses/LICENSE-2.0
10+
//
11+
// Unless required by applicable law or agreed to in writing,
12+
// software distributed under the License is distributed on an
13+
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
// KIND, either express or implied. See the License for the
15+
// specific language governing permissions and limitations
16+
// under the License.
17+
118
package org.apache.doris.flink.cfg;
219

320
import org.apache.doris.flink.table.DorisDynamicOutputFormat;
@@ -50,4 +67,4 @@ public void close() throws Exception {
5067
super.close();
5168
}
5269

53-
}
70+
}

extension/flink-doris-connector/src/test/java/org/apache/doris/flink/DorisStreamSinkExample.java

+18-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
// Licensed to the Apache Software Foundation (ASF) under one
2+
// or more contributor license agreements. See the NOTICE file
3+
// distributed with this work for additional information
4+
// regarding copyright ownership. The ASF licenses this file
5+
// to you under the Apache License, Version 2.0 (the
6+
// "License"); you may not use this file except in compliance
7+
// with the License. You may obtain a copy of the License at
8+
//
9+
// http://www.apache.org/licenses/LICENSE-2.0
10+
//
11+
// Unless required by applicable law or agreed to in writing,
12+
// software distributed under the License is distributed on an
13+
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
// KIND, either express or implied. See the License for the
15+
// specific language governing permissions and limitations
16+
// under the License.
17+
118
package org.apache.doris.flink;
219

320
import org.apache.doris.flink.cfg.DorisExecutionOptions;
@@ -216,4 +233,4 @@ public RowData map(String value) throws Exception {
216233
));
217234
env.execute("doris stream sink example");
218235
}
219-
}
236+
}

extension/spark-doris-connector/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<maven-javadoc-plugin.version>3.3.0</maven-javadoc-plugin.version>
3838
<maven-source-plugin.version>3.2.1</maven-source-plugin.version>
3939
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
40-
<doris.thirdparty>${basedir}/../../thirdparty</doris.thirdparty>
40+
<doris.thirdparty>${env.DORIS_THIRDPARTY}</doris.thirdparty>
4141
</properties>
4242

4343
<profiles>

extension/spark-doris-connector/pom_3.0.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<maven-javadoc-plugin.version>3.3.0</maven-javadoc-plugin.version>
3838
<maven-source-plugin.version>3.2.1</maven-source-plugin.version>
3939
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
40-
<doris.thirdparty>${basedir}/../../thirdparty</doris.thirdparty>
40+
<doris.thirdparty>${env.DORIS_THIRDPARTY}</doris.thirdparty>
4141
</properties>
4242

4343
<profiles>

fe/README

+17
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
118
# fe-common
219

320
This module is used to store some common classes of other modules.

fe/fe-core/src/main/cup/readme

+18-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
118
If you want to modify this file, it is recommended to read the cup documentation
219
(http://www2.cs.tum.edu/projects/cup/docs.php) first.
3-
Please pay attention to and resolve the conflicts after the modification.
20+
Please pay attention to and resolve the conflicts after the modification.

fe/fe-core/src/main/cup/sql_parser.cup

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//
1111
// Unless required by applicable law or agreed to in writing,
1212
// software distributed under the License is distributed on an
13-
// "AS IS" BASIS, WITHOUT WARRANTIES ORF CONDITIONS OF ANY
13+
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
1414
// KIND, either express or implied. See the License for the
1515
// specific language governing permissions and limitations
1616
// under the License.

fe/fe-core/src/test/java/org/apache/doris/analysis/IsNullPredicateTest.java

+15-15
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
// Licensed to the Apache Software Foundation (ASF) under one
2-
// // or more contributor license agreements. See the NOTICE file
3-
// // distributed with this work for additional information
4-
// // regarding copyright ownership. The ASF licenses this file
5-
// // to you under the Apache License, Version 2.0 (the
6-
// // "License"); you may not use this file except in compliance
7-
// // with the License. You may obtain a copy of the License at
8-
// //
9-
// // http://www.apache.org/licenses/LICENSE-2.0
10-
// //
11-
// // Unless required by applicable law or agreed to in writing,
12-
// // software distributed under the License is distributed on an
13-
// // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14-
// // KIND, either express or implied. See the License for the
15-
// // specific language governing permissions and limitations
16-
// // under the License.
2+
// or more contributor license agreements. See the NOTICE file
3+
// distributed with this work for additional information
4+
// regarding copyright ownership. The ASF licenses this file
5+
// to you under the Apache License, Version 2.0 (the
6+
// "License"); you may not use this file except in compliance
7+
// with the License. You may obtain a copy of the License at
8+
//
9+
// http://www.apache.org/licenses/LICENSE-2.0
10+
//
11+
// Unless required by applicable law or agreed to in writing,
12+
// software distributed under the License is distributed on an
13+
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
// KIND, either express or implied. See the License for the
15+
// specific language governing permissions and limitations
16+
// under the License.
1717

1818
package org.apache.doris.analysis;
1919

fe/fe-core/src/test/java/org/apache/doris/analysis/RangeCompareTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// regarding copyright ownership. The ASF licenses this file
55
// to you under the Apache License, Version 2.0 (the
66
// "License"); you may not use this file except in compliance
7-
// with the License. You may obtain a copy of the Licenser at
7+
// with the License. You may obtain a copy of the License at
88
//
99
// http://www.apache.org/licenses/LICENSE-2.0
1010
//

0 commit comments

Comments
 (0)