From 1741584ce560fc1e7416e2b1894c3b275e103dd6 Mon Sep 17 00:00:00 2001
From: Yongting You <2010youy01@gmail.com>
Date: Tue, 3 Nov 2026 19:58:35 +0800
Subject: [PATCH 1/4] chore: prepare remaining Apache header migration
---
.editorconfig | 28 ++---
.../proto/datafusion_common.proto | 33 +++---
.../proto-models/proto/datafusion.proto | 33 +++---
.../test_files/array/init_data.slt.part | 4 +-
.../sqllogictest/test_files/join.slt.part | 4 +-
.../test_files/tpch/answers/q1.slt.part | 5 +-
.../test_files/tpch/answers/q10.slt.part | 5 +-
.../test_files/tpch/answers/q11.slt.part | 5 +-
.../test_files/tpch/answers/q12.slt.part | 5 +-
.../test_files/tpch/answers/q13.slt.part | 5 +-
.../test_files/tpch/answers/q14.slt.part | 5 +-
.../test_files/tpch/answers/q15.slt.part | 5 +-
.../test_files/tpch/answers/q16.slt.part | 5 +-
.../test_files/tpch/answers/q17.slt.part | 5 +-
.../test_files/tpch/answers/q18.slt.part | 5 +-
.../test_files/tpch/answers/q19.slt.part | 5 +-
.../test_files/tpch/answers/q2.slt.part | 5 +-
.../test_files/tpch/answers/q20.slt.part | 5 +-
.../test_files/tpch/answers/q21.slt.part | 5 +-
.../test_files/tpch/answers/q22.slt.part | 5 +-
.../test_files/tpch/answers/q3.slt.part | 5 +-
.../test_files/tpch/answers/q4.slt.part | 5 +-
.../test_files/tpch/answers/q5.slt.part | 5 +-
.../test_files/tpch/answers/q6.slt.part | 5 +-
.../test_files/tpch/answers/q7.slt.part | 5 +-
.../test_files/tpch/answers/q8.slt.part | 5 +-
.../test_files/tpch/answers/q9.slt.part | 5 +-
.../test_files/tpch/create_tables.slt.part | 6 +-
.../test_files/tpch/drop_tables.slt.part | 4 +-
.../test_files/tpch/plans/q1.slt.part | 5 +-
.../test_files/tpch/plans/q10.slt.part | 5 +-
.../test_files/tpch/plans/q11.slt.part | 5 +-
.../test_files/tpch/plans/q12.slt.part | 5 +-
.../test_files/tpch/plans/q13.slt.part | 5 +-
.../test_files/tpch/plans/q14.slt.part | 5 +-
.../test_files/tpch/plans/q15.slt.part | 5 +-
.../test_files/tpch/plans/q16.slt.part | 5 +-
.../test_files/tpch/plans/q17.slt.part | 5 +-
.../test_files/tpch/plans/q18.slt.part | 5 +-
.../test_files/tpch/plans/q19.slt.part | 5 +-
.../test_files/tpch/plans/q2.slt.part | 5 +-
.../test_files/tpch/plans/q20.slt.part | 5 +-
.../test_files/tpch/plans/q21.slt.part | 5 +-
.../test_files/tpch/plans/q22.slt.part | 5 +-
.../test_files/tpch/plans/q3.slt.part | 5 +-
.../test_files/tpch/plans/q4.slt.part | 5 +-
.../test_files/tpch/plans/q5.slt.part | 5 +-
.../test_files/tpch/plans/q6.slt.part | 5 +-
.../test_files/tpch/plans/q7.slt.part | 5 +-
.../test_files/tpch/plans/q8.slt.part | 5 +-
.../test_files/tpch/plans/q9.slt.part | 5 +-
doap.rdf | 34 +++---
docs/source/contributor-guide/gsoc/index.rst | 4 +-
.../contributor-guide/specification/index.rst | 4 +-
docs/source/index.rst | 4 +-
.../library-user-guide/functions/index.rst | 4 +-
.../library-user-guide/upgrading/index.rst | 4 +-
docs/source/user-guide/cli/index.rst | 4 +-
docs/source/user-guide/sql/index.rst | 4 +-
licenserc-legacy.toml | 107 ++++++++++++++++++
licenserc.toml | 52 ++++++++-
61 files changed, 329 insertions(+), 224 deletions(-)
create mode 100644 licenserc-legacy.toml
diff --git a/.editorconfig b/.editorconfig
index 28f793634c4d6..2bd19357655cc 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -1,19 +1,19 @@
+# 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
-#
-# 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.
+# 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.
root = true
diff --git a/datafusion/proto-common/proto/datafusion_common.proto b/datafusion/proto-common/proto/datafusion_common.proto
index ba6e6937daf38..25d23ff81b7e5 100644
--- a/datafusion/proto-common/proto/datafusion_common.proto
+++ b/datafusion/proto-common/proto/datafusion_common.proto
@@ -1,20 +1,19 @@
-/*
- * 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.
- */
+// 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.
syntax = "proto3";
diff --git a/datafusion/proto-models/proto/datafusion.proto b/datafusion/proto-models/proto/datafusion.proto
index 6c4ef8f0a4b2f..6132dee5a94a2 100644
--- a/datafusion/proto-models/proto/datafusion.proto
+++ b/datafusion/proto-models/proto/datafusion.proto
@@ -1,20 +1,19 @@
-/*
- * 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.
- */
+// 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.
syntax = "proto3";
diff --git a/datafusion/sqllogictest/test_files/array/init_data.slt.part b/datafusion/sqllogictest/test_files/array/init_data.slt.part
index 06d029303022b..b86524b4523f2 100644
--- a/datafusion/sqllogictest/test_files/array/init_data.slt.part
+++ b/datafusion/sqllogictest/test_files/array/init_data.slt.part
@@ -5,9 +5,9 @@
# 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
diff --git a/datafusion/sqllogictest/test_files/join.slt.part b/datafusion/sqllogictest/test_files/join.slt.part
index 00bea008fc2fc..d44cd11e7b0c7 100644
--- a/datafusion/sqllogictest/test_files/join.slt.part
+++ b/datafusion/sqllogictest/test_files/join.slt.part
@@ -5,9 +5,9 @@
# 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
diff --git a/datafusion/sqllogictest/test_files/tpch/answers/q1.slt.part b/datafusion/sqllogictest/test_files/tpch/answers/q1.slt.part
index fa6f2680e2bde..3a588deb03403 100644
--- a/datafusion/sqllogictest/test_files/tpch/answers/q1.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/answers/q1.slt.part
@@ -1,4 +1,3 @@
-
# 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
@@ -6,9 +5,9 @@
# 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
diff --git a/datafusion/sqllogictest/test_files/tpch/answers/q10.slt.part b/datafusion/sqllogictest/test_files/tpch/answers/q10.slt.part
index 384e28d804c94..fe30a6869ac3e 100644
--- a/datafusion/sqllogictest/test_files/tpch/answers/q10.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/answers/q10.slt.part
@@ -1,4 +1,3 @@
-
# 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
@@ -6,9 +5,9 @@
# 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
diff --git a/datafusion/sqllogictest/test_files/tpch/answers/q11.slt.part b/datafusion/sqllogictest/test_files/tpch/answers/q11.slt.part
index a6ceb742be622..3a6056c6c8cee 100644
--- a/datafusion/sqllogictest/test_files/tpch/answers/q11.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/answers/q11.slt.part
@@ -1,4 +1,3 @@
-
# 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
@@ -6,9 +5,9 @@
# 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
diff --git a/datafusion/sqllogictest/test_files/tpch/answers/q12.slt.part b/datafusion/sqllogictest/test_files/tpch/answers/q12.slt.part
index 4d8e9a1a7e3d1..da1f8ec8b5100 100644
--- a/datafusion/sqllogictest/test_files/tpch/answers/q12.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/answers/q12.slt.part
@@ -1,4 +1,3 @@
-
# 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
@@ -6,9 +5,9 @@
# 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
diff --git a/datafusion/sqllogictest/test_files/tpch/answers/q13.slt.part b/datafusion/sqllogictest/test_files/tpch/answers/q13.slt.part
index 40971133d2e0f..17008e960dcd9 100644
--- a/datafusion/sqllogictest/test_files/tpch/answers/q13.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/answers/q13.slt.part
@@ -1,4 +1,3 @@
-
# 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
@@ -6,9 +5,9 @@
# 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
diff --git a/datafusion/sqllogictest/test_files/tpch/answers/q14.slt.part b/datafusion/sqllogictest/test_files/tpch/answers/q14.slt.part
index e3a72548bcfa3..26a474c91021a 100644
--- a/datafusion/sqllogictest/test_files/tpch/answers/q14.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/answers/q14.slt.part
@@ -1,4 +1,3 @@
-
# 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
@@ -6,9 +5,9 @@
# 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
diff --git a/datafusion/sqllogictest/test_files/tpch/answers/q15.slt.part b/datafusion/sqllogictest/test_files/tpch/answers/q15.slt.part
index bfee9de111084..fdeb014a1c12f 100644
--- a/datafusion/sqllogictest/test_files/tpch/answers/q15.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/answers/q15.slt.part
@@ -1,4 +1,3 @@
-
# 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
@@ -6,9 +5,9 @@
# 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
diff --git a/datafusion/sqllogictest/test_files/tpch/answers/q16.slt.part b/datafusion/sqllogictest/test_files/tpch/answers/q16.slt.part
index 4412eda050c46..2392a5667d9cc 100644
--- a/datafusion/sqllogictest/test_files/tpch/answers/q16.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/answers/q16.slt.part
@@ -1,4 +1,3 @@
-
# 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
@@ -6,9 +5,9 @@
# 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
diff --git a/datafusion/sqllogictest/test_files/tpch/answers/q17.slt.part b/datafusion/sqllogictest/test_files/tpch/answers/q17.slt.part
index cdf7f1de83747..92c88241923cc 100644
--- a/datafusion/sqllogictest/test_files/tpch/answers/q17.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/answers/q17.slt.part
@@ -1,4 +1,3 @@
-
# 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
@@ -6,9 +5,9 @@
# 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
diff --git a/datafusion/sqllogictest/test_files/tpch/answers/q18.slt.part b/datafusion/sqllogictest/test_files/tpch/answers/q18.slt.part
index 5481f26f03460..09e9cbc0e9c28 100644
--- a/datafusion/sqllogictest/test_files/tpch/answers/q18.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/answers/q18.slt.part
@@ -1,4 +1,3 @@
-
# 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
@@ -6,9 +5,9 @@
# 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
diff --git a/datafusion/sqllogictest/test_files/tpch/answers/q19.slt.part b/datafusion/sqllogictest/test_files/tpch/answers/q19.slt.part
index bee10aadbfca7..5499edc6c8845 100644
--- a/datafusion/sqllogictest/test_files/tpch/answers/q19.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/answers/q19.slt.part
@@ -1,4 +1,3 @@
-
# 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
@@ -6,9 +5,9 @@
# 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
diff --git a/datafusion/sqllogictest/test_files/tpch/answers/q2.slt.part b/datafusion/sqllogictest/test_files/tpch/answers/q2.slt.part
index 56945d904dea6..09ac0c1ce87f4 100644
--- a/datafusion/sqllogictest/test_files/tpch/answers/q2.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/answers/q2.slt.part
@@ -1,4 +1,3 @@
-
# 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
@@ -6,9 +5,9 @@
# 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
diff --git a/datafusion/sqllogictest/test_files/tpch/answers/q20.slt.part b/datafusion/sqllogictest/test_files/tpch/answers/q20.slt.part
index 85711da7bd880..21490bd8aca1e 100644
--- a/datafusion/sqllogictest/test_files/tpch/answers/q20.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/answers/q20.slt.part
@@ -1,4 +1,3 @@
-
# 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
@@ -6,9 +5,9 @@
# 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
diff --git a/datafusion/sqllogictest/test_files/tpch/answers/q21.slt.part b/datafusion/sqllogictest/test_files/tpch/answers/q21.slt.part
index 8d92dae05ec68..a76b4f4804556 100644
--- a/datafusion/sqllogictest/test_files/tpch/answers/q21.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/answers/q21.slt.part
@@ -1,4 +1,3 @@
-
# 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
@@ -6,9 +5,9 @@
# 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
diff --git a/datafusion/sqllogictest/test_files/tpch/answers/q22.slt.part b/datafusion/sqllogictest/test_files/tpch/answers/q22.slt.part
index b32e0e9653316..17b80e3d8bc47 100644
--- a/datafusion/sqllogictest/test_files/tpch/answers/q22.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/answers/q22.slt.part
@@ -1,4 +1,3 @@
-
# 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
@@ -6,9 +5,9 @@
# 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
diff --git a/datafusion/sqllogictest/test_files/tpch/answers/q3.slt.part b/datafusion/sqllogictest/test_files/tpch/answers/q3.slt.part
index dbfdd12524071..55c303a214f53 100644
--- a/datafusion/sqllogictest/test_files/tpch/answers/q3.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/answers/q3.slt.part
@@ -1,4 +1,3 @@
-
# 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
@@ -6,9 +5,9 @@
# 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
diff --git a/datafusion/sqllogictest/test_files/tpch/answers/q4.slt.part b/datafusion/sqllogictest/test_files/tpch/answers/q4.slt.part
index a37e76f9709d1..bd1dd526f35a7 100644
--- a/datafusion/sqllogictest/test_files/tpch/answers/q4.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/answers/q4.slt.part
@@ -1,4 +1,3 @@
-
# 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
@@ -6,9 +5,9 @@
# 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
diff --git a/datafusion/sqllogictest/test_files/tpch/answers/q5.slt.part b/datafusion/sqllogictest/test_files/tpch/answers/q5.slt.part
index 5123df1254cd8..9208e97390d02 100644
--- a/datafusion/sqllogictest/test_files/tpch/answers/q5.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/answers/q5.slt.part
@@ -1,4 +1,3 @@
-
# 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
@@ -6,9 +5,9 @@
# 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
diff --git a/datafusion/sqllogictest/test_files/tpch/answers/q6.slt.part b/datafusion/sqllogictest/test_files/tpch/answers/q6.slt.part
index 57967f4d9e5c8..8cdca16fffda2 100644
--- a/datafusion/sqllogictest/test_files/tpch/answers/q6.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/answers/q6.slt.part
@@ -1,4 +1,3 @@
-
# 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
@@ -6,9 +5,9 @@
# 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
diff --git a/datafusion/sqllogictest/test_files/tpch/answers/q7.slt.part b/datafusion/sqllogictest/test_files/tpch/answers/q7.slt.part
index 31923ffb5f7a9..2f3b02ea71a81 100644
--- a/datafusion/sqllogictest/test_files/tpch/answers/q7.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/answers/q7.slt.part
@@ -1,4 +1,3 @@
-
# 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
@@ -6,9 +5,9 @@
# 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
diff --git a/datafusion/sqllogictest/test_files/tpch/answers/q8.slt.part b/datafusion/sqllogictest/test_files/tpch/answers/q8.slt.part
index 270a7c912aa75..8d99517a75d68 100644
--- a/datafusion/sqllogictest/test_files/tpch/answers/q8.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/answers/q8.slt.part
@@ -1,4 +1,3 @@
-
# 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
@@ -6,9 +5,9 @@
# 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
diff --git a/datafusion/sqllogictest/test_files/tpch/answers/q9.slt.part b/datafusion/sqllogictest/test_files/tpch/answers/q9.slt.part
index 71ae90119b51c..d3333a8f46bba 100644
--- a/datafusion/sqllogictest/test_files/tpch/answers/q9.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/answers/q9.slt.part
@@ -1,4 +1,3 @@
-
# 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
@@ -6,9 +5,9 @@
# 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
diff --git a/datafusion/sqllogictest/test_files/tpch/create_tables.slt.part b/datafusion/sqllogictest/test_files/tpch/create_tables.slt.part
index 9488367e25569..6927b8c2a91fd 100644
--- a/datafusion/sqllogictest/test_files/tpch/create_tables.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/create_tables.slt.part
@@ -1,5 +1,3 @@
-
-
# 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
@@ -7,9 +5,9 @@
# 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
diff --git a/datafusion/sqllogictest/test_files/tpch/drop_tables.slt.part b/datafusion/sqllogictest/test_files/tpch/drop_tables.slt.part
index 35faf3719d9ff..193f91c65f9fd 100644
--- a/datafusion/sqllogictest/test_files/tpch/drop_tables.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/drop_tables.slt.part
@@ -5,9 +5,9 @@
# 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
diff --git a/datafusion/sqllogictest/test_files/tpch/plans/q1.slt.part b/datafusion/sqllogictest/test_files/tpch/plans/q1.slt.part
index b227f94553e2f..f45f1296b9e5a 100644
--- a/datafusion/sqllogictest/test_files/tpch/plans/q1.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/plans/q1.slt.part
@@ -1,4 +1,3 @@
-
# 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
@@ -6,9 +5,9 @@
# 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
diff --git a/datafusion/sqllogictest/test_files/tpch/plans/q10.slt.part b/datafusion/sqllogictest/test_files/tpch/plans/q10.slt.part
index 9b5db48e83ebc..cfa9c8f0df924 100644
--- a/datafusion/sqllogictest/test_files/tpch/plans/q10.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/plans/q10.slt.part
@@ -1,4 +1,3 @@
-
# 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
@@ -6,9 +5,9 @@
# 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
diff --git a/datafusion/sqllogictest/test_files/tpch/plans/q11.slt.part b/datafusion/sqllogictest/test_files/tpch/plans/q11.slt.part
index c1e0a638cc839..ebbe7d7f1d952 100644
--- a/datafusion/sqllogictest/test_files/tpch/plans/q11.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/plans/q11.slt.part
@@ -1,4 +1,3 @@
-
# 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
@@ -6,9 +5,9 @@
# 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
diff --git a/datafusion/sqllogictest/test_files/tpch/plans/q12.slt.part b/datafusion/sqllogictest/test_files/tpch/plans/q12.slt.part
index a9d579b6a590d..a136e1f520782 100644
--- a/datafusion/sqllogictest/test_files/tpch/plans/q12.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/plans/q12.slt.part
@@ -1,4 +1,3 @@
-
# 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
@@ -6,9 +5,9 @@
# 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
diff --git a/datafusion/sqllogictest/test_files/tpch/plans/q13.slt.part b/datafusion/sqllogictest/test_files/tpch/plans/q13.slt.part
index 9f9cbb3b6af68..93de7b153fe01 100644
--- a/datafusion/sqllogictest/test_files/tpch/plans/q13.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/plans/q13.slt.part
@@ -1,4 +1,3 @@
-
# 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
@@ -6,9 +5,9 @@
# 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
diff --git a/datafusion/sqllogictest/test_files/tpch/plans/q14.slt.part b/datafusion/sqllogictest/test_files/tpch/plans/q14.slt.part
index 68e7e3a329747..7a9a5dbab7047 100644
--- a/datafusion/sqllogictest/test_files/tpch/plans/q14.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/plans/q14.slt.part
@@ -1,4 +1,3 @@
-
# 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
@@ -6,9 +5,9 @@
# 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
diff --git a/datafusion/sqllogictest/test_files/tpch/plans/q15.slt.part b/datafusion/sqllogictest/test_files/tpch/plans/q15.slt.part
index 097b313cd69ae..42eddf93dfa80 100644
--- a/datafusion/sqllogictest/test_files/tpch/plans/q15.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/plans/q15.slt.part
@@ -1,4 +1,3 @@
-
# 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
@@ -6,9 +5,9 @@
# 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
diff --git a/datafusion/sqllogictest/test_files/tpch/plans/q16.slt.part b/datafusion/sqllogictest/test_files/tpch/plans/q16.slt.part
index df7a26bf0a20d..0791de758ed8b 100644
--- a/datafusion/sqllogictest/test_files/tpch/plans/q16.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/plans/q16.slt.part
@@ -1,4 +1,3 @@
-
# 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
@@ -6,9 +5,9 @@
# 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
diff --git a/datafusion/sqllogictest/test_files/tpch/plans/q17.slt.part b/datafusion/sqllogictest/test_files/tpch/plans/q17.slt.part
index e678f8b440dd4..b0c64e4613780 100644
--- a/datafusion/sqllogictest/test_files/tpch/plans/q17.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/plans/q17.slt.part
@@ -1,4 +1,3 @@
-
# 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
@@ -6,9 +5,9 @@
# 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
diff --git a/datafusion/sqllogictest/test_files/tpch/plans/q18.slt.part b/datafusion/sqllogictest/test_files/tpch/plans/q18.slt.part
index 3602aa1f4a8ed..44f14609dd988 100644
--- a/datafusion/sqllogictest/test_files/tpch/plans/q18.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/plans/q18.slt.part
@@ -1,4 +1,3 @@
-
# 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
@@ -6,9 +5,9 @@
# 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
diff --git a/datafusion/sqllogictest/test_files/tpch/plans/q19.slt.part b/datafusion/sqllogictest/test_files/tpch/plans/q19.slt.part
index 7ef36a72eca26..f620ffcda9481 100644
--- a/datafusion/sqllogictest/test_files/tpch/plans/q19.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/plans/q19.slt.part
@@ -1,4 +1,3 @@
-
# 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
@@ -6,9 +5,9 @@
# 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
diff --git a/datafusion/sqllogictest/test_files/tpch/plans/q2.slt.part b/datafusion/sqllogictest/test_files/tpch/plans/q2.slt.part
index b6fa1c4806bf4..e31d5709c82d8 100644
--- a/datafusion/sqllogictest/test_files/tpch/plans/q2.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/plans/q2.slt.part
@@ -1,4 +1,3 @@
-
# 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
@@ -6,9 +5,9 @@
# 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
diff --git a/datafusion/sqllogictest/test_files/tpch/plans/q20.slt.part b/datafusion/sqllogictest/test_files/tpch/plans/q20.slt.part
index e038a7482d24f..7fac31a164d75 100644
--- a/datafusion/sqllogictest/test_files/tpch/plans/q20.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/plans/q20.slt.part
@@ -1,4 +1,3 @@
-
# 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
@@ -6,9 +5,9 @@
# 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
diff --git a/datafusion/sqllogictest/test_files/tpch/plans/q21.slt.part b/datafusion/sqllogictest/test_files/tpch/plans/q21.slt.part
index 47e5d6d888dc5..c7aac62ca6f5d 100644
--- a/datafusion/sqllogictest/test_files/tpch/plans/q21.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/plans/q21.slt.part
@@ -1,4 +1,3 @@
-
# 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
@@ -6,9 +5,9 @@
# 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
diff --git a/datafusion/sqllogictest/test_files/tpch/plans/q22.slt.part b/datafusion/sqllogictest/test_files/tpch/plans/q22.slt.part
index d3f27021f1781..76b9e1c92c48e 100644
--- a/datafusion/sqllogictest/test_files/tpch/plans/q22.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/plans/q22.slt.part
@@ -1,4 +1,3 @@
-
# 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
@@ -6,9 +5,9 @@
# 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
diff --git a/datafusion/sqllogictest/test_files/tpch/plans/q3.slt.part b/datafusion/sqllogictest/test_files/tpch/plans/q3.slt.part
index 724ef72ca324c..72c2e5d15630d 100644
--- a/datafusion/sqllogictest/test_files/tpch/plans/q3.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/plans/q3.slt.part
@@ -1,4 +1,3 @@
-
# 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
@@ -6,9 +5,9 @@
# 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
diff --git a/datafusion/sqllogictest/test_files/tpch/plans/q4.slt.part b/datafusion/sqllogictest/test_files/tpch/plans/q4.slt.part
index 470d7a6527a52..512db4f04a245 100644
--- a/datafusion/sqllogictest/test_files/tpch/plans/q4.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/plans/q4.slt.part
@@ -1,4 +1,3 @@
-
# 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
@@ -6,9 +5,9 @@
# 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
diff --git a/datafusion/sqllogictest/test_files/tpch/plans/q5.slt.part b/datafusion/sqllogictest/test_files/tpch/plans/q5.slt.part
index 0c4bdfda8daf0..6eaae3844043e 100644
--- a/datafusion/sqllogictest/test_files/tpch/plans/q5.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/plans/q5.slt.part
@@ -1,4 +1,3 @@
-
# 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
@@ -6,9 +5,9 @@
# 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
diff --git a/datafusion/sqllogictest/test_files/tpch/plans/q6.slt.part b/datafusion/sqllogictest/test_files/tpch/plans/q6.slt.part
index 02a716557d039..de0b8d5913f77 100644
--- a/datafusion/sqllogictest/test_files/tpch/plans/q6.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/plans/q6.slt.part
@@ -1,4 +1,3 @@
-
# 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
@@ -6,9 +5,9 @@
# 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
diff --git a/datafusion/sqllogictest/test_files/tpch/plans/q7.slt.part b/datafusion/sqllogictest/test_files/tpch/plans/q7.slt.part
index 0db80ae202658..b178eb163c044 100644
--- a/datafusion/sqllogictest/test_files/tpch/plans/q7.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/plans/q7.slt.part
@@ -1,4 +1,3 @@
-
# 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
@@ -6,9 +5,9 @@
# 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
diff --git a/datafusion/sqllogictest/test_files/tpch/plans/q8.slt.part b/datafusion/sqllogictest/test_files/tpch/plans/q8.slt.part
index 902413e9efb28..419fbbecbaeea 100644
--- a/datafusion/sqllogictest/test_files/tpch/plans/q8.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/plans/q8.slt.part
@@ -1,4 +1,3 @@
-
# 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
@@ -6,9 +5,9 @@
# 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
diff --git a/datafusion/sqllogictest/test_files/tpch/plans/q9.slt.part b/datafusion/sqllogictest/test_files/tpch/plans/q9.slt.part
index 29869bcddfeb1..b56c21cedc8a9 100644
--- a/datafusion/sqllogictest/test_files/tpch/plans/q9.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/plans/q9.slt.part
@@ -1,4 +1,3 @@
-
# 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
@@ -6,9 +5,9 @@
# 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
diff --git a/doap.rdf b/doap.rdf
index c8b8cb361ad8a..47b2d0d3f587a 100644
--- a/doap.rdf
+++ b/doap.rdf
@@ -1,26 +1,28 @@
+
-
"
+
+[styles.batch_legacy]
+kind = "line"
+prefix = "@rem "
+
+[styles.rst]
+kind = "line"
+prefix = ".. "
+
+[[rules]]
+extensions = ["slt", "slt.part"]
+filenames = [".gitignore", ".dockerignore"]
+style_out = "script"
+
+[[rules]]
+extensions = ["md", "rdf"]
+style_out = "xml"
+styles_in = ["xml", "markdown_legacy"]
+
+[[rules]]
+extensions = ["rst"]
+style_out = "rst"
+
+[[rules]]
+extensions = ["js", "cjs", "proto"]
+style_out = "doubleslash"
+styles_in = ["doubleslash", "slashstar", "javadoc"]
+
+[[rules]]
+extensions = ["css"]
+style_out = "slashstar"
+styles_in = ["slashstar", "javadoc"]
+
+[[rules]]
+extensions = ["bat"]
+style_out = "batch"
+styles_in = ["batch", "batch_legacy"]
diff --git a/licenserc.toml b/licenserc.toml
index f79510a50de59..47418723a95f4 100644
--- a/licenserc.toml
+++ b/licenserc.toml
@@ -30,15 +30,59 @@ includes = [
"*.py",
"*.ts",
"*.slt",
+ "*.slt.part",
+ "*.md",
+ "*.rst",
+ "*.sh",
+ "*.bat",
+ "*.toml",
+ "*.yaml",
+ "*.yml",
+ "*.js",
+ "*.cjs",
+ "*.css",
+ "*.proto",
+ "*.rdf",
+ ".gitignore",
+ ".dockerignore",
+ ".editorconfig",
+ "Dockerfile",
+ "Makefile",
]
excludes = [
- # generated code
+ # Generated code; the hand-written generated/mod.rs wrappers are checked.
"datafusion/proto/src/generated/**",
- "datafusion/proto-common/src/generated/**",
- "datafusion/proto-models/src/generated/**",
+ "datafusion/proto-common/src/generated/pbjson.rs",
+ "datafusion/proto-common/src/generated/prost.rs",
+ "datafusion/proto-models/src/generated/datafusion_proto_common.rs",
+ "datafusion/proto-models/src/generated/pbjson.rs",
+ "datafusion/proto-models/src/generated/prost.rs",
+ # HawkEye inserts headers before the YAML front matter required by skills.
+ ".ai/skills/**",
+ # GitHub contribution templates and temporary generated documentation.
+ ".github/ISSUE_TEMPLATE/**",
+ ".github/pull_request_template.md",
+ "**/.examples-docs-check.*/**",
]
+[styles.rst]
+kind = "line"
+prefix = ".. "
+
[[rules]]
-extensions = ["slt"]
+extensions = ["slt", "slt.part"]
+filenames = [".gitignore", ".dockerignore"]
style_out = "script"
+
+[[rules]]
+extensions = ["md", "rdf"]
+style_out = "xml"
+
+[[rules]]
+extensions = ["rst"]
+style_out = "rst"
+
+[[rules]]
+extensions = ["js", "cjs", "proto"]
+style_out = "doubleslash"
From caa03f712f8bdc5d0894d299b2f8d7086a4d0409 Mon Sep 17 00:00:00 2001
From: Yongting You <2010youy01@gmail.com>
Date: Tue, 3 Nov 2026 20:00:49 +0800
Subject: [PATCH 2/4] chore: convert remaining files to SPDX Apache headers
Apply hawkeye remove --config licenserc-legacy.toml, hawkeye format --config licenserc.toml, and hawkeye check --config licenserc.toml, following PR #26761.
---
.asf.yaml | 19 +++-------------
.cargo/config.toml | 19 +++-------------
.devcontainer/Dockerfile | 4 ++++
.dockerignore | 4 ++++
.editorconfig | 19 +++-------------
.github/actions/setup-builder/action.yaml | 19 +++-------------
.../actions/setup-docs-builder/action.yaml | 19 +++-------------
.../setup-macos-aarch64-builder/action.yaml | 19 +++-------------
.../actions/setup-rust-runtime/action.yaml | 19 +++-------------
.github/actions/setup-rustup/action.yaml | 19 +++-------------
.../actions/setup-windows-builder/action.yaml | 19 +++-------------
.github/codecov.yml | 19 +++-------------
.github/dependabot.yml | 19 +++-------------
.github/workflows/audit.yml | 19 +++-------------
.../workflows/breaking_changes_detector.yml | 19 +++-------------
.../breaking_changes_detector_comment.yml | 19 +++-------------
.github/workflows/codeql.yml | 20 +++--------------
.github/workflows/dependencies.yml | 19 +++-------------
.github/workflows/dev.yml | 19 +++-------------
.github/workflows/docs.yaml | 19 +++-------------
.github/workflows/docs_pr.yaml | 19 +++-------------
.github/workflows/docs_versions.yaml | 19 +++-------------
.github/workflows/draft_inactive_prs.yml | 19 +++-------------
.github/workflows/extended.yml | 19 +++-------------
.github/workflows/fork_ci_status.yml | 19 +++-------------
.github/workflows/labeler.yml | 19 +++-------------
.github/workflows/labeler/labeler-config.yml | 19 +++-------------
.github/workflows/large_files.yml | 19 +++-------------
.github/workflows/merge_queue_cleanup.yml | 19 +++-------------
.../workflows/release_version_labeler.yaml | 19 +++-------------
.github/workflows/rust.yml | 19 +++-------------
.github/workflows/stale.yml | 19 +++-------------
.github/workflows/take.yml | 19 +++-------------
.gitignore | 19 +++-------------
AGENTS.md | 12 ++++++++++
CHANGELOG.md | 21 ++++--------------
CODE_OF_CONDUCT.md | 21 ++++--------------
CONTRIBUTING.md | 21 ++++--------------
Cargo.toml | 19 +++-------------
README.md | 21 ++++--------------
SECURITY.md | 21 ++++--------------
benchmarks/.dockerignore | 19 +++-------------
benchmarks/.gitignore | 4 ++++
benchmarks/Cargo.toml | 19 +++-------------
benchmarks/README.md | 21 ++++--------------
benchmarks/bench.sh | 19 +++-------------
benchmarks/compare_tpcds.sh | 19 +++-------------
benchmarks/compare_tpch.sh | 19 +++-------------
benchmarks/pyproject.toml | 4 ++++
benchmarks/queries/clickbench/README.md | 6 +++++
.../queries/clickbench/update_queries.sh | 19 +++-------------
benchmarks/sql_benchmarks/README.md | 21 ++++--------------
.../scratch/.gitignore | 4 ++++
.../predicate_eval/scratch/.gitignore | 4 ++++
.../sql_benchmarks/sort_pushdown/README.md | 6 +++++
.../spill_views/scratch/.gitignore | 4 ++++
ci/scripts/cancel_merge_queue_runs.cjs | 19 +++-------------
ci/scripts/changed_crates.sh | 19 +++-------------
ci/scripts/check_circular_dependencies.sh | 20 +++--------------
ci/scripts/check_docs_html.sh | 20 +++--------------
ci/scripts/check_examples_docs.sh | 20 +++--------------
ci/scripts/check_generated_docs.sh | 20 +++--------------
ci/scripts/check_large_files.sh | 20 +++--------------
.../check_no_cargo_install_in_workflows.sh | 20 +++--------------
ci/scripts/check_unused_dependencies.sh | 20 +++--------------
ci/scripts/doc_prettier_check.sh | 20 +++--------------
ci/scripts/draft_inactive_prs.cjs | 19 +++-------------
ci/scripts/license_header.sh | 20 +++--------------
ci/scripts/markdown_link_check.sh | 20 +++--------------
ci/scripts/release_version_labeler.js | 19 +++-------------
ci/scripts/rust_clippy.sh | 20 +++--------------
ci/scripts/rust_docs.sh | 20 +++--------------
ci/scripts/rust_example.sh | 20 +++--------------
ci/scripts/rust_fmt.sh | 20 +++--------------
ci/scripts/rust_toml_fmt.sh | 20 +++--------------
ci/scripts/security_audit.sh | 20 +++--------------
ci/scripts/test_cancel_merge_queue_runs.cjs | 19 +++-------------
ci/scripts/test_fork_ci_status.cjs | 19 +++-------------
ci/scripts/typos_check.sh | 20 +++--------------
ci/scripts/utils/git.sh | 20 +++--------------
ci/scripts/utils/tool_versions.sh | 20 +++--------------
clippy.toml | 4 ++++
datafusion-cli/CONTRIBUTING.md | 21 ++++--------------
datafusion-cli/Cargo.toml | 19 +++-------------
datafusion-cli/Dockerfile | 19 +++-------------
datafusion-cli/README.md | 21 ++++--------------
datafusion-examples/Cargo.toml | 19 +++-------------
datafusion-examples/README.md | 21 ++++--------------
datafusion-examples/data/README.md | 21 ++++--------------
datafusion-examples/examples/ffi/README.md | 21 ++++--------------
.../ffi/ffi_example_table_provider/Cargo.toml | 19 +++-------------
.../ffi/ffi_module_interface/Cargo.toml | 19 +++-------------
.../examples/ffi/ffi_module_loader/Cargo.toml | 19 +++-------------
datafusion/CHANGELOG.md | 21 ++++--------------
datafusion/catalog-listing/Cargo.toml | 19 +++-------------
datafusion/catalog-listing/README.md | 21 ++++--------------
datafusion/catalog/Cargo.toml | 19 +++-------------
datafusion/catalog/README.md | 21 ++++--------------
datafusion/common-runtime/Cargo.toml | 19 +++-------------
datafusion/common-runtime/README.md | 21 ++++--------------
datafusion/common/Cargo.toml | 19 +++-------------
datafusion/common/README.md | 21 ++++--------------
datafusion/core/Cargo.toml | 19 +++-------------
datafusion/core/README.md | 21 ++++--------------
.../core/src/optimizer_rule_reference.md | 21 ++++--------------
datafusion/datasource-arrow/Cargo.toml | 19 +++-------------
datafusion/datasource-arrow/README.md | 21 ++++--------------
datafusion/datasource-avro/Cargo.toml | 19 +++-------------
datafusion/datasource-avro/README.md | 21 ++++--------------
datafusion/datasource-csv/Cargo.toml | 19 +++-------------
datafusion/datasource-csv/README.md | 21 ++++--------------
datafusion/datasource-json/Cargo.toml | 19 +++-------------
datafusion/datasource-json/README.md | 21 ++++--------------
datafusion/datasource-parquet/Cargo.toml | 19 +++-------------
datafusion/datasource-parquet/README.md | 21 ++++--------------
datafusion/datasource/Cargo.toml | 19 +++-------------
datafusion/datasource/README.md | 21 ++++--------------
datafusion/doc/Cargo.toml | 19 +++-------------
datafusion/doc/README.md | 21 ++++--------------
datafusion/execution/Cargo.toml | 19 +++-------------
datafusion/execution/README.md | 21 ++++--------------
datafusion/expr-common/Cargo.toml | 19 +++-------------
datafusion/expr-common/README.md | 21 ++++--------------
datafusion/expr/Cargo.toml | 19 +++-------------
datafusion/expr/README.md | 21 ++++--------------
datafusion/ffi/Cargo.toml | 19 +++-------------
datafusion/ffi/README.md | 21 ++++--------------
datafusion/ffi/integration-tests/Cargo.toml | 19 +++-------------
.../functions-aggregate-common/Cargo.toml | 19 +++-------------
.../functions-aggregate-common/README.md | 21 ++++--------------
datafusion/functions-aggregate/COMMENTS.md | 21 ++++--------------
datafusion/functions-aggregate/Cargo.toml | 19 +++-------------
datafusion/functions-aggregate/README.md | 21 ++++--------------
datafusion/functions-nested/Cargo.toml | 19 +++-------------
datafusion/functions-nested/README.md | 21 ++++--------------
datafusion/functions-table/Cargo.toml | 19 +++-------------
datafusion/functions-table/README.md | 21 ++++--------------
datafusion/functions-window-common/Cargo.toml | 19 +++-------------
datafusion/functions-window-common/README.md | 21 ++++--------------
datafusion/functions-window/Cargo.toml | 19 +++-------------
datafusion/functions-window/README.md | 21 ++++--------------
datafusion/functions/Cargo.toml | 19 +++-------------
datafusion/functions/README.md | 21 ++++--------------
datafusion/macros/Cargo.toml | 19 +++-------------
datafusion/macros/README.md | 21 ++++--------------
datafusion/optimizer/Cargo.toml | 19 +++-------------
datafusion/optimizer/README.md | 21 ++++--------------
datafusion/physical-expr-adapter/Cargo.toml | 4 ++++
datafusion/physical-expr-adapter/README.md | 21 ++++--------------
datafusion/physical-expr-common/Cargo.toml | 19 +++-------------
datafusion/physical-expr-common/README.md | 21 ++++--------------
datafusion/physical-expr/Cargo.toml | 19 +++-------------
datafusion/physical-expr/README.md | 21 ++++--------------
datafusion/physical-optimizer/Cargo.toml | 19 +++-------------
datafusion/physical-optimizer/README.md | 21 ++++--------------
datafusion/physical-plan/Cargo.toml | 19 +++-------------
datafusion/physical-plan/README.md | 21 ++++--------------
datafusion/proto-common/.gitignore | 4 ++++
datafusion/proto-common/Cargo.toml | 19 +++-------------
datafusion/proto-common/README.md | 21 ++++--------------
datafusion/proto-common/gen/Cargo.toml | 19 +++-------------
.../proto/datafusion_common.proto | 19 +++-------------
datafusion/proto-common/regen.sh | 20 +++--------------
datafusion/proto-common/src/generated/mod.rs | 19 +++-------------
datafusion/proto-models/.gitignore | 4 ++++
datafusion/proto-models/Cargo.toml | 19 +++-------------
datafusion/proto-models/README.md | 21 ++++--------------
datafusion/proto-models/gen/Cargo.toml | 19 +++-------------
.../proto-models/proto/datafusion.proto | 19 +++-------------
datafusion/proto-models/regen.sh | 20 +++--------------
datafusion/proto-models/src/generated/mod.rs | 19 +++-------------
datafusion/proto/.gitignore | 4 ++++
datafusion/proto/CONTRIBUTING.md | 21 ++++--------------
datafusion/proto/Cargo.toml | 19 +++-------------
datafusion/proto/README.md | 21 ++++--------------
datafusion/proto/regen.sh | 20 +++--------------
datafusion/pruning/Cargo.toml | 4 ++++
datafusion/pruning/README.md | 21 ++++--------------
datafusion/session/Cargo.toml | 19 +++-------------
datafusion/session/README.md | 21 ++++--------------
datafusion/spark/Cargo.toml | 19 +++-------------
datafusion/spark/README.md | 19 +++-------------
datafusion/sql/Cargo.toml | 19 +++-------------
datafusion/sql/README.md | 21 ++++--------------
datafusion/sqllogictest/.gitignore | 4 ++++
datafusion/sqllogictest/Cargo.toml | 19 +++-------------
datafusion/sqllogictest/README.md | 21 ++++--------------
.../sqllogictest/regenerate_sqlite_files.sh | 21 +++---------------
.../test_files/array/cleanup.slt.part | 4 ++++
.../test_files/array/init_data.slt.part | 19 +++-------------
.../sqllogictest/test_files/join.slt.part | 19 +++-------------
.../test_files/min_max/init_data.slt.part | 19 +++-------------
.../test_files/min_max/queries.slt.part | 20 +++--------------
.../sqllogictest/test_files/regexp/README.md | 21 ++++--------------
.../test_files/regexp/init_data.slt.part | 19 +++-------------
.../sqllogictest/test_files/spark/README.md | 21 ++++--------------
.../sqllogictest/test_files/string/README.md | 21 ++++--------------
.../test_files/string/init_data.slt.part | 19 +++-------------
.../test_files/string/string_query.slt.part | 19 +++-------------
.../test_files/tpch/answers/q1.slt.part | 19 +++-------------
.../test_files/tpch/answers/q10.slt.part | 19 +++-------------
.../test_files/tpch/answers/q11.slt.part | 19 +++-------------
.../test_files/tpch/answers/q12.slt.part | 19 +++-------------
.../test_files/tpch/answers/q13.slt.part | 19 +++-------------
.../test_files/tpch/answers/q14.slt.part | 19 +++-------------
.../test_files/tpch/answers/q15.slt.part | 19 +++-------------
.../test_files/tpch/answers/q16.slt.part | 19 +++-------------
.../test_files/tpch/answers/q17.slt.part | 19 +++-------------
.../test_files/tpch/answers/q18.slt.part | 19 +++-------------
.../test_files/tpch/answers/q19.slt.part | 19 +++-------------
.../test_files/tpch/answers/q2.slt.part | 19 +++-------------
.../test_files/tpch/answers/q20.slt.part | 19 +++-------------
.../test_files/tpch/answers/q21.slt.part | 19 +++-------------
.../test_files/tpch/answers/q22.slt.part | 19 +++-------------
.../test_files/tpch/answers/q3.slt.part | 19 +++-------------
.../test_files/tpch/answers/q4.slt.part | 19 +++-------------
.../test_files/tpch/answers/q5.slt.part | 19 +++-------------
.../test_files/tpch/answers/q6.slt.part | 19 +++-------------
.../test_files/tpch/answers/q7.slt.part | 19 +++-------------
.../test_files/tpch/answers/q8.slt.part | 19 +++-------------
.../test_files/tpch/answers/q9.slt.part | 19 +++-------------
.../test_files/tpch/create_tables.slt.part | 19 +++-------------
.../test_files/tpch/drop_tables.slt.part | 19 +++-------------
.../test_files/tpch/plans/q1.slt.part | 19 +++-------------
.../test_files/tpch/plans/q10.slt.part | 19 +++-------------
.../test_files/tpch/plans/q11.slt.part | 19 +++-------------
.../test_files/tpch/plans/q12.slt.part | 19 +++-------------
.../test_files/tpch/plans/q13.slt.part | 19 +++-------------
.../test_files/tpch/plans/q14.slt.part | 19 +++-------------
.../test_files/tpch/plans/q15.slt.part | 19 +++-------------
.../test_files/tpch/plans/q16.slt.part | 19 +++-------------
.../test_files/tpch/plans/q17.slt.part | 19 +++-------------
.../test_files/tpch/plans/q18.slt.part | 19 +++-------------
.../test_files/tpch/plans/q19.slt.part | 19 +++-------------
.../test_files/tpch/plans/q2.slt.part | 19 +++-------------
.../test_files/tpch/plans/q20.slt.part | 19 +++-------------
.../test_files/tpch/plans/q21.slt.part | 19 +++-------------
.../test_files/tpch/plans/q22.slt.part | 19 +++-------------
.../test_files/tpch/plans/q3.slt.part | 19 +++-------------
.../test_files/tpch/plans/q4.slt.part | 19 +++-------------
.../test_files/tpch/plans/q5.slt.part | 19 +++-------------
.../test_files/tpch/plans/q6.slt.part | 19 +++-------------
.../test_files/tpch/plans/q7.slt.part | 19 +++-------------
.../test_files/tpch/plans/q8.slt.part | 19 +++-------------
.../test_files/tpch/plans/q9.slt.part | 19 +++-------------
datafusion/substrait/Cargo.toml | 19 +++-------------
datafusion/substrait/README.md | 21 ++++--------------
datafusion/substrait/tests/testdata/Readme.md | 21 ++++--------------
.../testdata/tpch_substrait_plans/README.md | 21 ++++--------------
datafusion/wasmtest/Cargo.toml | 19 +++-------------
datafusion/wasmtest/README.md | 21 ++++--------------
.../wasmtest/datafusion-wasm-app/.gitignore | 4 ++++
.../wasmtest/datafusion-wasm-app/README.md | 6 +++++
.../wasmtest/datafusion-wasm-app/bootstrap.js | 19 +++-------------
.../wasmtest/datafusion-wasm-app/index.js | 19 +++-------------
.../datafusion-wasm-app/webpack.config.js | 19 +++-------------
dev/build-set-env.sh | 20 +++--------------
dev/changelog/10.0.0.md | 21 ++++--------------
dev/changelog/11.0.0.md | 21 ++++--------------
dev/changelog/12.0.0.md | 21 ++++--------------
dev/changelog/13.0.0.md | 21 ++++--------------
dev/changelog/14.0.0.md | 21 ++++--------------
dev/changelog/15.0.0.md | 21 ++++--------------
dev/changelog/16.0.0.md | 21 ++++--------------
dev/changelog/16.1.0.md | 21 ++++--------------
dev/changelog/17.0.0.md | 21 ++++--------------
dev/changelog/18.0.0.md | 21 ++++--------------
dev/changelog/19.0.0.md | 21 ++++--------------
dev/changelog/20.0.0.md | 21 ++++--------------
dev/changelog/21.0.0.md | 21 ++++--------------
dev/changelog/21.1.0.md | 21 ++++--------------
dev/changelog/22.0.0.md | 21 ++++--------------
dev/changelog/23.0.0.md | 21 ++++--------------
dev/changelog/24.0.0.md | 21 ++++--------------
dev/changelog/25.0.0.md | 21 ++++--------------
dev/changelog/26.0.0.md | 21 ++++--------------
dev/changelog/27.0.0.md | 21 ++++--------------
dev/changelog/28.0.0.md | 21 ++++--------------
dev/changelog/29.0.0.md | 21 ++++--------------
dev/changelog/30.0.0.md | 21 ++++--------------
dev/changelog/31.0.0.md | 21 ++++--------------
dev/changelog/32.0.0.md | 21 ++++--------------
dev/changelog/33.0.0.md | 21 ++++--------------
dev/changelog/34.0.0.md | 21 ++++--------------
dev/changelog/35.0.0.md | 21 ++++--------------
dev/changelog/36.0.0.md | 21 ++++--------------
dev/changelog/37.0.0.md | 21 ++++--------------
dev/changelog/37.1.0.md | 21 ++++--------------
dev/changelog/38.0.0.md | 21 ++++--------------
dev/changelog/39.0.0.md | 19 +++-------------
dev/changelog/40.0.0.md | 19 +++-------------
dev/changelog/41.0.0.md | 19 +++-------------
dev/changelog/42.0.0.md | 19 +++-------------
dev/changelog/42.1.0.md | 19 +++-------------
dev/changelog/42.2.0.md | 19 +++-------------
dev/changelog/43.0.0.md | 19 +++-------------
dev/changelog/44.0.0.md | 19 +++-------------
dev/changelog/45.0.0.md | 19 +++-------------
dev/changelog/46.0.0.md | 19 +++-------------
dev/changelog/46.0.1.md | 19 +++-------------
dev/changelog/47.0.0.md | 19 +++-------------
dev/changelog/48.0.0.md | 19 +++-------------
dev/changelog/49.0.0.md | 19 +++-------------
dev/changelog/49.0.1.md | 19 +++-------------
dev/changelog/49.0.2.md | 19 +++-------------
dev/changelog/5.0.0.md | 21 ++++--------------
dev/changelog/50.0.0.md | 19 +++-------------
dev/changelog/50.1.0.md | 19 +++-------------
dev/changelog/50.2.0.md | 19 +++-------------
dev/changelog/50.3.0.md | 19 +++-------------
dev/changelog/51.0.0.md | 19 +++-------------
dev/changelog/52.0.0.md | 19 +++-------------
dev/changelog/52.1.0.md | 19 +++-------------
dev/changelog/52.2.0.md | 19 +++-------------
dev/changelog/52.3.0.md | 19 +++-------------
dev/changelog/52.4.0.md | 19 +++-------------
dev/changelog/52.5.0.md | 19 +++-------------
dev/changelog/53.0.0.md | 19 +++-------------
dev/changelog/53.1.0.md | 19 +++-------------
dev/changelog/54.0.0.md | 19 +++-------------
dev/changelog/54.1.0.md | 19 +++-------------
dev/changelog/55.0.0.md | 19 +++-------------
dev/changelog/55.1.0.md | 19 +++-------------
dev/changelog/6.0.0.md | 21 ++++--------------
dev/changelog/7.0.0.md | 21 ++++--------------
dev/changelog/7.1.0.md | 21 ++++--------------
dev/changelog/8.0.0.md | 21 ++++--------------
dev/changelog/9.0.0.md | 21 ++++--------------
dev/pyproject.toml | 4 ++++
dev/release/README.md | 21 ++++--------------
dev/release/add-branch-protection.sh | 19 +++-------------
dev/release/create-tarball.sh | 21 +++---------------
dev/release/release-tarball.sh | 21 +++---------------
dev/release/verify-release-candidate.sh | 21 +++---------------
dev/rust_lint.sh | 20 +++--------------
dev/update_config_docs.sh | 21 +++---------------
dev/update_function_docs.sh | 21 +++---------------
doap.rdf | 20 ++++-------------
docs/.gitignore | 19 +++-------------
docs/Makefile | 19 +++-------------
docs/README.md | 21 ++++--------------
docs/build.sh | 21 +++---------------
docs/make.bat | 19 +++-------------
docs/pyproject.toml | 4 ++++
docs/scripts/build_versions.sh | 20 +++--------------
docs/scripts/generate_dependency_graph.sh | 20 +++--------------
docs/source/_static/theme_overrides.css | 22 ++++---------------
docs/source/contributor-guide/ai-policy.md | 21 ++++--------------
docs/source/contributor-guide/api-health.md | 21 ++++--------------
docs/source/contributor-guide/architecture.md | 21 ++++--------------
.../architecture/dependency-graph.md | 21 ++++--------------
.../source/contributor-guide/communication.md | 21 ++++--------------
.../development_environment.md | 21 ++++--------------
docs/source/contributor-guide/governance.md | 21 ++++--------------
.../gsoc/gsoc_application_guidelines_2025.md | 6 +++++
.../gsoc/gsoc_project_ideas_2025.md | 6 +++++
docs/source/contributor-guide/gsoc/index.rst | 19 +++-------------
docs/source/contributor-guide/howtos.md | 21 ++++--------------
docs/source/contributor-guide/index.md | 21 ++++--------------
docs/source/contributor-guide/inviting.md | 21 ++++--------------
docs/source/contributor-guide/pr_review.md | 21 ++++--------------
.../contributor-guide/release_management.md | 21 ++++--------------
docs/source/contributor-guide/roadmap.md | 19 +++-------------
.../contributor-guide/specification/index.rst | 19 +++-------------
.../specification/invariants.md | 21 ++++--------------
.../output-field-name-semantic.md | 21 ++++--------------
docs/source/contributor-guide/testing.md | 21 ++++--------------
docs/source/download.md | 21 ++++--------------
docs/source/index.rst | 19 +++-------------
.../building-logical-plans.md | 21 ++++--------------
docs/source/library-user-guide/catalogs.md | 21 ++++--------------
.../custom-table-providers.md | 21 ++++--------------
.../library-user-guide/extending-operators.md | 21 ++++--------------
.../library-user-guide/extending-sql.md | 21 ++++--------------
docs/source/library-user-guide/extensions.md | 21 ++++--------------
.../functions/adding-udfs.md | 21 ++++--------------
.../library-user-guide/functions/index.rst | 19 +++-------------
.../library-user-guide/functions/spark.md | 21 ++++--------------
docs/source/library-user-guide/index.md | 21 ++++--------------
docs/source/library-user-guide/profiling.md | 21 ++++--------------
.../library-user-guide/query-optimizer.md | 21 ++++--------------
.../library-user-guide/securing-datafusion.md | 21 ++++--------------
.../library-user-guide/table-constraints.md | 21 ++++--------------
.../library-user-guide/upgrading/46.0.0.md | 21 ++++--------------
.../library-user-guide/upgrading/47.0.0.md | 21 ++++--------------
.../library-user-guide/upgrading/48.0.0.md | 21 ++++--------------
.../library-user-guide/upgrading/48.0.1.md | 21 ++++--------------
.../library-user-guide/upgrading/49.0.0.md | 21 ++++--------------
.../library-user-guide/upgrading/50.0.0.md | 21 ++++--------------
.../library-user-guide/upgrading/51.0.0.md | 21 ++++--------------
.../library-user-guide/upgrading/52.0.0.md | 21 ++++--------------
.../library-user-guide/upgrading/53.0.0.md | 21 ++++--------------
.../library-user-guide/upgrading/54.0.0.md | 21 ++++--------------
.../library-user-guide/upgrading/55.0.0.md | 21 ++++--------------
.../library-user-guide/upgrading/56.0.0.md | 21 ++++--------------
.../library-user-guide/upgrading/index.rst | 19 +++-------------
.../using-the-dataframe-api.md | 21 ++++--------------
.../library-user-guide/using-the-sql-api.md | 21 ++++--------------
.../library-user-guide/working-with-exprs.md | 21 ++++--------------
docs/source/user-guide/arrow-introduction.md | 21 ++++--------------
docs/source/user-guide/cli/datasources.md | 21 ++++--------------
docs/source/user-guide/cli/functions.md | 21 ++++--------------
docs/source/user-guide/cli/index.rst | 19 +++-------------
docs/source/user-guide/cli/installation.md | 21 ++++--------------
docs/source/user-guide/cli/overview.md | 21 ++++--------------
docs/source/user-guide/cli/usage.md | 21 ++++--------------
.../user-guide/concepts-readings-events.md | 21 ++++--------------
docs/source/user-guide/configs.md | 21 ++++--------------
docs/source/user-guide/crate-configuration.md | 21 ++++--------------
docs/source/user-guide/dataframe.md | 21 ++++--------------
docs/source/user-guide/example-usage.md | 21 ++++--------------
docs/source/user-guide/explain-usage.md | 21 ++++--------------
docs/source/user-guide/expressions.md | 21 ++++--------------
docs/source/user-guide/faq.md | 21 ++++--------------
docs/source/user-guide/features.md | 21 ++++--------------
docs/source/user-guide/introduction.md | 21 ++++--------------
docs/source/user-guide/metrics.md | 21 ++++--------------
.../parquet-content-defined-chunking.md | 21 ++++--------------
.../user-guide/sql/aggregate_functions.md | 21 ++++--------------
docs/source/user-guide/sql/data_types.md | 21 ++++--------------
docs/source/user-guide/sql/ddl.md | 21 ++++--------------
docs/source/user-guide/sql/dml.md | 21 ++++--------------
docs/source/user-guide/sql/explain.md | 21 ++++--------------
docs/source/user-guide/sql/format_options.md | 21 ++++--------------
docs/source/user-guide/sql/index.rst | 19 +++-------------
.../user-guide/sql/information_schema.md | 21 ++++--------------
docs/source/user-guide/sql/operators.md | 21 ++++--------------
.../user-guide/sql/prepared_statements.md | 21 ++++--------------
.../source/user-guide/sql/scalar_functions.md | 21 ++++--------------
docs/source/user-guide/sql/select.md | 21 ++++--------------
.../user-guide/sql/special_functions.md | 21 ++++--------------
docs/source/user-guide/sql/struct_coercion.md | 21 ++++--------------
docs/source/user-guide/sql/subqueries.md | 21 ++++--------------
.../source/user-guide/sql/window_functions.md | 21 ++++--------------
licenserc-legacy.toml | 19 +++-------------
licenserc.toml | 19 +++-------------
lychee.toml | 19 +++-------------
pre-commit.sh | 20 +++--------------
pyproject.toml | 4 ++++
python/README.md | 21 ++++--------------
rust-toolchain.toml | 19 +++-------------
rustfmt.toml | 19 +++-------------
taplo.toml | 19 +++-------------
test-utils/Cargo.toml | 19 +++-------------
typos.toml | 4 ++++
xtask/Cargo.toml | 19 +++-------------
xtask/README.md | 21 ++++--------------
447 files changed, 1566 insertions(+), 6960 deletions(-)
diff --git a/.asf.yaml b/.asf.yaml
index 4515eb3feb6f2..4c517c4cb3a9a 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
# This file controls the settings of this repository
#
diff --git a/.cargo/config.toml b/.cargo/config.toml
index 9dae805eb1981..440d9600a534b 100644
--- a/.cargo/config.toml
+++ b/.cargo/config.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
[alias]
xtask = "run --quiet --locked --package datafusion-xtask --"
diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile
index 49aacd118e19b..56242b62b1171 100644
--- a/.devcontainer/Dockerfile
+++ b/.devcontainer/Dockerfile
@@ -1,3 +1,7 @@
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
+
FROM rust:bookworm
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
diff --git a/.dockerignore b/.dockerignore
index 533221e2b4a69..fa2ff3d811d1d 100644
--- a/.dockerignore
+++ b/.dockerignore
@@ -1,2 +1,6 @@
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
+
.git
**target
diff --git a/.editorconfig b/.editorconfig
index 2bd19357655cc..723c9e860a351 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
root = true
diff --git a/.github/actions/setup-builder/action.yaml b/.github/actions/setup-builder/action.yaml
index 6228370c955a9..9bd515d092fa5 100644
--- a/.github/actions/setup-builder/action.yaml
+++ b/.github/actions/setup-builder/action.yaml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
name: Prepare Rust Builder
description: 'Prepare Rust Build Environment'
diff --git a/.github/actions/setup-docs-builder/action.yaml b/.github/actions/setup-docs-builder/action.yaml
index 380109b722718..5324aea44f3d5 100644
--- a/.github/actions/setup-docs-builder/action.yaml
+++ b/.github/actions/setup-docs-builder/action.yaml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
name: Prepare Docs Builder
description: 'Install the tools needed to build the documentation in docs'
diff --git a/.github/actions/setup-macos-aarch64-builder/action.yaml b/.github/actions/setup-macos-aarch64-builder/action.yaml
index 94750b0b16487..ae068143a2740 100644
--- a/.github/actions/setup-macos-aarch64-builder/action.yaml
+++ b/.github/actions/setup-macos-aarch64-builder/action.yaml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
name: Prepare Rust Builder for MacOS
description: 'Prepare Rust Build Environment for MacOS'
diff --git a/.github/actions/setup-rust-runtime/action.yaml b/.github/actions/setup-rust-runtime/action.yaml
index fc55b3981234d..94a730eb3756f 100644
--- a/.github/actions/setup-rust-runtime/action.yaml
+++ b/.github/actions/setup-rust-runtime/action.yaml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
name: Setup Rust Runtime
description: 'Setup Rust Runtime Environment'
diff --git a/.github/actions/setup-rustup/action.yaml b/.github/actions/setup-rustup/action.yaml
index 3c138f9fd1ba2..96d2b10c12a2c 100644
--- a/.github/actions/setup-rustup/action.yaml
+++ b/.github/actions/setup-rustup/action.yaml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
name: Install rustup
description: 'Install rustup and the toolchain from rust-toolchain.toml on a runner without Rust, such as ubuntu-slim'
diff --git a/.github/actions/setup-windows-builder/action.yaml b/.github/actions/setup-windows-builder/action.yaml
index a0304168c744e..8b48707297d57 100644
--- a/.github/actions/setup-windows-builder/action.yaml
+++ b/.github/actions/setup-windows-builder/action.yaml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
name: Prepare Rust Builder for Windows
description: 'Prepare Rust Build Environment for Windows'
diff --git a/.github/codecov.yml b/.github/codecov.yml
index 926af5ef1050c..57b67a184a5ad 100644
--- a/.github/codecov.yml
+++ b/.github/codecov.yml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
# Configuration reference: https://docs.codecov.com/docs/codecovyml-reference
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index e2ab325701ed5..5d479791b416a 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
version: 2
updates:
diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml
index 0fc92f57d4964..a2616006cb264 100644
--- a/.github/workflows/audit.yml
+++ b/.github/workflows/audit.yml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
name: Security audit
diff --git a/.github/workflows/breaking_changes_detector.yml b/.github/workflows/breaking_changes_detector.yml
index c7c401560fa63..69e0e514954c2 100644
--- a/.github/workflows/breaking_changes_detector.yml
+++ b/.github/workflows/breaking_changes_detector.yml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
# Detect semver-incompatible (breaking) API changes in crates modified by a PR.
#
diff --git a/.github/workflows/breaking_changes_detector_comment.yml b/.github/workflows/breaking_changes_detector_comment.yml
index 822a04e2868de..a67177149f690 100644
--- a/.github/workflows/breaking_changes_detector_comment.yml
+++ b/.github/workflows/breaking_changes_detector_comment.yml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
# Companion to `breaking_changes_detector.yml`. Posts the sticky PR comment.
#
diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml
index beaed650d38ec..ab84ec14192bf 100644
--- a/.github/workflows/codeql.yml
+++ b/.github/workflows/codeql.yml
@@ -1,20 +1,6 @@
-# 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.
-#
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
name: "CodeQL"
diff --git a/.github/workflows/dependencies.yml b/.github/workflows/dependencies.yml
index af96518fba9da..b02cebaa1efa1 100644
--- a/.github/workflows/dependencies.yml
+++ b/.github/workflows/dependencies.yml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
name: Dependencies
diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml
index 8a5e8b4284dde..2fe2947d8db44 100644
--- a/.github/workflows/dev.yml
+++ b/.github/workflows/dev.yml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
name: Dev
on:
diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml
index 783ec8f26a9c7..c9228f60378ab 100644
--- a/.github/workflows/docs.yaml
+++ b/.github/workflows/docs.yaml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
on:
push:
diff --git a/.github/workflows/docs_pr.yaml b/.github/workflows/docs_pr.yaml
index f62e6c2768583..fcf5ade850d21 100644
--- a/.github/workflows/docs_pr.yaml
+++ b/.github/workflows/docs_pr.yaml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
# Tests for Docs that runs on PRs
name: Docs
diff --git a/.github/workflows/docs_versions.yaml b/.github/workflows/docs_versions.yaml
index a22727847ea99..39d2a8961bd30 100644
--- a/.github/workflows/docs_versions.yaml
+++ b/.github/workflows/docs_versions.yaml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
# Publishes the documentation for released versions to
# https://datafusion.apache.org/versions//
diff --git a/.github/workflows/draft_inactive_prs.yml b/.github/workflows/draft_inactive_prs.yml
index 036d8174d5082..bd6a058360416 100644
--- a/.github/workflows/draft_inactive_prs.yml
+++ b/.github/workflows/draft_inactive_prs.yml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
name: Draft inactive PRs
diff --git a/.github/workflows/extended.yml b/.github/workflows/extended.yml
index f632b9f2efe37..4e691d77fc152 100644
--- a/.github/workflows/extended.yml
+++ b/.github/workflows/extended.yml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
# Each test command below is implemented with `cargo xtask` so developers can
# run the same suite locally. Append `--explain` to print the underlying
diff --git a/.github/workflows/fork_ci_status.yml b/.github/workflows/fork_ci_status.yml
index 56213480b4a0d..e1b15c2ad35aa 100644
--- a/.github/workflows/fork_ci_status.yml
+++ b/.github/workflows/fork_ci_status.yml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
# # Fork CI status
#
diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml
index d47bd76c0caa2..1630282eda13d 100644
--- a/.github/workflows/labeler.yml
+++ b/.github/workflows/labeler.yml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
name: Labeler
diff --git a/.github/workflows/labeler/labeler-config.yml b/.github/workflows/labeler/labeler-config.yml
index 0e492b6f3f6dc..101d8c330832a 100644
--- a/.github/workflows/labeler/labeler-config.yml
+++ b/.github/workflows/labeler/labeler-config.yml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
development-process:
- changed-files:
diff --git a/.github/workflows/large_files.yml b/.github/workflows/large_files.yml
index 2c124863f90c8..87c73fe8a5260 100644
--- a/.github/workflows/large_files.yml
+++ b/.github/workflows/large_files.yml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
name: Large files PR check
diff --git a/.github/workflows/merge_queue_cleanup.yml b/.github/workflows/merge_queue_cleanup.yml
index 1d6b2fc9115e6..7c1b229fa6cf4 100644
--- a/.github/workflows/merge_queue_cleanup.yml
+++ b/.github/workflows/merge_queue_cleanup.yml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
name: Merge queue cleanup
diff --git a/.github/workflows/release_version_labeler.yaml b/.github/workflows/release_version_labeler.yaml
index 1e44ad842c1d5..c62dcd33cc936 100644
--- a/.github/workflows/release_version_labeler.yaml
+++ b/.github/workflows/release_version_labeler.yaml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
# Add the expected target version as a label to a merged PR.
# The "target_version" is automatically updated by the dev/update_datafusion_versions.py script.
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index ba9a8d528dc3e..22d97779ba869 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
# # CI runners
#
diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml
index 81188559d89f0..9480bb96d1de6 100644
--- a/.github/workflows/stale.yml
+++ b/.github/workflows/stale.yml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
name: "Close stale PRs"
on:
diff --git a/.github/workflows/take.yml b/.github/workflows/take.yml
index e34bf869ef8a0..311ec76523738 100644
--- a/.github/workflows/take.yml
+++ b/.github/workflows/take.yml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
name: Assign/unassign the issue via `take` or `untake` comment
on:
diff --git a/.gitignore b/.gitignore
index 1d2c63ac00fde..6239b121e8be1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
apache-rat-*.jar
diff --git a/AGENTS.md b/AGENTS.md
index d19826d97c3e2..4730bc3d467da 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -1,3 +1,15 @@
+
+
+
+
# Agent Guidelines for Apache DataFusion
## Developer Documentation
diff --git a/CHANGELOG.md b/CHANGELOG.md
index c481ce0b96a0d..4dda44706f767 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,20 +1,7 @@
-
Change logs for each release can be found [here](dev/changelog).
diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md
index 9a24b9b8a1109..d26efea416f9e 100644
--- a/CODE_OF_CONDUCT.md
+++ b/CODE_OF_CONDUCT.md
@@ -1,20 +1,7 @@
-
# Code of Conduct
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 896a55b9238c2..59ab36cd3b1ee 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -1,20 +1,7 @@
-
See the [Contributor Guide](https://datafusion.apache.org/contributor-guide/index.html)
diff --git a/Cargo.toml b/Cargo.toml
index 3348e1d84374a..f45239754dd5e 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
[workspace]
members = [
diff --git a/README.md b/README.md
index 722ed1a6f1113..9cbbf0685bcb8 100644
--- a/README.md
+++ b/README.md
@@ -1,20 +1,7 @@
-
# Apache DataFusion
diff --git a/SECURITY.md b/SECURITY.md
index 09c0a5f2ce163..67a9f2fb2092a 100644
--- a/SECURITY.md
+++ b/SECURITY.md
@@ -1,20 +1,7 @@
-
# Security Policy
diff --git a/benchmarks/.dockerignore b/benchmarks/.dockerignore
index 3a7d0fdaa06f2..a83c91583ea9c 100644
--- a/benchmarks/.dockerignore
+++ b/benchmarks/.dockerignore
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
# Turn .dockerignore to .dockerallow by excluding everything and explicitly
# allowing specific files and directories. This enables us to quickly add
diff --git a/benchmarks/.gitignore b/benchmarks/.gitignore
index 1e59d094eb063..f32074f75155e 100644
--- a/benchmarks/.gitignore
+++ b/benchmarks/.gitignore
@@ -1,3 +1,7 @@
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
+
data
data_csv
results
diff --git a/benchmarks/Cargo.toml b/benchmarks/Cargo.toml
index b5e19755b59ae..2ddcc48a322f5 100644
--- a/benchmarks/Cargo.toml
+++ b/benchmarks/Cargo.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
[package]
name = "datafusion-benchmarks"
diff --git a/benchmarks/README.md b/benchmarks/README.md
index bceb33dc022a9..ef1fc28d951c6 100644
--- a/benchmarks/README.md
+++ b/benchmarks/README.md
@@ -1,20 +1,7 @@
-
# DataFusion Benchmarks
diff --git a/benchmarks/bench.sh b/benchmarks/bench.sh
index 156e33f507409..4d5044857b462 100755
--- a/benchmarks/bench.sh
+++ b/benchmarks/bench.sh
@@ -1,20 +1,7 @@
#!/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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
# This script is meant for developers of DataFusion -- it is runnable
# from the standard DataFusion development environment and uses cargo,
diff --git a/benchmarks/compare_tpcds.sh b/benchmarks/compare_tpcds.sh
index 48331a7c7510e..1c404521d92a6 100755
--- a/benchmarks/compare_tpcds.sh
+++ b/benchmarks/compare_tpcds.sh
@@ -1,20 +1,7 @@
#!/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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
# Compare TPC-DS benchmarks between two branches
diff --git a/benchmarks/compare_tpch.sh b/benchmarks/compare_tpch.sh
index 85e8da29ce41d..b81895ebe2448 100755
--- a/benchmarks/compare_tpch.sh
+++ b/benchmarks/compare_tpch.sh
@@ -1,20 +1,7 @@
#!/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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
# Compare TPC-H benchmarks between two branches
diff --git a/benchmarks/pyproject.toml b/benchmarks/pyproject.toml
index e6a60582148ce..8ed6a0b89136e 100644
--- a/benchmarks/pyproject.toml
+++ b/benchmarks/pyproject.toml
@@ -1,3 +1,7 @@
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
+
[project]
name = "datafusion-benchmarks"
version = "0.1.0"
diff --git a/benchmarks/queries/clickbench/README.md b/benchmarks/queries/clickbench/README.md
index c0ee7bc327f29..3f803e27ec110 100644
--- a/benchmarks/queries/clickbench/README.md
+++ b/benchmarks/queries/clickbench/README.md
@@ -1,3 +1,9 @@
+
+
# ClickBench queries
This directory contains queries for the ClickBench benchmark https://benchmark.clickhouse.com/
diff --git a/benchmarks/queries/clickbench/update_queries.sh b/benchmarks/queries/clickbench/update_queries.sh
index d7db7359aa394..559fdfc1ac8b9 100755
--- a/benchmarks/queries/clickbench/update_queries.sh
+++ b/benchmarks/queries/clickbench/update_queries.sh
@@ -1,20 +1,7 @@
#!/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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
# This script is meant for developers of DataFusion -- it is runnable
# from the standard DataFusion development environment and uses cargo,
diff --git a/benchmarks/sql_benchmarks/README.md b/benchmarks/sql_benchmarks/README.md
index 97a258b423c3d..3eb59ce0cc45f 100644
--- a/benchmarks/sql_benchmarks/README.md
+++ b/benchmarks/sql_benchmarks/README.md
@@ -1,20 +1,7 @@
-
# SQL Benchmarks
diff --git a/benchmarks/sql_benchmarks/parquet_row_filter_skip/scratch/.gitignore b/benchmarks/sql_benchmarks/parquet_row_filter_skip/scratch/.gitignore
index 4bed5da93fb28..ab94b3fed8113 100644
--- a/benchmarks/sql_benchmarks/parquet_row_filter_skip/scratch/.gitignore
+++ b/benchmarks/sql_benchmarks/parquet_row_filter_skip/scratch/.gitignore
@@ -1 +1,5 @@
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
+
*.parquet
diff --git a/benchmarks/sql_benchmarks/predicate_eval/scratch/.gitignore b/benchmarks/sql_benchmarks/predicate_eval/scratch/.gitignore
index 4bed5da93fb28..ab94b3fed8113 100644
--- a/benchmarks/sql_benchmarks/predicate_eval/scratch/.gitignore
+++ b/benchmarks/sql_benchmarks/predicate_eval/scratch/.gitignore
@@ -1 +1,5 @@
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
+
*.parquet
diff --git a/benchmarks/sql_benchmarks/sort_pushdown/README.md b/benchmarks/sql_benchmarks/sort_pushdown/README.md
index 9adb5533cb61a..64b2a076cb73e 100644
--- a/benchmarks/sql_benchmarks/sort_pushdown/README.md
+++ b/benchmarks/sql_benchmarks/sort_pushdown/README.md
@@ -1,3 +1,9 @@
+
+
# Sort pushdown SQL benchmarks
Run the existing sort pushdown queries through `benchmark_runner`. This suite
diff --git a/benchmarks/sql_benchmarks/spill_views/scratch/.gitignore b/benchmarks/sql_benchmarks/spill_views/scratch/.gitignore
index 4bed5da93fb28..ab94b3fed8113 100644
--- a/benchmarks/sql_benchmarks/spill_views/scratch/.gitignore
+++ b/benchmarks/sql_benchmarks/spill_views/scratch/.gitignore
@@ -1 +1,5 @@
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
+
*.parquet
diff --git a/ci/scripts/cancel_merge_queue_runs.cjs b/ci/scripts/cancel_merge_queue_runs.cjs
index 9ebec8942a496..a9fab0d336514 100644
--- a/ci/scripts/cancel_merge_queue_runs.cjs
+++ b/ci/scripts/cancel_merge_queue_runs.cjs
@@ -1,19 +1,6 @@
-// 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.
+// SPDX-License-Identifier: Apache-2.0
+// SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+// SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
// Called on each new merge group and on a schedule. The queue's exact Git
// refs, rather than PR state or failing checks, determine which runs are stale.
diff --git a/ci/scripts/changed_crates.sh b/ci/scripts/changed_crates.sh
index 96ca51b50832c..364092022ff9d 100755
--- a/ci/scripts/changed_crates.sh
+++ b/ci/scripts/changed_crates.sh
@@ -1,20 +1,7 @@
#!/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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
# Helper script for the breaking-changes-detector workflow.
#
diff --git a/ci/scripts/check_circular_dependencies.sh b/ci/scripts/check_circular_dependencies.sh
index cb891e6b40e4d..78004defe6a2a 100755
--- a/ci/scripts/check_circular_dependencies.sh
+++ b/ci/scripts/check_circular_dependencies.sh
@@ -1,21 +1,7 @@
#!/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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
# Checks for circular dependencies between DataFusion crates, the same way the
# "Circular Dependency Check" job does.
diff --git a/ci/scripts/check_docs_html.sh b/ci/scripts/check_docs_html.sh
index 0d04afff13bce..ba2df21d19607 100755
--- a/ci/scripts/check_docs_html.sh
+++ b/ci/scripts/check_docs_html.sh
@@ -1,21 +1,7 @@
#!/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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
# Builds the documentation website with `docs/build.sh`, the same way the
# "Test doc build" job does. Sphinx runs with `-W`, so a warning fails the
diff --git a/ci/scripts/check_examples_docs.sh b/ci/scripts/check_examples_docs.sh
index d86edb1671516..1bdc79b9ec4b7 100755
--- a/ci/scripts/check_examples_docs.sh
+++ b/ci/scripts/check_examples_docs.sh
@@ -1,21 +1,7 @@
#!/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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
# Generates the examples README with the Rust generator and checks that the
# committed `datafusion-examples/README.md` matches it, the same way the
diff --git a/ci/scripts/check_generated_docs.sh b/ci/scripts/check_generated_docs.sh
index fc9d31c7453aa..5beccf2fcaf13 100755
--- a/ci/scripts/check_generated_docs.sh
+++ b/ci/scripts/check_generated_docs.sh
@@ -1,21 +1,7 @@
#!/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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
# Regenerates the configuration and function documentation pages and checks
# that the committed pages match, the same way the "check configs.md and
diff --git a/ci/scripts/check_large_files.sh b/ci/scripts/check_large_files.sh
index 3c562462179e9..7e7a10267d9e4 100755
--- a/ci/scripts/check_large_files.sh
+++ b/ci/scripts/check_large_files.sh
@@ -1,21 +1,7 @@
#!/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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
# Fails if any file committed between a base ref and a head ref is larger than
# the size limit, the same way the "Large files PR check" GitHub workflow does.
diff --git a/ci/scripts/check_no_cargo_install_in_workflows.sh b/ci/scripts/check_no_cargo_install_in_workflows.sh
index aa84b2cf8f366..df298af5f17b2 100755
--- a/ci/scripts/check_no_cargo_install_in_workflows.sh
+++ b/ci/scripts/check_no_cargo_install_in_workflows.sh
@@ -1,21 +1,7 @@
#!/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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
set -euo pipefail
diff --git a/ci/scripts/check_unused_dependencies.sh b/ci/scripts/check_unused_dependencies.sh
index 0221d50dfd8da..a6486003af59a 100755
--- a/ci/scripts/check_unused_dependencies.sh
+++ b/ci/scripts/check_unused_dependencies.sh
@@ -1,21 +1,7 @@
#!/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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
# Detects unused dependencies with `cargo machete`, the same way the
# "Detect Unused Dependencies" job does.
diff --git a/ci/scripts/doc_prettier_check.sh b/ci/scripts/doc_prettier_check.sh
index 95332eb65aaf2..3b7c5811a15fb 100755
--- a/ci/scripts/doc_prettier_check.sh
+++ b/ci/scripts/doc_prettier_check.sh
@@ -1,21 +1,7 @@
#!/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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
set -euo pipefail
diff --git a/ci/scripts/draft_inactive_prs.cjs b/ci/scripts/draft_inactive_prs.cjs
index 940eec2e8db30..5408d498e7a63 100644
--- a/ci/scripts/draft_inactive_prs.cjs
+++ b/ci/scripts/draft_inactive_prs.cjs
@@ -1,19 +1,6 @@
-// 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.
+// SPDX-License-Identifier: Apache-2.0
+// SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+// SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
const { setTimeout } = require("node:timers/promises");
diff --git a/ci/scripts/license_header.sh b/ci/scripts/license_header.sh
index 4894e4727a366..fabe818e6a2b5 100755
--- a/ci/scripts/license_header.sh
+++ b/ci/scripts/license_header.sh
@@ -1,21 +1,7 @@
#!/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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
set -euo pipefail
diff --git a/ci/scripts/markdown_link_check.sh b/ci/scripts/markdown_link_check.sh
index 65fede4111dd8..ed7bdeac584c2 100755
--- a/ci/scripts/markdown_link_check.sh
+++ b/ci/scripts/markdown_link_check.sh
@@ -1,21 +1,7 @@
#!/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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
set -euo pipefail
diff --git a/ci/scripts/release_version_labeler.js b/ci/scripts/release_version_labeler.js
index 78d17d5671e0a..38573bbd7cac9 100644
--- a/ci/scripts/release_version_labeler.js
+++ b/ci/scripts/release_version_labeler.js
@@ -1,19 +1,6 @@
-// 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.
+// SPDX-License-Identifier: Apache-2.0
+// SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+// SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
// Used by the release_version_labeler workflow
diff --git a/ci/scripts/rust_clippy.sh b/ci/scripts/rust_clippy.sh
index 29fa856d2e1cd..4ec93ccb34f49 100755
--- a/ci/scripts/rust_clippy.sh
+++ b/ci/scripts/rust_clippy.sh
@@ -1,21 +1,7 @@
#!/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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
set -euo pipefail
diff --git a/ci/scripts/rust_docs.sh b/ci/scripts/rust_docs.sh
index 91cc305f513ea..8ca180edfbfdc 100755
--- a/ci/scripts/rust_docs.sh
+++ b/ci/scripts/rust_docs.sh
@@ -1,21 +1,7 @@
#!/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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
# Note: cargo doc does not support an auto-fix mode; this script runs the check-only build.
set -ex
diff --git a/ci/scripts/rust_example.sh b/ci/scripts/rust_example.sh
index 7a5f7825b4e6d..f618a6a283804 100755
--- a/ci/scripts/rust_example.sh
+++ b/ci/scripts/rust_example.sh
@@ -1,21 +1,7 @@
#!/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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
set -e
diff --git a/ci/scripts/rust_fmt.sh b/ci/scripts/rust_fmt.sh
index 16c87cea5e0fa..cc79ec405a913 100755
--- a/ci/scripts/rust_fmt.sh
+++ b/ci/scripts/rust_fmt.sh
@@ -1,21 +1,7 @@
#!/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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
set -euo pipefail
diff --git a/ci/scripts/rust_toml_fmt.sh b/ci/scripts/rust_toml_fmt.sh
index b1f9373fbf9ee..79811837ad79d 100755
--- a/ci/scripts/rust_toml_fmt.sh
+++ b/ci/scripts/rust_toml_fmt.sh
@@ -1,21 +1,7 @@
#!/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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
set -euo pipefail
diff --git a/ci/scripts/security_audit.sh b/ci/scripts/security_audit.sh
index 8af5e5c0e2222..1a4479a373f4c 100755
--- a/ci/scripts/security_audit.sh
+++ b/ci/scripts/security_audit.sh
@@ -1,21 +1,7 @@
#!/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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
# Audits the root `Cargo.lock` with `cargo audit`, the same way the
# "Security audit" GitHub workflow does.
diff --git a/ci/scripts/test_cancel_merge_queue_runs.cjs b/ci/scripts/test_cancel_merge_queue_runs.cjs
index 64d91ed26f266..0b403d18fa33c 100755
--- a/ci/scripts/test_cancel_merge_queue_runs.cjs
+++ b/ci/scripts/test_cancel_merge_queue_runs.cjs
@@ -1,20 +1,7 @@
#!/usr/bin/env node
-// 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.
+// SPDX-License-Identifier: Apache-2.0
+// SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+// SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
const assert = require("node:assert/strict");
const { test } = require("node:test");
diff --git a/ci/scripts/test_fork_ci_status.cjs b/ci/scripts/test_fork_ci_status.cjs
index 46e55c1776941..43294fa1d2e9a 100755
--- a/ci/scripts/test_fork_ci_status.cjs
+++ b/ci/scripts/test_fork_ci_status.cjs
@@ -1,20 +1,7 @@
#!/usr/bin/env node
-// 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.
+// SPDX-License-Identifier: Apache-2.0
+// SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+// SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
// Test fork CI workflows with stubbed GitHub APIs. No API calls are made.
const assert = require("node:assert/strict");
diff --git a/ci/scripts/typos_check.sh b/ci/scripts/typos_check.sh
index a567c7b44e609..4f468c4ebacd6 100755
--- a/ci/scripts/typos_check.sh
+++ b/ci/scripts/typos_check.sh
@@ -1,21 +1,7 @@
#!/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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
set -euo pipefail
diff --git a/ci/scripts/utils/git.sh b/ci/scripts/utils/git.sh
index b5baecda758ce..7301056908bdb 100644
--- a/ci/scripts/utils/git.sh
+++ b/ci/scripts/utils/git.sh
@@ -1,21 +1,7 @@
#!/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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
# Ensure the repository is clean before auto-fixing files.
require_clean_work_tree() {
diff --git a/ci/scripts/utils/tool_versions.sh b/ci/scripts/utils/tool_versions.sh
index b0a514edd05ff..c8bf9949363cb 100644
--- a/ci/scripts/utils/tool_versions.sh
+++ b/ci/scripts/utils/tool_versions.sh
@@ -1,21 +1,7 @@
#!/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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
# This file defines centralized tool versions used by CI and development scripts.
# It is intended to be sourced by other scripts and should not be executed directly.
diff --git a/clippy.toml b/clippy.toml
index 7b781d9b6605f..3908ecb0679d1 100644
--- a/clippy.toml
+++ b/clippy.toml
@@ -1,3 +1,7 @@
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
+
disallowed-methods = [
{ path = "tokio::task::spawn", reason = "To provide cancel-safety, use `SpawnedTask::spawn` instead (https://github.com/apache/datafusion/issues/6513)" },
{ path = "tokio::task::spawn_blocking", reason = "To provide cancel-safety, use `SpawnedTask::spawn_blocking` instead (https://github.com/apache/datafusion/issues/6513)" },
diff --git a/datafusion-cli/CONTRIBUTING.md b/datafusion-cli/CONTRIBUTING.md
index fa615028a4ddd..c66ad110cedbe 100644
--- a/datafusion-cli/CONTRIBUTING.md
+++ b/datafusion-cli/CONTRIBUTING.md
@@ -1,20 +1,7 @@
-
# Development instructions
diff --git a/datafusion-cli/Cargo.toml b/datafusion-cli/Cargo.toml
index e80e4d5d0768c..dfcfe31645bb9 100644
--- a/datafusion-cli/Cargo.toml
+++ b/datafusion-cli/Cargo.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
[package]
name = "datafusion-cli"
diff --git a/datafusion-cli/Dockerfile b/datafusion-cli/Dockerfile
index 4da9390a2d7a6..0c015b6852ff4 100644
--- a/datafusion-cli/Dockerfile
+++ b/datafusion-cli/Dockerfile
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
FROM rust:bookworm AS builder
diff --git a/datafusion-cli/README.md b/datafusion-cli/README.md
index b34aa770374da..79488be842a82 100644
--- a/datafusion-cli/README.md
+++ b/datafusion-cli/README.md
@@ -1,20 +1,7 @@
-
diff --git a/datafusion-examples/Cargo.toml b/datafusion-examples/Cargo.toml
index 9b254969faaff..7244708f3706d 100644
--- a/datafusion-examples/Cargo.toml
+++ b/datafusion-examples/Cargo.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
[package]
name = "datafusion-examples"
diff --git a/datafusion-examples/README.md b/datafusion-examples/README.md
index 0cc6be9b448e5..737fcddc6c556 100644
--- a/datafusion-examples/README.md
+++ b/datafusion-examples/README.md
@@ -1,20 +1,7 @@
-
# DataFusion Examples
diff --git a/datafusion-examples/data/README.md b/datafusion-examples/data/README.md
index e8296a8856e60..ec131fbaa6a8c 100644
--- a/datafusion-examples/data/README.md
+++ b/datafusion-examples/data/README.md
@@ -1,20 +1,7 @@
-
## Example datasets
diff --git a/datafusion-examples/examples/ffi/README.md b/datafusion-examples/examples/ffi/README.md
index f29e0012f3180..e422c6cd9189d 100644
--- a/datafusion-examples/examples/ffi/README.md
+++ b/datafusion-examples/examples/ffi/README.md
@@ -1,20 +1,7 @@
-
# Example FFI Usage
diff --git a/datafusion-examples/examples/ffi/ffi_example_table_provider/Cargo.toml b/datafusion-examples/examples/ffi/ffi_example_table_provider/Cargo.toml
index 3cfa6dcf90f18..789aba3077d17 100644
--- a/datafusion-examples/examples/ffi/ffi_example_table_provider/Cargo.toml
+++ b/datafusion-examples/examples/ffi/ffi_example_table_provider/Cargo.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
[package]
name = "ffi_example_table_provider"
diff --git a/datafusion-examples/examples/ffi/ffi_module_interface/Cargo.toml b/datafusion-examples/examples/ffi/ffi_module_interface/Cargo.toml
index 0244cb2a5ed15..d3bcf6e89b4bd 100644
--- a/datafusion-examples/examples/ffi/ffi_module_interface/Cargo.toml
+++ b/datafusion-examples/examples/ffi/ffi_module_interface/Cargo.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
[package]
name = "ffi_module_interface"
diff --git a/datafusion-examples/examples/ffi/ffi_module_loader/Cargo.toml b/datafusion-examples/examples/ffi/ffi_module_loader/Cargo.toml
index e7b2dd19009b5..646bca72d08da 100644
--- a/datafusion-examples/examples/ffi/ffi_module_loader/Cargo.toml
+++ b/datafusion-examples/examples/ffi/ffi_module_loader/Cargo.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
[package]
name = "ffi_module_loader"
diff --git a/datafusion/CHANGELOG.md b/datafusion/CHANGELOG.md
index 71c6689c0cbd0..76bff23af2de2 100644
--- a/datafusion/CHANGELOG.md
+++ b/datafusion/CHANGELOG.md
@@ -1,20 +1,7 @@
-
# Changelog
diff --git a/datafusion/catalog-listing/Cargo.toml b/datafusion/catalog-listing/Cargo.toml
index abe58f45994be..a71791d430c9d 100644
--- a/datafusion/catalog-listing/Cargo.toml
+++ b/datafusion/catalog-listing/Cargo.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
[package]
name = "datafusion-catalog-listing"
diff --git a/datafusion/catalog-listing/README.md b/datafusion/catalog-listing/README.md
index 81a7c7b1da3ae..c1e1fb553d91e 100644
--- a/datafusion/catalog-listing/README.md
+++ b/datafusion/catalog-listing/README.md
@@ -1,20 +1,7 @@
-
# Apache DataFusion Catalog Listing
diff --git a/datafusion/catalog/Cargo.toml b/datafusion/catalog/Cargo.toml
index 1009e9aee477b..3d7443f62191e 100644
--- a/datafusion/catalog/Cargo.toml
+++ b/datafusion/catalog/Cargo.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
[package]
name = "datafusion-catalog"
diff --git a/datafusion/catalog/README.md b/datafusion/catalog/README.md
index 48c61b43c025b..b52db3d0c9fe0 100644
--- a/datafusion/catalog/README.md
+++ b/datafusion/catalog/README.md
@@ -1,20 +1,7 @@
-
# Apache DataFusion Catalog
diff --git a/datafusion/common-runtime/Cargo.toml b/datafusion/common-runtime/Cargo.toml
index fd9a818bcb1d0..f51fbb2216eea 100644
--- a/datafusion/common-runtime/Cargo.toml
+++ b/datafusion/common-runtime/Cargo.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
[package]
name = "datafusion-common-runtime"
diff --git a/datafusion/common-runtime/README.md b/datafusion/common-runtime/README.md
index ff44e6c3e209e..f67532ba49486 100644
--- a/datafusion/common-runtime/README.md
+++ b/datafusion/common-runtime/README.md
@@ -1,20 +1,7 @@
-
# Apache DataFusion Common Runtime
diff --git a/datafusion/common/Cargo.toml b/datafusion/common/Cargo.toml
index 9ee199fe82f28..7a73d1085294e 100644
--- a/datafusion/common/Cargo.toml
+++ b/datafusion/common/Cargo.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
[package]
name = "datafusion-common"
diff --git a/datafusion/common/README.md b/datafusion/common/README.md
index 4948c8c581be9..ea7336d18b889 100644
--- a/datafusion/common/README.md
+++ b/datafusion/common/README.md
@@ -1,20 +1,7 @@
-
# Apache DataFusion Common
diff --git a/datafusion/core/Cargo.toml b/datafusion/core/Cargo.toml
index af0002671a2eb..322a6a353fb93 100644
--- a/datafusion/core/Cargo.toml
+++ b/datafusion/core/Cargo.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
[package]
name = "datafusion"
diff --git a/datafusion/core/README.md b/datafusion/core/README.md
index 859fcb9c0dff9..e896fb837506b 100644
--- a/datafusion/core/README.md
+++ b/datafusion/core/README.md
@@ -1,20 +1,7 @@
-
## Built-in Optimizer Rules
diff --git a/datafusion/datasource-arrow/Cargo.toml b/datafusion/datasource-arrow/Cargo.toml
index 6f50135403d69..7e16d4f0f2001 100644
--- a/datafusion/datasource-arrow/Cargo.toml
+++ b/datafusion/datasource-arrow/Cargo.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
[package]
name = "datafusion-datasource-arrow"
diff --git a/datafusion/datasource-arrow/README.md b/datafusion/datasource-arrow/README.md
index 9901b52105dd4..8b65263215aa8 100644
--- a/datafusion/datasource-arrow/README.md
+++ b/datafusion/datasource-arrow/README.md
@@ -1,20 +1,7 @@
-
# Apache DataFusion Arrow DataSource
diff --git a/datafusion/datasource-avro/Cargo.toml b/datafusion/datasource-avro/Cargo.toml
index 63e949e21def9..2b147685186ff 100644
--- a/datafusion/datasource-avro/Cargo.toml
+++ b/datafusion/datasource-avro/Cargo.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
[package]
name = "datafusion-datasource-avro"
diff --git a/datafusion/datasource-avro/README.md b/datafusion/datasource-avro/README.md
index e9b8affe60e36..727fdcdd59926 100644
--- a/datafusion/datasource-avro/README.md
+++ b/datafusion/datasource-avro/README.md
@@ -1,20 +1,7 @@
-
# Apache DataFusion Avro DataSource
diff --git a/datafusion/datasource-csv/Cargo.toml b/datafusion/datasource-csv/Cargo.toml
index 7e7195dfda9d5..be178436fb2bc 100644
--- a/datafusion/datasource-csv/Cargo.toml
+++ b/datafusion/datasource-csv/Cargo.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
[package]
name = "datafusion-datasource-csv"
diff --git a/datafusion/datasource-csv/README.md b/datafusion/datasource-csv/README.md
index 8bdadd0fe2c13..15a0381b3037a 100644
--- a/datafusion/datasource-csv/README.md
+++ b/datafusion/datasource-csv/README.md
@@ -1,20 +1,7 @@
-
# Apache DataFusion CSV DataSource
diff --git a/datafusion/datasource-json/Cargo.toml b/datafusion/datasource-json/Cargo.toml
index 04192083f583a..b1c7cc006d96e 100644
--- a/datafusion/datasource-json/Cargo.toml
+++ b/datafusion/datasource-json/Cargo.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
[package]
name = "datafusion-datasource-json"
diff --git a/datafusion/datasource-json/README.md b/datafusion/datasource-json/README.md
index ca2771b9d67e4..aa72e2aba345a 100644
--- a/datafusion/datasource-json/README.md
+++ b/datafusion/datasource-json/README.md
@@ -1,20 +1,7 @@
-
# Apache DataFusion JSON DataSource
diff --git a/datafusion/datasource-parquet/Cargo.toml b/datafusion/datasource-parquet/Cargo.toml
index a2589af19a6ee..5adb410cff95d 100644
--- a/datafusion/datasource-parquet/Cargo.toml
+++ b/datafusion/datasource-parquet/Cargo.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
[package]
name = "datafusion-datasource-parquet"
diff --git a/datafusion/datasource-parquet/README.md b/datafusion/datasource-parquet/README.md
index 833fc74a258b3..5024c6307d464 100644
--- a/datafusion/datasource-parquet/README.md
+++ b/datafusion/datasource-parquet/README.md
@@ -1,20 +1,7 @@
-
# Apache DataFusion Parquet DataSource
diff --git a/datafusion/datasource/Cargo.toml b/datafusion/datasource/Cargo.toml
index dd4111cf958e8..baccac20e01c7 100644
--- a/datafusion/datasource/Cargo.toml
+++ b/datafusion/datasource/Cargo.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
[package]
name = "datafusion-datasource"
diff --git a/datafusion/datasource/README.md b/datafusion/datasource/README.md
index cf0bb7547c078..801e1e3a4aa78 100644
--- a/datafusion/datasource/README.md
+++ b/datafusion/datasource/README.md
@@ -1,20 +1,7 @@
-
# Apache DataFusion DataSource
diff --git a/datafusion/doc/Cargo.toml b/datafusion/doc/Cargo.toml
index c1368c1531533..f41f8b3a2193a 100644
--- a/datafusion/doc/Cargo.toml
+++ b/datafusion/doc/Cargo.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
[package]
name = "datafusion-doc"
diff --git a/datafusion/doc/README.md b/datafusion/doc/README.md
index f137a273e31ab..e43c44681c5f9 100644
--- a/datafusion/doc/README.md
+++ b/datafusion/doc/README.md
@@ -1,20 +1,7 @@
-
# Apache DataFusion Documentation
diff --git a/datafusion/execution/Cargo.toml b/datafusion/execution/Cargo.toml
index c9d4acd3644ba..eec8b99f99495 100644
--- a/datafusion/execution/Cargo.toml
+++ b/datafusion/execution/Cargo.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
[package]
name = "datafusion-execution"
diff --git a/datafusion/execution/README.md b/datafusion/execution/README.md
index 5b1528b0daab9..fcbd57b372510 100644
--- a/datafusion/execution/README.md
+++ b/datafusion/execution/README.md
@@ -1,20 +1,7 @@
-
# Apache DataFusion Execution
diff --git a/datafusion/expr-common/Cargo.toml b/datafusion/expr-common/Cargo.toml
index 026c1e0bc316b..ff856dd8401ed 100644
--- a/datafusion/expr-common/Cargo.toml
+++ b/datafusion/expr-common/Cargo.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
[package]
name = "datafusion-expr-common"
diff --git a/datafusion/expr-common/README.md b/datafusion/expr-common/README.md
index 97006702542a0..c4475d50a3c59 100644
--- a/datafusion/expr-common/README.md
+++ b/datafusion/expr-common/README.md
@@ -1,20 +1,7 @@
-
# Apache DataFusion Common Logical Plan and Expressions
diff --git a/datafusion/expr/Cargo.toml b/datafusion/expr/Cargo.toml
index 0a0d9cb96c858..0da327c143485 100644
--- a/datafusion/expr/Cargo.toml
+++ b/datafusion/expr/Cargo.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
[package]
name = "datafusion-expr"
diff --git a/datafusion/expr/README.md b/datafusion/expr/README.md
index b3ab9a383dbbd..d19a1526ea5fb 100644
--- a/datafusion/expr/README.md
+++ b/datafusion/expr/README.md
@@ -1,20 +1,7 @@
-
# Apache DataFusion Logical Plan and Expressions
diff --git a/datafusion/ffi/Cargo.toml b/datafusion/ffi/Cargo.toml
index c0b141ed7f840..9cec8a049628e 100644
--- a/datafusion/ffi/Cargo.toml
+++ b/datafusion/ffi/Cargo.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
[package]
name = "datafusion-ffi"
diff --git a/datafusion/ffi/README.md b/datafusion/ffi/README.md
index ded54b0a88d09..dae140904f966 100644
--- a/datafusion/ffi/README.md
+++ b/datafusion/ffi/README.md
@@ -1,20 +1,7 @@
-
# Apache DataFusion Foreign Function Interface
diff --git a/datafusion/ffi/integration-tests/Cargo.toml b/datafusion/ffi/integration-tests/Cargo.toml
index 7edd5215c5364..5c94315210497 100644
--- a/datafusion/ffi/integration-tests/Cargo.toml
+++ b/datafusion/ffi/integration-tests/Cargo.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
[package]
name = "datafusion-ffi-integration-tests"
diff --git a/datafusion/functions-aggregate-common/Cargo.toml b/datafusion/functions-aggregate-common/Cargo.toml
index 463034d4d6de3..d2e2aea3bfded 100644
--- a/datafusion/functions-aggregate-common/Cargo.toml
+++ b/datafusion/functions-aggregate-common/Cargo.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
[package]
name = "datafusion-functions-aggregate-common"
diff --git a/datafusion/functions-aggregate-common/README.md b/datafusion/functions-aggregate-common/README.md
index 3d52aa722033a..8c2b4fd5d02d2 100644
--- a/datafusion/functions-aggregate-common/README.md
+++ b/datafusion/functions-aggregate-common/README.md
@@ -1,20 +1,7 @@
-
# Apache DataFusion Aggregate Function Common Library
diff --git a/datafusion/functions-aggregate/COMMENTS.md b/datafusion/functions-aggregate/COMMENTS.md
index 1cb4cdd7d5a45..068e7c9ae7d60 100644
--- a/datafusion/functions-aggregate/COMMENTS.md
+++ b/datafusion/functions-aggregate/COMMENTS.md
@@ -1,20 +1,7 @@
-
# Why Is List Item Always Nullable?
diff --git a/datafusion/functions-aggregate/Cargo.toml b/datafusion/functions-aggregate/Cargo.toml
index ead59720d216e..4cb08941e9014 100644
--- a/datafusion/functions-aggregate/Cargo.toml
+++ b/datafusion/functions-aggregate/Cargo.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
[package]
name = "datafusion-functions-aggregate"
diff --git a/datafusion/functions-aggregate/README.md b/datafusion/functions-aggregate/README.md
index aa50eaeedae03..bc5dafcf56246 100644
--- a/datafusion/functions-aggregate/README.md
+++ b/datafusion/functions-aggregate/README.md
@@ -1,20 +1,7 @@
-
# Apache DataFusion Aggregate Function Library
diff --git a/datafusion/functions-nested/Cargo.toml b/datafusion/functions-nested/Cargo.toml
index 80b94a0e12bfd..049325755a3f4 100644
--- a/datafusion/functions-nested/Cargo.toml
+++ b/datafusion/functions-nested/Cargo.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
[package]
name = "datafusion-functions-nested"
diff --git a/datafusion/functions-nested/README.md b/datafusion/functions-nested/README.md
index 6ab456edb1925..0dcf0e19eb08c 100644
--- a/datafusion/functions-nested/README.md
+++ b/datafusion/functions-nested/README.md
@@ -1,20 +1,7 @@
-
# Apache DataFusion Nested Type Function Library
diff --git a/datafusion/functions-table/Cargo.toml b/datafusion/functions-table/Cargo.toml
index 11015e5ed5195..581b6e5e63129 100644
--- a/datafusion/functions-table/Cargo.toml
+++ b/datafusion/functions-table/Cargo.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
[package]
name = "datafusion-functions-table"
diff --git a/datafusion/functions-table/README.md b/datafusion/functions-table/README.md
index 89f589a9584c5..785df5a7349b5 100644
--- a/datafusion/functions-table/README.md
+++ b/datafusion/functions-table/README.md
@@ -1,20 +1,7 @@
-
# Apache DataFusion Table Function Library
diff --git a/datafusion/functions-window-common/Cargo.toml b/datafusion/functions-window-common/Cargo.toml
index 6af668c1459e8..f27c54372394b 100644
--- a/datafusion/functions-window-common/Cargo.toml
+++ b/datafusion/functions-window-common/Cargo.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
[package]
name = "datafusion-functions-window-common"
diff --git a/datafusion/functions-window-common/README.md b/datafusion/functions-window-common/README.md
index f2e45880724e0..270cdb8ca3ff0 100644
--- a/datafusion/functions-window-common/README.md
+++ b/datafusion/functions-window-common/README.md
@@ -1,20 +1,7 @@
-
# Apache DataFusion Window Function Common Library
diff --git a/datafusion/functions-window/Cargo.toml b/datafusion/functions-window/Cargo.toml
index 9c4342adae8fd..a9a8ea9a0957f 100644
--- a/datafusion/functions-window/Cargo.toml
+++ b/datafusion/functions-window/Cargo.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
[package]
name = "datafusion-functions-window"
diff --git a/datafusion/functions-window/README.md b/datafusion/functions-window/README.md
index f2bb9f53f5307..3729d02252c93 100644
--- a/datafusion/functions-window/README.md
+++ b/datafusion/functions-window/README.md
@@ -1,20 +1,7 @@
-
# Apache DataFusion Window Function Library
diff --git a/datafusion/functions/Cargo.toml b/datafusion/functions/Cargo.toml
index e3906760f7562..f9004288b603c 100644
--- a/datafusion/functions/Cargo.toml
+++ b/datafusion/functions/Cargo.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
[package]
name = "datafusion-functions"
diff --git a/datafusion/functions/README.md b/datafusion/functions/README.md
index dee1330422727..9481c9aa098d7 100644
--- a/datafusion/functions/README.md
+++ b/datafusion/functions/README.md
@@ -1,20 +1,7 @@
-
# Apache DataFusion Function Library
diff --git a/datafusion/macros/Cargo.toml b/datafusion/macros/Cargo.toml
index d5ab6a8fff624..2b15bfd1795e1 100644
--- a/datafusion/macros/Cargo.toml
+++ b/datafusion/macros/Cargo.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
[package]
name = "datafusion-macros"
diff --git a/datafusion/macros/README.md b/datafusion/macros/README.md
index c45bba1423fc2..d00f9aa66dcfe 100644
--- a/datafusion/macros/README.md
+++ b/datafusion/macros/README.md
@@ -1,20 +1,7 @@
-
# Apache DataFusion Macros
diff --git a/datafusion/optimizer/Cargo.toml b/datafusion/optimizer/Cargo.toml
index e74bffee26848..55b1486a405b4 100644
--- a/datafusion/optimizer/Cargo.toml
+++ b/datafusion/optimizer/Cargo.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
[package]
name = "datafusion-optimizer"
diff --git a/datafusion/optimizer/README.md b/datafusion/optimizer/README.md
index a95ec4828b35e..00d47a00fb428 100644
--- a/datafusion/optimizer/README.md
+++ b/datafusion/optimizer/README.md
@@ -1,20 +1,7 @@
-
# Apache DataFusion Optimizer
diff --git a/datafusion/physical-expr-adapter/Cargo.toml b/datafusion/physical-expr-adapter/Cargo.toml
index fef92203d90eb..24bf379befdb1 100644
--- a/datafusion/physical-expr-adapter/Cargo.toml
+++ b/datafusion/physical-expr-adapter/Cargo.toml
@@ -1,3 +1,7 @@
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
+
[package]
name = "datafusion-physical-expr-adapter"
description = "Physical expression schema adaptation utilities for DataFusion"
diff --git a/datafusion/physical-expr-adapter/README.md b/datafusion/physical-expr-adapter/README.md
index 02bc144c16f34..df7d40f34b521 100644
--- a/datafusion/physical-expr-adapter/README.md
+++ b/datafusion/physical-expr-adapter/README.md
@@ -1,20 +1,7 @@
-
# Apache DataFusion Physical Expression Adapter
diff --git a/datafusion/physical-expr-common/Cargo.toml b/datafusion/physical-expr-common/Cargo.toml
index a4f8ebf91baee..0ed6b10e8cd9a 100644
--- a/datafusion/physical-expr-common/Cargo.toml
+++ b/datafusion/physical-expr-common/Cargo.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
[package]
name = "datafusion-physical-expr-common"
diff --git a/datafusion/physical-expr-common/README.md b/datafusion/physical-expr-common/README.md
index c318e7468183f..00ba58ca2372c 100644
--- a/datafusion/physical-expr-common/README.md
+++ b/datafusion/physical-expr-common/README.md
@@ -1,20 +1,7 @@
-
# Apache DataFusion Core Physical Expressions
diff --git a/datafusion/physical-expr/Cargo.toml b/datafusion/physical-expr/Cargo.toml
index 858dd86b7790d..104587075f909 100644
--- a/datafusion/physical-expr/Cargo.toml
+++ b/datafusion/physical-expr/Cargo.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
[package]
name = "datafusion-physical-expr"
diff --git a/datafusion/physical-expr/README.md b/datafusion/physical-expr/README.md
index 4c79223b09b8c..376d6ce803d02 100644
--- a/datafusion/physical-expr/README.md
+++ b/datafusion/physical-expr/README.md
@@ -1,20 +1,7 @@
-
# Apache DataFusion Physical Expressions
diff --git a/datafusion/physical-optimizer/Cargo.toml b/datafusion/physical-optimizer/Cargo.toml
index 7a9cb12b591ff..6889349e07789 100644
--- a/datafusion/physical-optimizer/Cargo.toml
+++ b/datafusion/physical-optimizer/Cargo.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
[package]
name = "datafusion-physical-optimizer"
diff --git a/datafusion/physical-optimizer/README.md b/datafusion/physical-optimizer/README.md
index 3efbc19d2e724..584bb44bfd183 100644
--- a/datafusion/physical-optimizer/README.md
+++ b/datafusion/physical-optimizer/README.md
@@ -1,20 +1,7 @@
-
# Apache DataFusion Physical Optimizer
diff --git a/datafusion/physical-plan/Cargo.toml b/datafusion/physical-plan/Cargo.toml
index 82a2215581f22..e93f37c2310d7 100644
--- a/datafusion/physical-plan/Cargo.toml
+++ b/datafusion/physical-plan/Cargo.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
[package]
name = "datafusion-physical-plan"
diff --git a/datafusion/physical-plan/README.md b/datafusion/physical-plan/README.md
index 3a33100f2f350..4496d99f14f0e 100644
--- a/datafusion/physical-plan/README.md
+++ b/datafusion/physical-plan/README.md
@@ -1,20 +1,7 @@
-
# Apache DataFusion Physical Plan
diff --git a/datafusion/proto-common/.gitignore b/datafusion/proto-common/.gitignore
index cfa46f072b0b6..ef021b1b7ae2a 100644
--- a/datafusion/proto-common/.gitignore
+++ b/datafusion/proto-common/.gitignore
@@ -1,3 +1,7 @@
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
+
# Files generated by regen.sh
proto/proto_descriptor.bin
src/datafusion_common.rs
diff --git a/datafusion/proto-common/Cargo.toml b/datafusion/proto-common/Cargo.toml
index 0670d7cbf757f..c0e2b19199159 100644
--- a/datafusion/proto-common/Cargo.toml
+++ b/datafusion/proto-common/Cargo.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
[package]
name = "datafusion-proto-common"
diff --git a/datafusion/proto-common/README.md b/datafusion/proto-common/README.md
index 9c4aa707b0ea6..4ab95fc599d60 100644
--- a/datafusion/proto-common/README.md
+++ b/datafusion/proto-common/README.md
@@ -1,20 +1,7 @@
-
# Apache DataFusion Protobuf Common Serialization / Deserialization
diff --git a/datafusion/proto-common/gen/Cargo.toml b/datafusion/proto-common/gen/Cargo.toml
index 0cbba311b2c3f..e5a9df5f55861 100644
--- a/datafusion/proto-common/gen/Cargo.toml
+++ b/datafusion/proto-common/gen/Cargo.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
[package]
name = "gen-common"
diff --git a/datafusion/proto-common/proto/datafusion_common.proto b/datafusion/proto-common/proto/datafusion_common.proto
index 25d23ff81b7e5..49070439c3d8f 100644
--- a/datafusion/proto-common/proto/datafusion_common.proto
+++ b/datafusion/proto-common/proto/datafusion_common.proto
@@ -1,19 +1,6 @@
-// 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.
+// SPDX-License-Identifier: Apache-2.0
+// SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+// SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
syntax = "proto3";
diff --git a/datafusion/proto-common/regen.sh b/datafusion/proto-common/regen.sh
index 2a5554b8752f9..e8cd5007fc91c 100755
--- a/datafusion/proto-common/regen.sh
+++ b/datafusion/proto-common/regen.sh
@@ -1,21 +1,7 @@
#!/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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd "$SCRIPT_DIR" && cargo run --manifest-path gen/Cargo.toml
diff --git a/datafusion/proto-common/src/generated/mod.rs b/datafusion/proto-common/src/generated/mod.rs
index 790410b0bcdbc..4dcdb0874d91c 100644
--- a/datafusion/proto-common/src/generated/mod.rs
+++ b/datafusion/proto-common/src/generated/mod.rs
@@ -1,19 +1,6 @@
-// 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.
+// SPDX-License-Identifier: Apache-2.0
+// SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+// SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
// This code is generated so we don't want to fix any lint violations manually
#[allow(clippy::allow_attributes)]
diff --git a/datafusion/proto-models/.gitignore b/datafusion/proto-models/.gitignore
index 662b95f238c24..fd38c9c72e9a4 100644
--- a/datafusion/proto-models/.gitignore
+++ b/datafusion/proto-models/.gitignore
@@ -1,3 +1,7 @@
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
+
# Files generated by regen.sh
proto/proto_descriptor.bin
src/datafusion.rs
diff --git a/datafusion/proto-models/Cargo.toml b/datafusion/proto-models/Cargo.toml
index 693cd8c02c351..c492219f000ed 100644
--- a/datafusion/proto-models/Cargo.toml
+++ b/datafusion/proto-models/Cargo.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
[package]
name = "datafusion-proto-models"
diff --git a/datafusion/proto-models/README.md b/datafusion/proto-models/README.md
index 6b3b4ba9a2f49..777909a0e9f12 100644
--- a/datafusion/proto-models/README.md
+++ b/datafusion/proto-models/README.md
@@ -1,20 +1,7 @@
-
# Apache DataFusion Protobuf Models
diff --git a/datafusion/proto-models/gen/Cargo.toml b/datafusion/proto-models/gen/Cargo.toml
index 9724b63cccf3c..f6dc56617329e 100644
--- a/datafusion/proto-models/gen/Cargo.toml
+++ b/datafusion/proto-models/gen/Cargo.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
[package]
name = "gen"
diff --git a/datafusion/proto-models/proto/datafusion.proto b/datafusion/proto-models/proto/datafusion.proto
index 6132dee5a94a2..e16efc9999419 100644
--- a/datafusion/proto-models/proto/datafusion.proto
+++ b/datafusion/proto-models/proto/datafusion.proto
@@ -1,19 +1,6 @@
-// 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.
+// SPDX-License-Identifier: Apache-2.0
+// SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+// SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
syntax = "proto3";
diff --git a/datafusion/proto-models/regen.sh b/datafusion/proto-models/regen.sh
index 4bb07a1f32228..bf5292e97f704 100755
--- a/datafusion/proto-models/regen.sh
+++ b/datafusion/proto-models/regen.sh
@@ -1,21 +1,7 @@
#!/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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
repo_root=$(git rev-parse --show-toplevel)
cd "$repo_root" && cargo run --manifest-path datafusion/proto-models/gen/Cargo.toml
diff --git a/datafusion/proto-models/src/generated/mod.rs b/datafusion/proto-models/src/generated/mod.rs
index 0ea12c1c6256b..6ba16cfd34453 100644
--- a/datafusion/proto-models/src/generated/mod.rs
+++ b/datafusion/proto-models/src/generated/mod.rs
@@ -1,19 +1,6 @@
-// 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.
+// SPDX-License-Identifier: Apache-2.0
+// SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+// SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
// This code is generated so we don't want to fix any lint violations manually
#[allow(clippy::allow_attributes)]
diff --git a/datafusion/proto/.gitignore b/datafusion/proto/.gitignore
index 662b95f238c24..fd38c9c72e9a4 100644
--- a/datafusion/proto/.gitignore
+++ b/datafusion/proto/.gitignore
@@ -1,3 +1,7 @@
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
+
# Files generated by regen.sh
proto/proto_descriptor.bin
src/datafusion.rs
diff --git a/datafusion/proto/CONTRIBUTING.md b/datafusion/proto/CONTRIBUTING.md
index b0e74e89ed2c4..d71dc32e1c859 100644
--- a/datafusion/proto/CONTRIBUTING.md
+++ b/datafusion/proto/CONTRIBUTING.md
@@ -1,20 +1,7 @@
-
## Generated Code
diff --git a/datafusion/proto/Cargo.toml b/datafusion/proto/Cargo.toml
index 2d678faba1b56..a25648d907a56 100644
--- a/datafusion/proto/Cargo.toml
+++ b/datafusion/proto/Cargo.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
[package]
name = "datafusion-proto"
diff --git a/datafusion/proto/README.md b/datafusion/proto/README.md
index 11d9101e71b62..d69013e8c14f3 100644
--- a/datafusion/proto/README.md
+++ b/datafusion/proto/README.md
@@ -1,20 +1,7 @@
-
# Apache DataFusion Protobuf Serialization / Deserialization
diff --git a/datafusion/proto/regen.sh b/datafusion/proto/regen.sh
index c4bcea9ff5408..9895026ac15c1 100755
--- a/datafusion/proto/regen.sh
+++ b/datafusion/proto/regen.sh
@@ -1,21 +1,7 @@
#!/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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
# The proto schema and code generation now live in `datafusion-proto-models`.
# This script is kept as a convenience wrapper.
diff --git a/datafusion/pruning/Cargo.toml b/datafusion/pruning/Cargo.toml
index 48b1ed009b28c..0d6e6e49c01d0 100644
--- a/datafusion/pruning/Cargo.toml
+++ b/datafusion/pruning/Cargo.toml
@@ -1,3 +1,7 @@
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
+
[package]
name = "datafusion-pruning"
description = "DataFusion Pruning Logic"
diff --git a/datafusion/pruning/README.md b/datafusion/pruning/README.md
index 4db509193d172..92e90356ec547 100644
--- a/datafusion/pruning/README.md
+++ b/datafusion/pruning/README.md
@@ -1,20 +1,7 @@
-
# Apache DataFusion Pruning Logic
diff --git a/datafusion/session/Cargo.toml b/datafusion/session/Cargo.toml
index e6c277a8b8493..481bae0719689 100644
--- a/datafusion/session/Cargo.toml
+++ b/datafusion/session/Cargo.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
[package]
name = "datafusion-session"
diff --git a/datafusion/session/README.md b/datafusion/session/README.md
index 72a693e81deb4..664a70f27fcb1 100644
--- a/datafusion/session/README.md
+++ b/datafusion/session/README.md
@@ -1,20 +1,7 @@
-
# Apache DataFusion Session
diff --git a/datafusion/spark/Cargo.toml b/datafusion/spark/Cargo.toml
index c7aee8691fa68..3c82dbb9c80c5 100644
--- a/datafusion/spark/Cargo.toml
+++ b/datafusion/spark/Cargo.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
[package]
name = "datafusion-spark"
diff --git a/datafusion/spark/README.md b/datafusion/spark/README.md
index 4a63111e7e57c..b0ac7bda6421c 100644
--- a/datafusion/spark/README.md
+++ b/datafusion/spark/README.md
@@ -1,20 +1,7 @@
# Apache DataFusion Spark-compatible Expressions
diff --git a/datafusion/sql/Cargo.toml b/datafusion/sql/Cargo.toml
index 4b4e74b22ea72..764e63b611b12 100644
--- a/datafusion/sql/Cargo.toml
+++ b/datafusion/sql/Cargo.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
[package]
name = "datafusion-sql"
diff --git a/datafusion/sql/README.md b/datafusion/sql/README.md
index d0e5e498e514c..e2713fa6721dc 100644
--- a/datafusion/sql/README.md
+++ b/datafusion/sql/README.md
@@ -1,20 +1,7 @@
-
# Apache DataFusion SQL Query Planner
diff --git a/datafusion/sqllogictest/.gitignore b/datafusion/sqllogictest/.gitignore
index e90171b0acca2..d2a53df8fdd5a 100644
--- a/datafusion/sqllogictest/.gitignore
+++ b/datafusion/sqllogictest/.gitignore
@@ -1,2 +1,6 @@
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
+
*.py
test_files/tpch/data
\ No newline at end of file
diff --git a/datafusion/sqllogictest/Cargo.toml b/datafusion/sqllogictest/Cargo.toml
index c43f78f846092..3b034afa91f75 100644
--- a/datafusion/sqllogictest/Cargo.toml
+++ b/datafusion/sqllogictest/Cargo.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
[package]
authors = { workspace = true }
diff --git a/datafusion/sqllogictest/README.md b/datafusion/sqllogictest/README.md
index 2df4f870e3c1b..5f86145dbc736 100644
--- a/datafusion/sqllogictest/README.md
+++ b/datafusion/sqllogictest/README.md
@@ -1,20 +1,7 @@
-
# Apache DataFusion sqllogictest
diff --git a/datafusion/sqllogictest/regenerate_sqlite_files.sh b/datafusion/sqllogictest/regenerate_sqlite_files.sh
index 615b910680596..bd0f8868223f5 100755
--- a/datafusion/sqllogictest/regenerate_sqlite_files.sh
+++ b/datafusion/sqllogictest/regenerate_sqlite_files.sh
@@ -1,22 +1,7 @@
#!/bin/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.
-#
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
echo "This script is experimental! Please read the following completely to understand
what this script does before running it.
diff --git a/datafusion/sqllogictest/test_files/array/cleanup.slt.part b/datafusion/sqllogictest/test_files/array/cleanup.slt.part
index eff5d17acf37f..870af89da7096 100644
--- a/datafusion/sqllogictest/test_files/array/cleanup.slt.part
+++ b/datafusion/sqllogictest/test_files/array/cleanup.slt.part
@@ -1,3 +1,7 @@
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
+
### Delete tables
statement ok
diff --git a/datafusion/sqllogictest/test_files/array/init_data.slt.part b/datafusion/sqllogictest/test_files/array/init_data.slt.part
index b86524b4523f2..8f7d6d0875037 100644
--- a/datafusion/sqllogictest/test_files/array/init_data.slt.part
+++ b/datafusion/sqllogictest/test_files/array/init_data.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
#############
## Array Expressions Tests
diff --git a/datafusion/sqllogictest/test_files/join.slt.part b/datafusion/sqllogictest/test_files/join.slt.part
index d44cd11e7b0c7..c3096b8945a9b 100644
--- a/datafusion/sqllogictest/test_files/join.slt.part
+++ b/datafusion/sqllogictest/test_files/join.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
##########
## Join Tests
diff --git a/datafusion/sqllogictest/test_files/min_max/init_data.slt.part b/datafusion/sqllogictest/test_files/min_max/init_data.slt.part
index 57e14f6993d46..a3ac8a5a58183 100644
--- a/datafusion/sqllogictest/test_files/min_max/init_data.slt.part
+++ b/datafusion/sqllogictest/test_files/min_max/init_data.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
# --------------------------------------
# 1. Min/Max over integers
diff --git a/datafusion/sqllogictest/test_files/min_max/queries.slt.part b/datafusion/sqllogictest/test_files/min_max/queries.slt.part
index bc7fb840bf977..ca35b011360bc 100644
--- a/datafusion/sqllogictest/test_files/min_max/queries.slt.part
+++ b/datafusion/sqllogictest/test_files/min_max/queries.slt.part
@@ -1,20 +1,6 @@
-# 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.
-
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
## 1. Min/Max List over integers
query ??
diff --git a/datafusion/sqllogictest/test_files/regexp/README.md b/datafusion/sqllogictest/test_files/regexp/README.md
index 7e5efc5b5ddf2..20536118d18a0 100644
--- a/datafusion/sqllogictest/test_files/regexp/README.md
+++ b/datafusion/sqllogictest/test_files/regexp/README.md
@@ -1,20 +1,7 @@
-
# Regexp Test Files
diff --git a/datafusion/sqllogictest/test_files/regexp/init_data.slt.part b/datafusion/sqllogictest/test_files/regexp/init_data.slt.part
index ed6fb0e872df9..101207d6013da 100644
--- a/datafusion/sqllogictest/test_files/regexp/init_data.slt.part
+++ b/datafusion/sqllogictest/test_files/regexp/init_data.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
statement ok
create table regexp_test_data (str varchar, pattern varchar, start int, flags varchar) as values
diff --git a/datafusion/sqllogictest/test_files/spark/README.md b/datafusion/sqllogictest/test_files/spark/README.md
index a4550213fa679..1f306a29c9f59 100644
--- a/datafusion/sqllogictest/test_files/spark/README.md
+++ b/datafusion/sqllogictest/test_files/spark/README.md
@@ -1,20 +1,7 @@
-
# Spark Test Files
diff --git a/datafusion/sqllogictest/test_files/string/README.md b/datafusion/sqllogictest/test_files/string/README.md
index 8693ef16f9d79..7a09bc572c788 100644
--- a/datafusion/sqllogictest/test_files/string/README.md
+++ b/datafusion/sqllogictest/test_files/string/README.md
@@ -1,20 +1,7 @@
-
# String Test Files
diff --git a/datafusion/sqllogictest/test_files/string/init_data.slt.part b/datafusion/sqllogictest/test_files/string/init_data.slt.part
index 7799dd605b907..f940b8623c66c 100644
--- a/datafusion/sqllogictest/test_files/string/init_data.slt.part
+++ b/datafusion/sqllogictest/test_files/string/init_data.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
statement ok
create table test_source as values
diff --git a/datafusion/sqllogictest/test_files/string/string_query.slt.part b/datafusion/sqllogictest/test_files/string/string_query.slt.part
index dcddf06b557ed..730de665318ca 100644
--- a/datafusion/sqllogictest/test_files/string/string_query.slt.part
+++ b/datafusion/sqllogictest/test_files/string/string_query.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
# This file is intended to be run with tables already defined
# with standard values, but different types in string columns
diff --git a/datafusion/sqllogictest/test_files/tpch/answers/q1.slt.part b/datafusion/sqllogictest/test_files/tpch/answers/q1.slt.part
index 3a588deb03403..f43adfe08cacf 100644
--- a/datafusion/sqllogictest/test_files/tpch/answers/q1.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/answers/q1.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
query TTRRRRRRRI
select
diff --git a/datafusion/sqllogictest/test_files/tpch/answers/q10.slt.part b/datafusion/sqllogictest/test_files/tpch/answers/q10.slt.part
index fe30a6869ac3e..652207e430710 100644
--- a/datafusion/sqllogictest/test_files/tpch/answers/q10.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/answers/q10.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
query ITRRTTTT
select
diff --git a/datafusion/sqllogictest/test_files/tpch/answers/q11.slt.part b/datafusion/sqllogictest/test_files/tpch/answers/q11.slt.part
index 3a6056c6c8cee..ca1de655ba930 100644
--- a/datafusion/sqllogictest/test_files/tpch/answers/q11.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/answers/q11.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
query IR
select
diff --git a/datafusion/sqllogictest/test_files/tpch/answers/q12.slt.part b/datafusion/sqllogictest/test_files/tpch/answers/q12.slt.part
index da1f8ec8b5100..989bbaa823063 100644
--- a/datafusion/sqllogictest/test_files/tpch/answers/q12.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/answers/q12.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
query TII
select
diff --git a/datafusion/sqllogictest/test_files/tpch/answers/q13.slt.part b/datafusion/sqllogictest/test_files/tpch/answers/q13.slt.part
index 17008e960dcd9..daab86797c6e2 100644
--- a/datafusion/sqllogictest/test_files/tpch/answers/q13.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/answers/q13.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
query II
select
diff --git a/datafusion/sqllogictest/test_files/tpch/answers/q14.slt.part b/datafusion/sqllogictest/test_files/tpch/answers/q14.slt.part
index 26a474c91021a..773fe341617f7 100644
--- a/datafusion/sqllogictest/test_files/tpch/answers/q14.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/answers/q14.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
query R
select
diff --git a/datafusion/sqllogictest/test_files/tpch/answers/q15.slt.part b/datafusion/sqllogictest/test_files/tpch/answers/q15.slt.part
index fdeb014a1c12f..fc2cb82ccd530 100644
--- a/datafusion/sqllogictest/test_files/tpch/answers/q15.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/answers/q15.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
query ITTTR
with revenue0 (supplier_no, total_revenue) as (
diff --git a/datafusion/sqllogictest/test_files/tpch/answers/q16.slt.part b/datafusion/sqllogictest/test_files/tpch/answers/q16.slt.part
index 2392a5667d9cc..879ecf7f8973f 100644
--- a/datafusion/sqllogictest/test_files/tpch/answers/q16.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/answers/q16.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
query TTII
select
diff --git a/datafusion/sqllogictest/test_files/tpch/answers/q17.slt.part b/datafusion/sqllogictest/test_files/tpch/answers/q17.slt.part
index 92c88241923cc..0c44aac30e509 100644
--- a/datafusion/sqllogictest/test_files/tpch/answers/q17.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/answers/q17.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
query R
select
diff --git a/datafusion/sqllogictest/test_files/tpch/answers/q18.slt.part b/datafusion/sqllogictest/test_files/tpch/answers/q18.slt.part
index 09e9cbc0e9c28..dc466b3e67249 100644
--- a/datafusion/sqllogictest/test_files/tpch/answers/q18.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/answers/q18.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
query TIIDRR
select
diff --git a/datafusion/sqllogictest/test_files/tpch/answers/q19.slt.part b/datafusion/sqllogictest/test_files/tpch/answers/q19.slt.part
index 5499edc6c8845..b36943d5a4c9d 100644
--- a/datafusion/sqllogictest/test_files/tpch/answers/q19.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/answers/q19.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
query R
select
diff --git a/datafusion/sqllogictest/test_files/tpch/answers/q2.slt.part b/datafusion/sqllogictest/test_files/tpch/answers/q2.slt.part
index 09ac0c1ce87f4..5e4c67a7b2429 100644
--- a/datafusion/sqllogictest/test_files/tpch/answers/q2.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/answers/q2.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
query RTTITTTT
select
diff --git a/datafusion/sqllogictest/test_files/tpch/answers/q20.slt.part b/datafusion/sqllogictest/test_files/tpch/answers/q20.slt.part
index 21490bd8aca1e..380bbde7f71aa 100644
--- a/datafusion/sqllogictest/test_files/tpch/answers/q20.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/answers/q20.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
query TT
select
diff --git a/datafusion/sqllogictest/test_files/tpch/answers/q21.slt.part b/datafusion/sqllogictest/test_files/tpch/answers/q21.slt.part
index a76b4f4804556..b128393049995 100644
--- a/datafusion/sqllogictest/test_files/tpch/answers/q21.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/answers/q21.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
query TI
select
diff --git a/datafusion/sqllogictest/test_files/tpch/answers/q22.slt.part b/datafusion/sqllogictest/test_files/tpch/answers/q22.slt.part
index 17b80e3d8bc47..3c2f6192d78eb 100644
--- a/datafusion/sqllogictest/test_files/tpch/answers/q22.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/answers/q22.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
query TIR
select
diff --git a/datafusion/sqllogictest/test_files/tpch/answers/q3.slt.part b/datafusion/sqllogictest/test_files/tpch/answers/q3.slt.part
index 55c303a214f53..6291d2a2bb293 100644
--- a/datafusion/sqllogictest/test_files/tpch/answers/q3.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/answers/q3.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
query IRDI
select
diff --git a/datafusion/sqllogictest/test_files/tpch/answers/q4.slt.part b/datafusion/sqllogictest/test_files/tpch/answers/q4.slt.part
index bd1dd526f35a7..95755e4227659 100644
--- a/datafusion/sqllogictest/test_files/tpch/answers/q4.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/answers/q4.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
query TI
select
diff --git a/datafusion/sqllogictest/test_files/tpch/answers/q5.slt.part b/datafusion/sqllogictest/test_files/tpch/answers/q5.slt.part
index 9208e97390d02..2a85272dc976f 100644
--- a/datafusion/sqllogictest/test_files/tpch/answers/q5.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/answers/q5.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
query TR
select
diff --git a/datafusion/sqllogictest/test_files/tpch/answers/q6.slt.part b/datafusion/sqllogictest/test_files/tpch/answers/q6.slt.part
index 8cdca16fffda2..fd42a00729980 100644
--- a/datafusion/sqllogictest/test_files/tpch/answers/q6.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/answers/q6.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
query R
select
diff --git a/datafusion/sqllogictest/test_files/tpch/answers/q7.slt.part b/datafusion/sqllogictest/test_files/tpch/answers/q7.slt.part
index 2f3b02ea71a81..778ce03e9767e 100644
--- a/datafusion/sqllogictest/test_files/tpch/answers/q7.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/answers/q7.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
query TTIR
select
diff --git a/datafusion/sqllogictest/test_files/tpch/answers/q8.slt.part b/datafusion/sqllogictest/test_files/tpch/answers/q8.slt.part
index 8d99517a75d68..e2173a2076a8a 100644
--- a/datafusion/sqllogictest/test_files/tpch/answers/q8.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/answers/q8.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
query IR
select
diff --git a/datafusion/sqllogictest/test_files/tpch/answers/q9.slt.part b/datafusion/sqllogictest/test_files/tpch/answers/q9.slt.part
index d3333a8f46bba..03e38a5559fd2 100644
--- a/datafusion/sqllogictest/test_files/tpch/answers/q9.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/answers/q9.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
query TIR
select
diff --git a/datafusion/sqllogictest/test_files/tpch/create_tables.slt.part b/datafusion/sqllogictest/test_files/tpch/create_tables.slt.part
index 6927b8c2a91fd..c1e142fe6b7d6 100644
--- a/datafusion/sqllogictest/test_files/tpch/create_tables.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/create_tables.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
# Some modification to original tpch:
# 1. Add `_rev` field in each table to make csv reader compatible with generated tbl format
diff --git a/datafusion/sqllogictest/test_files/tpch/drop_tables.slt.part b/datafusion/sqllogictest/test_files/tpch/drop_tables.slt.part
index 193f91c65f9fd..4701e34eb24b7 100644
--- a/datafusion/sqllogictest/test_files/tpch/drop_tables.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/drop_tables.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
statement ok
DROP TABLE supplier;
diff --git a/datafusion/sqllogictest/test_files/tpch/plans/q1.slt.part b/datafusion/sqllogictest/test_files/tpch/plans/q1.slt.part
index f45f1296b9e5a..6b5560be0ec9b 100644
--- a/datafusion/sqllogictest/test_files/tpch/plans/q1.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/plans/q1.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
query TT
explain select
diff --git a/datafusion/sqllogictest/test_files/tpch/plans/q10.slt.part b/datafusion/sqllogictest/test_files/tpch/plans/q10.slt.part
index cfa9c8f0df924..d1dac01955420 100644
--- a/datafusion/sqllogictest/test_files/tpch/plans/q10.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/plans/q10.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
query TT
explain select
diff --git a/datafusion/sqllogictest/test_files/tpch/plans/q11.slt.part b/datafusion/sqllogictest/test_files/tpch/plans/q11.slt.part
index ebbe7d7f1d952..f6e5c484ed6b2 100644
--- a/datafusion/sqllogictest/test_files/tpch/plans/q11.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/plans/q11.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
query TT
explain select
diff --git a/datafusion/sqllogictest/test_files/tpch/plans/q12.slt.part b/datafusion/sqllogictest/test_files/tpch/plans/q12.slt.part
index a136e1f520782..3a0c5708846ce 100644
--- a/datafusion/sqllogictest/test_files/tpch/plans/q12.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/plans/q12.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
query TT
explain select
diff --git a/datafusion/sqllogictest/test_files/tpch/plans/q13.slt.part b/datafusion/sqllogictest/test_files/tpch/plans/q13.slt.part
index 93de7b153fe01..00bfc4be3c847 100644
--- a/datafusion/sqllogictest/test_files/tpch/plans/q13.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/plans/q13.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
query TT
explain select
diff --git a/datafusion/sqllogictest/test_files/tpch/plans/q14.slt.part b/datafusion/sqllogictest/test_files/tpch/plans/q14.slt.part
index 7a9a5dbab7047..2910711a4ffaf 100644
--- a/datafusion/sqllogictest/test_files/tpch/plans/q14.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/plans/q14.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
query TT
explain select
diff --git a/datafusion/sqllogictest/test_files/tpch/plans/q15.slt.part b/datafusion/sqllogictest/test_files/tpch/plans/q15.slt.part
index 42eddf93dfa80..52c189fb1e08c 100644
--- a/datafusion/sqllogictest/test_files/tpch/plans/q15.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/plans/q15.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
query TT
explain with revenue0 (supplier_no, total_revenue) as (
diff --git a/datafusion/sqllogictest/test_files/tpch/plans/q16.slt.part b/datafusion/sqllogictest/test_files/tpch/plans/q16.slt.part
index 0791de758ed8b..5f9f746be46ae 100644
--- a/datafusion/sqllogictest/test_files/tpch/plans/q16.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/plans/q16.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
query TT
explain select
diff --git a/datafusion/sqllogictest/test_files/tpch/plans/q17.slt.part b/datafusion/sqllogictest/test_files/tpch/plans/q17.slt.part
index b0c64e4613780..c1237ac061d49 100644
--- a/datafusion/sqllogictest/test_files/tpch/plans/q17.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/plans/q17.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
query TT
explain select
diff --git a/datafusion/sqllogictest/test_files/tpch/plans/q18.slt.part b/datafusion/sqllogictest/test_files/tpch/plans/q18.slt.part
index 44f14609dd988..c9aadddc2db80 100644
--- a/datafusion/sqllogictest/test_files/tpch/plans/q18.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/plans/q18.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
query TT
explain select
diff --git a/datafusion/sqllogictest/test_files/tpch/plans/q19.slt.part b/datafusion/sqllogictest/test_files/tpch/plans/q19.slt.part
index f620ffcda9481..d1de9b4d2827d 100644
--- a/datafusion/sqllogictest/test_files/tpch/plans/q19.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/plans/q19.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
query TT
explain select
diff --git a/datafusion/sqllogictest/test_files/tpch/plans/q2.slt.part b/datafusion/sqllogictest/test_files/tpch/plans/q2.slt.part
index e31d5709c82d8..24d31638dc19b 100644
--- a/datafusion/sqllogictest/test_files/tpch/plans/q2.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/plans/q2.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
query TT
explain select
diff --git a/datafusion/sqllogictest/test_files/tpch/plans/q20.slt.part b/datafusion/sqllogictest/test_files/tpch/plans/q20.slt.part
index 7fac31a164d75..ec2d9a542d58d 100644
--- a/datafusion/sqllogictest/test_files/tpch/plans/q20.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/plans/q20.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
query TT
explain select
diff --git a/datafusion/sqllogictest/test_files/tpch/plans/q21.slt.part b/datafusion/sqllogictest/test_files/tpch/plans/q21.slt.part
index c7aac62ca6f5d..64acdf5ac1523 100644
--- a/datafusion/sqllogictest/test_files/tpch/plans/q21.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/plans/q21.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
query TT
explain select
diff --git a/datafusion/sqllogictest/test_files/tpch/plans/q22.slt.part b/datafusion/sqllogictest/test_files/tpch/plans/q22.slt.part
index 76b9e1c92c48e..3b911ffa5d6c0 100644
--- a/datafusion/sqllogictest/test_files/tpch/plans/q22.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/plans/q22.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
query TT
explain select
diff --git a/datafusion/sqllogictest/test_files/tpch/plans/q3.slt.part b/datafusion/sqllogictest/test_files/tpch/plans/q3.slt.part
index 72c2e5d15630d..3344b8bb390b3 100644
--- a/datafusion/sqllogictest/test_files/tpch/plans/q3.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/plans/q3.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
query TT
explain select
diff --git a/datafusion/sqllogictest/test_files/tpch/plans/q4.slt.part b/datafusion/sqllogictest/test_files/tpch/plans/q4.slt.part
index 512db4f04a245..c57ab73ddeb9e 100644
--- a/datafusion/sqllogictest/test_files/tpch/plans/q4.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/plans/q4.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
query TT
explain select
diff --git a/datafusion/sqllogictest/test_files/tpch/plans/q5.slt.part b/datafusion/sqllogictest/test_files/tpch/plans/q5.slt.part
index 6eaae3844043e..5b2a8cc1e764e 100644
--- a/datafusion/sqllogictest/test_files/tpch/plans/q5.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/plans/q5.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
query TT
explain select
diff --git a/datafusion/sqllogictest/test_files/tpch/plans/q6.slt.part b/datafusion/sqllogictest/test_files/tpch/plans/q6.slt.part
index de0b8d5913f77..58826b50ef385 100644
--- a/datafusion/sqllogictest/test_files/tpch/plans/q6.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/plans/q6.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
query TT
explain select
diff --git a/datafusion/sqllogictest/test_files/tpch/plans/q7.slt.part b/datafusion/sqllogictest/test_files/tpch/plans/q7.slt.part
index b178eb163c044..0cbae04916a71 100644
--- a/datafusion/sqllogictest/test_files/tpch/plans/q7.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/plans/q7.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
query TT
explain select
diff --git a/datafusion/sqllogictest/test_files/tpch/plans/q8.slt.part b/datafusion/sqllogictest/test_files/tpch/plans/q8.slt.part
index 419fbbecbaeea..2244e3116a7f1 100644
--- a/datafusion/sqllogictest/test_files/tpch/plans/q8.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/plans/q8.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
query TT
explain select
diff --git a/datafusion/sqllogictest/test_files/tpch/plans/q9.slt.part b/datafusion/sqllogictest/test_files/tpch/plans/q9.slt.part
index b56c21cedc8a9..d78e9406e6158 100644
--- a/datafusion/sqllogictest/test_files/tpch/plans/q9.slt.part
+++ b/datafusion/sqllogictest/test_files/tpch/plans/q9.slt.part
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
query TT
explain select
diff --git a/datafusion/substrait/Cargo.toml b/datafusion/substrait/Cargo.toml
index ec48ef5bec6d1..d6fc6daa9e6d6 100644
--- a/datafusion/substrait/Cargo.toml
+++ b/datafusion/substrait/Cargo.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
[package]
name = "datafusion-substrait"
diff --git a/datafusion/substrait/README.md b/datafusion/substrait/README.md
index d18d7bda5e3b0..7feeafbeeacb1 100644
--- a/datafusion/substrait/README.md
+++ b/datafusion/substrait/README.md
@@ -1,20 +1,7 @@
-
# Apache DataFusion Substrait
diff --git a/datafusion/substrait/tests/testdata/Readme.md b/datafusion/substrait/tests/testdata/Readme.md
index c1bd48abf96ea..cab0a3d3d3a96 100644
--- a/datafusion/substrait/tests/testdata/Readme.md
+++ b/datafusion/substrait/tests/testdata/Readme.md
@@ -1,20 +1,7 @@
-
# Apache DataFusion Substrait Test Data
diff --git a/datafusion/substrait/tests/testdata/tpch_substrait_plans/README.md b/datafusion/substrait/tests/testdata/tpch_substrait_plans/README.md
index ffcd38dfb88d6..92666162e7c73 100644
--- a/datafusion/substrait/tests/testdata/tpch_substrait_plans/README.md
+++ b/datafusion/substrait/tests/testdata/tpch_substrait_plans/README.md
@@ -1,20 +1,7 @@
-
# Apache DataFusion Substrait consumer integration test
diff --git a/datafusion/wasmtest/Cargo.toml b/datafusion/wasmtest/Cargo.toml
index d6cea2e68d384..c669cc25ba65d 100644
--- a/datafusion/wasmtest/Cargo.toml
+++ b/datafusion/wasmtest/Cargo.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
[package]
name = "datafusion-wasmtest"
diff --git a/datafusion/wasmtest/README.md b/datafusion/wasmtest/README.md
index 57a12ef8b8321..e485248c2e31e 100644
--- a/datafusion/wasmtest/README.md
+++ b/datafusion/wasmtest/README.md
@@ -1,20 +1,7 @@
-
# DataFusion wasmtest
diff --git a/datafusion/wasmtest/datafusion-wasm-app/.gitignore b/datafusion/wasmtest/datafusion-wasm-app/.gitignore
index f06235c460c2d..7b5fc7b89837d 100644
--- a/datafusion/wasmtest/datafusion-wasm-app/.gitignore
+++ b/datafusion/wasmtest/datafusion-wasm-app/.gitignore
@@ -1,2 +1,6 @@
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
+
node_modules
dist
diff --git a/datafusion/wasmtest/datafusion-wasm-app/README.md b/datafusion/wasmtest/datafusion-wasm-app/README.md
index 3cc362de8f746..d339e58998f06 100644
--- a/datafusion/wasmtest/datafusion-wasm-app/README.md
+++ b/datafusion/wasmtest/datafusion-wasm-app/README.md
@@ -1,3 +1,9 @@
+
+
create-wasm-app
diff --git a/datafusion/wasmtest/datafusion-wasm-app/bootstrap.js b/datafusion/wasmtest/datafusion-wasm-app/bootstrap.js
index 4ad835cb679f1..a301863af3075 100644
--- a/datafusion/wasmtest/datafusion-wasm-app/bootstrap.js
+++ b/datafusion/wasmtest/datafusion-wasm-app/bootstrap.js
@@ -1,19 +1,6 @@
-// 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.
+// SPDX-License-Identifier: Apache-2.0
+// SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+// SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
// A dependency graph that contains any wasm must all be imported
// asynchronously. This `bootstrap.js` file does the single async import, so
diff --git a/datafusion/wasmtest/datafusion-wasm-app/index.js b/datafusion/wasmtest/datafusion-wasm-app/index.js
index f51cb3081a344..d527b172d91b1 100644
--- a/datafusion/wasmtest/datafusion-wasm-app/index.js
+++ b/datafusion/wasmtest/datafusion-wasm-app/index.js
@@ -1,19 +1,6 @@
-// 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.
+// SPDX-License-Identifier: Apache-2.0
+// SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+// SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
import * as wasm from "datafusion-wasmtest";
diff --git a/datafusion/wasmtest/datafusion-wasm-app/webpack.config.js b/datafusion/wasmtest/datafusion-wasm-app/webpack.config.js
index 33f1ac4894322..62a6db1bef20c 100644
--- a/datafusion/wasmtest/datafusion-wasm-app/webpack.config.js
+++ b/datafusion/wasmtest/datafusion-wasm-app/webpack.config.js
@@ -1,19 +1,6 @@
-// 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.
+// SPDX-License-Identifier: Apache-2.0
+// SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+// SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
const CopyWebpackPlugin = require("copy-webpack-plugin");
const path = require('path');
diff --git a/dev/build-set-env.sh b/dev/build-set-env.sh
index 4faa79c55978d..75803aa6e743f 100755
--- a/dev/build-set-env.sh
+++ b/dev/build-set-env.sh
@@ -1,20 +1,6 @@
#!/bin/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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
export DATAFUSION_VERSION=$(awk -F'[ ="]+' '$1 == "version" { print $2 }' datafusion/core/Cargo.toml)
diff --git a/dev/changelog/10.0.0.md b/dev/changelog/10.0.0.md
index bc77b14cad0a2..9934e8847d788 100644
--- a/dev/changelog/10.0.0.md
+++ b/dev/changelog/10.0.0.md
@@ -1,20 +1,7 @@
-
## [10.0.0](https://github.com/apache/datafusion/tree/10.0.0) (2022-07-12)
diff --git a/dev/changelog/11.0.0.md b/dev/changelog/11.0.0.md
index 2dbb089a18ddd..c7625f5d58273 100644
--- a/dev/changelog/11.0.0.md
+++ b/dev/changelog/11.0.0.md
@@ -1,20 +1,7 @@
-
## [11.0.0](https://github.com/apache/datafusion/tree/11.0.0) (2022-08-16)
diff --git a/dev/changelog/12.0.0.md b/dev/changelog/12.0.0.md
index 01d5648668f5f..c8a39045f2440 100644
--- a/dev/changelog/12.0.0.md
+++ b/dev/changelog/12.0.0.md
@@ -1,20 +1,7 @@
-
## [12.0.0](https://github.com/apache/datafusion/tree/12.0.0) (2022-09-12)
diff --git a/dev/changelog/13.0.0.md b/dev/changelog/13.0.0.md
index 412aad636e1c3..1b2c03b1e5bda 100644
--- a/dev/changelog/13.0.0.md
+++ b/dev/changelog/13.0.0.md
@@ -1,20 +1,7 @@
-
## [13.0.0](https://github.com/apache/datafusion/tree/13.0.0) (2022-10-06)
diff --git a/dev/changelog/14.0.0.md b/dev/changelog/14.0.0.md
index 78921a4bd0cf7..66d33f3425500 100644
--- a/dev/changelog/14.0.0.md
+++ b/dev/changelog/14.0.0.md
@@ -1,20 +1,7 @@
-
## [14.0.0](https://github.com/apache/datafusion/tree/14.0.0) (2022-11-04)
diff --git a/dev/changelog/15.0.0.md b/dev/changelog/15.0.0.md
index 63de08bef2163..f53de51bc6a71 100644
--- a/dev/changelog/15.0.0.md
+++ b/dev/changelog/15.0.0.md
@@ -1,20 +1,7 @@
-
## [15.0.0](https://github.com/apache/datafusion/tree/15.0.0) (2022-12-01)
diff --git a/dev/changelog/16.0.0.md b/dev/changelog/16.0.0.md
index d839732cd403f..79da2ce6f87c5 100644
--- a/dev/changelog/16.0.0.md
+++ b/dev/changelog/16.0.0.md
@@ -1,20 +1,7 @@
-
## [16.0.0](https://github.com/apache/datafusion/tree/16.0.0) (2023-01-12)
diff --git a/dev/changelog/16.1.0.md b/dev/changelog/16.1.0.md
index 66820a5a6979f..aff8daf1e52da 100644
--- a/dev/changelog/16.1.0.md
+++ b/dev/changelog/16.1.0.md
@@ -1,20 +1,7 @@
-
## [16.1.0](https://github.com/apache/datafusion/tree/16.1.0) (2023-01-19)
diff --git a/dev/changelog/17.0.0.md b/dev/changelog/17.0.0.md
index 1eb32a28ec6db..d0961215ae5df 100644
--- a/dev/changelog/17.0.0.md
+++ b/dev/changelog/17.0.0.md
@@ -1,20 +1,7 @@
-
## [17.0.0](https://github.com/apache/datafusion/tree/17.0.0) (2023-01-27)
diff --git a/dev/changelog/18.0.0.md b/dev/changelog/18.0.0.md
index f72e61467ec5f..cf41f5f52df4d 100644
--- a/dev/changelog/18.0.0.md
+++ b/dev/changelog/18.0.0.md
@@ -1,20 +1,7 @@
-
## [18.0.0](https://github.com/apache/datafusion/tree/18.0.0) (2023-02-10)
diff --git a/dev/changelog/19.0.0.md b/dev/changelog/19.0.0.md
index 8672f6d48d4e7..510f322aa2a69 100644
--- a/dev/changelog/19.0.0.md
+++ b/dev/changelog/19.0.0.md
@@ -1,20 +1,7 @@
-
## [19.0.0](https://github.com/apache/datafusion/tree/19.0.0) (2023-02-24)
diff --git a/dev/changelog/20.0.0.md b/dev/changelog/20.0.0.md
index 05e4ed8c4ab36..64497afea0cf7 100644
--- a/dev/changelog/20.0.0.md
+++ b/dev/changelog/20.0.0.md
@@ -1,20 +1,7 @@
-
## [20.0.0](https://github.com/apache/datafusion/tree/20.0.0) (2023-03-10)
diff --git a/dev/changelog/21.0.0.md b/dev/changelog/21.0.0.md
index 0e1b59bc199c2..9214404a68143 100644
--- a/dev/changelog/21.0.0.md
+++ b/dev/changelog/21.0.0.md
@@ -1,20 +1,7 @@
-
## [21.0.0](https://github.com/apache/datafusion/tree/21.0.0) (2023-03-24)
diff --git a/dev/changelog/21.1.0.md b/dev/changelog/21.1.0.md
index eae0372f09ef1..2cc7b5b7d2b81 100644
--- a/dev/changelog/21.1.0.md
+++ b/dev/changelog/21.1.0.md
@@ -1,20 +1,7 @@
-
## [21.1.0](https://github.com/apache/datafusion/tree/21.1.0) (2023-03-24)
diff --git a/dev/changelog/22.0.0.md b/dev/changelog/22.0.0.md
index 34d8dfccfaad9..082d40d81207b 100644
--- a/dev/changelog/22.0.0.md
+++ b/dev/changelog/22.0.0.md
@@ -1,20 +1,7 @@
-
## [22.0.0](https://github.com/apache/datafusion/tree/22.0.0) (2023-04-07)
diff --git a/dev/changelog/23.0.0.md b/dev/changelog/23.0.0.md
index 334ee7e4c93c7..340fbbd439034 100644
--- a/dev/changelog/23.0.0.md
+++ b/dev/changelog/23.0.0.md
@@ -1,20 +1,7 @@
-
## [23.0.0](https://github.com/apache/datafusion/tree/23.0.0) (2023-04-21)
diff --git a/dev/changelog/24.0.0.md b/dev/changelog/24.0.0.md
index c55a75840ff83..2c867815d38cf 100644
--- a/dev/changelog/24.0.0.md
+++ b/dev/changelog/24.0.0.md
@@ -1,20 +1,7 @@
-
## [24.0.0](https://github.com/apache/datafusion/tree/24.0.0) (2023-05-06)
diff --git a/dev/changelog/25.0.0.md b/dev/changelog/25.0.0.md
index 7bc860ecc9679..9cb82a40d562a 100644
--- a/dev/changelog/25.0.0.md
+++ b/dev/changelog/25.0.0.md
@@ -1,20 +1,7 @@
-
## [25.0.0](https://github.com/apache/datafusion/tree/25.0.0) (2023-05-19)
diff --git a/dev/changelog/26.0.0.md b/dev/changelog/26.0.0.md
index 7771e4e4636aa..e5adb392346b6 100644
--- a/dev/changelog/26.0.0.md
+++ b/dev/changelog/26.0.0.md
@@ -1,20 +1,7 @@
-
## [26.0.0](https://github.com/apache/datafusion/tree/26.0.0) (2023-06-02)
diff --git a/dev/changelog/27.0.0.md b/dev/changelog/27.0.0.md
index 71225968e4478..3e05250465c34 100644
--- a/dev/changelog/27.0.0.md
+++ b/dev/changelog/27.0.0.md
@@ -1,20 +1,7 @@
-
## [27.0.0](https://github.com/apache/datafusion/tree/27.0.0) (2023-06-26)
diff --git a/dev/changelog/28.0.0.md b/dev/changelog/28.0.0.md
index 66f0986b3fab3..9a86ec318e755 100644
--- a/dev/changelog/28.0.0.md
+++ b/dev/changelog/28.0.0.md
@@ -1,20 +1,7 @@
-
## [28.0.0](https://github.com/apache/datafusion/tree/28.0.0) (2023-07-21)
diff --git a/dev/changelog/29.0.0.md b/dev/changelog/29.0.0.md
index cf83a283f1d1e..deb830249cbfe 100644
--- a/dev/changelog/29.0.0.md
+++ b/dev/changelog/29.0.0.md
@@ -1,20 +1,7 @@
-
## [29.0.0](https://github.com/apache/datafusion/tree/29.0.0) (2023-08-11)
diff --git a/dev/changelog/30.0.0.md b/dev/changelog/30.0.0.md
index ecd18360b3e8f..4276969109880 100644
--- a/dev/changelog/30.0.0.md
+++ b/dev/changelog/30.0.0.md
@@ -1,20 +1,7 @@
-
## [30.0.0](https://github.com/apache/datafusion/tree/30.0.0) (2023-08-22)
diff --git a/dev/changelog/31.0.0.md b/dev/changelog/31.0.0.md
index 1bffe576d0389..2ae67125f1cdd 100644
--- a/dev/changelog/31.0.0.md
+++ b/dev/changelog/31.0.0.md
@@ -1,20 +1,7 @@
-
## [31.0.0](https://github.com/apache/datafusion/tree/31.0.0) (2023-09-08)
diff --git a/dev/changelog/32.0.0.md b/dev/changelog/32.0.0.md
index f5709f1e137cf..d41cef32c1ca1 100644
--- a/dev/changelog/32.0.0.md
+++ b/dev/changelog/32.0.0.md
@@ -1,20 +1,7 @@
-
## [32.0.0](https://github.com/apache/datafusion/tree/32.0.0) (2023-10-07)
diff --git a/dev/changelog/33.0.0.md b/dev/changelog/33.0.0.md
index af9a45d4e5cf9..b655fb7e359eb 100644
--- a/dev/changelog/33.0.0.md
+++ b/dev/changelog/33.0.0.md
@@ -1,20 +1,7 @@
-
## [33.0.0](https://github.com/apache/datafusion/tree/33.0.0) (2023-11-12)
diff --git a/dev/changelog/34.0.0.md b/dev/changelog/34.0.0.md
index 68e3b24d84a7f..a69df6234534a 100644
--- a/dev/changelog/34.0.0.md
+++ b/dev/changelog/34.0.0.md
@@ -1,20 +1,7 @@
-
## [34.0.0](https://github.com/apache/datafusion/tree/34.0.0) (2023-12-11)
diff --git a/dev/changelog/35.0.0.md b/dev/changelog/35.0.0.md
index 1b8fa38ca3d0e..8e6abc4b24525 100644
--- a/dev/changelog/35.0.0.md
+++ b/dev/changelog/35.0.0.md
@@ -1,20 +1,7 @@
-
## [35.0.0](https://github.com/apache/datafusion/tree/35.0.0) (2024-01-20)
diff --git a/dev/changelog/36.0.0.md b/dev/changelog/36.0.0.md
index db03d9f5f7c11..e3b9910d21c31 100644
--- a/dev/changelog/36.0.0.md
+++ b/dev/changelog/36.0.0.md
@@ -1,20 +1,7 @@
-
## [36.0.0](https://github.com/apache/datafusion/tree/36.0.0) (2024-02-16)
diff --git a/dev/changelog/37.0.0.md b/dev/changelog/37.0.0.md
index e72ae239b73dc..0512e68301b1e 100644
--- a/dev/changelog/37.0.0.md
+++ b/dev/changelog/37.0.0.md
@@ -1,20 +1,7 @@
-
## [37.0.0](https://github.com/apache/datafusion/tree/37.0.0) (2024-03-28)
diff --git a/dev/changelog/37.1.0.md b/dev/changelog/37.1.0.md
index a4376d6cdbf45..7b688c510cb02 100644
--- a/dev/changelog/37.1.0.md
+++ b/dev/changelog/37.1.0.md
@@ -1,20 +1,7 @@
-
## [37.1.0](https://github.com/apache/datafusion/tree/37.1.0) (2024-04-18)
diff --git a/dev/changelog/38.0.0.md b/dev/changelog/38.0.0.md
index ca06ad5de475c..eca8620f17aeb 100644
--- a/dev/changelog/38.0.0.md
+++ b/dev/changelog/38.0.0.md
@@ -1,20 +1,7 @@
-
## [38.0.0](https://github.com/apache/datafusion/tree/38.0.0) (2024-05-07)
diff --git a/dev/changelog/39.0.0.md b/dev/changelog/39.0.0.md
index ff27b4ba24f59..8d3e63a10b19a 100644
--- a/dev/changelog/39.0.0.md
+++ b/dev/changelog/39.0.0.md
@@ -1,20 +1,7 @@
# Apache DataFusion 39.0.0 Changelog
diff --git a/dev/changelog/40.0.0.md b/dev/changelog/40.0.0.md
index 72143ae48b288..b11c10eb60a92 100644
--- a/dev/changelog/40.0.0.md
+++ b/dev/changelog/40.0.0.md
@@ -1,20 +1,7 @@
# Apache DataFusion 40.0.0 Changelog
diff --git a/dev/changelog/41.0.0.md b/dev/changelog/41.0.0.md
index 3e289112c7bbd..399ea46620749 100644
--- a/dev/changelog/41.0.0.md
+++ b/dev/changelog/41.0.0.md
@@ -1,20 +1,7 @@
# Apache DataFusion 41.0.0 Changelog
diff --git a/dev/changelog/42.0.0.md b/dev/changelog/42.0.0.md
index 2dff506a0f929..8fd4431738294 100644
--- a/dev/changelog/42.0.0.md
+++ b/dev/changelog/42.0.0.md
@@ -1,20 +1,7 @@
# Apache DataFusion 42.0.0 Changelog
diff --git a/dev/changelog/42.1.0.md b/dev/changelog/42.1.0.md
index cf4f911150acb..75272b34073f9 100644
--- a/dev/changelog/42.1.0.md
+++ b/dev/changelog/42.1.0.md
@@ -1,20 +1,7 @@
# Apache DataFusion 42.1.0 Changelog
diff --git a/dev/changelog/42.2.0.md b/dev/changelog/42.2.0.md
index 6c907162c65ef..4b6486f334972 100644
--- a/dev/changelog/42.2.0.md
+++ b/dev/changelog/42.2.0.md
@@ -1,20 +1,7 @@
# Apache DataFusion 42.2.0 Changelog
diff --git a/dev/changelog/43.0.0.md b/dev/changelog/43.0.0.md
index e1fcc55b4b91d..5eafa2e39b1af 100644
--- a/dev/changelog/43.0.0.md
+++ b/dev/changelog/43.0.0.md
@@ -1,20 +1,7 @@
# Apache DataFusion 43.0.0 Changelog
diff --git a/dev/changelog/44.0.0.md b/dev/changelog/44.0.0.md
index 233e302e50e69..5e98305504669 100644
--- a/dev/changelog/44.0.0.md
+++ b/dev/changelog/44.0.0.md
@@ -1,20 +1,7 @@
# Apache DataFusion 44.0.0 Changelog
diff --git a/dev/changelog/45.0.0.md b/dev/changelog/45.0.0.md
index ca905c0a1a566..a80539d2e4d2e 100644
--- a/dev/changelog/45.0.0.md
+++ b/dev/changelog/45.0.0.md
@@ -1,20 +1,7 @@
# Apache DataFusion 45.0.0 Changelog
diff --git a/dev/changelog/46.0.0.md b/dev/changelog/46.0.0.md
index 3734161e032f4..dbd256a91569e 100644
--- a/dev/changelog/46.0.0.md
+++ b/dev/changelog/46.0.0.md
@@ -1,20 +1,7 @@
# Apache DataFusion 46.0.0 Changelog
diff --git a/dev/changelog/46.0.1.md b/dev/changelog/46.0.1.md
index 17308bea87ac5..8d71f160d5e1e 100644
--- a/dev/changelog/46.0.1.md
+++ b/dev/changelog/46.0.1.md
@@ -1,20 +1,7 @@
# Apache DataFusion 46.0.1 Changelog
diff --git a/dev/changelog/47.0.0.md b/dev/changelog/47.0.0.md
index 64ca2e157a9e3..05c8c2209043b 100644
--- a/dev/changelog/47.0.0.md
+++ b/dev/changelog/47.0.0.md
@@ -1,20 +1,7 @@
# Apache DataFusion 47.0.0 Changelog
diff --git a/dev/changelog/48.0.0.md b/dev/changelog/48.0.0.md
index 9cf6c03b7acf0..02da296dcf156 100644
--- a/dev/changelog/48.0.0.md
+++ b/dev/changelog/48.0.0.md
@@ -1,20 +1,7 @@
# Apache DataFusion 48.0.0 Changelog
diff --git a/dev/changelog/49.0.0.md b/dev/changelog/49.0.0.md
index 239c7c9dfc973..34a3e1606047c 100644
--- a/dev/changelog/49.0.0.md
+++ b/dev/changelog/49.0.0.md
@@ -1,20 +1,7 @@
# Apache DataFusion 49.0.0 Changelog
diff --git a/dev/changelog/49.0.1.md b/dev/changelog/49.0.1.md
index 06d7c1e2c77a6..40d631ce53696 100644
--- a/dev/changelog/49.0.1.md
+++ b/dev/changelog/49.0.1.md
@@ -1,20 +1,7 @@
# Apache DataFusion 49.0.1 Changelog
diff --git a/dev/changelog/49.0.2.md b/dev/changelog/49.0.2.md
index 7e6fc3e7eb487..9e978d865c1a3 100644
--- a/dev/changelog/49.0.2.md
+++ b/dev/changelog/49.0.2.md
@@ -1,20 +1,7 @@
# Apache DataFusion 49.0.2 Changelog
diff --git a/dev/changelog/5.0.0.md b/dev/changelog/5.0.0.md
index 2681d522c6013..dd9a388d68f52 100644
--- a/dev/changelog/5.0.0.md
+++ b/dev/changelog/5.0.0.md
@@ -1,20 +1,7 @@
-
## [5.0.0](https://github.com/apache/datafusion/tree/5.0.0) (2021-08-10)
diff --git a/dev/changelog/50.0.0.md b/dev/changelog/50.0.0.md
index 7563d57777d56..a54f848fe952e 100644
--- a/dev/changelog/50.0.0.md
+++ b/dev/changelog/50.0.0.md
@@ -1,20 +1,7 @@
# Apache DataFusion 50.0.0 Changelog
diff --git a/dev/changelog/50.1.0.md b/dev/changelog/50.1.0.md
index e4ead4cb456c3..5819edb364b2e 100644
--- a/dev/changelog/50.1.0.md
+++ b/dev/changelog/50.1.0.md
@@ -1,20 +1,7 @@
# Apache DataFusion 50.1.0 Changelog
diff --git a/dev/changelog/50.2.0.md b/dev/changelog/50.2.0.md
index 6d16ace832ab7..2f4af087775a6 100644
--- a/dev/changelog/50.2.0.md
+++ b/dev/changelog/50.2.0.md
@@ -1,20 +1,7 @@
# Apache DataFusion 50.2.0 Changelog
diff --git a/dev/changelog/50.3.0.md b/dev/changelog/50.3.0.md
index 49950e00c282d..16449c8f4b5f8 100644
--- a/dev/changelog/50.3.0.md
+++ b/dev/changelog/50.3.0.md
@@ -1,20 +1,7 @@
# Apache DataFusion 50.3.0 Changelog
diff --git a/dev/changelog/51.0.0.md b/dev/changelog/51.0.0.md
index 60dd24cde5595..77abca0d8151c 100644
--- a/dev/changelog/51.0.0.md
+++ b/dev/changelog/51.0.0.md
@@ -1,20 +1,7 @@
# Apache DataFusion 51.0.0 Changelog
diff --git a/dev/changelog/52.0.0.md b/dev/changelog/52.0.0.md
index 4536fd5a06907..b1454e9581dec 100644
--- a/dev/changelog/52.0.0.md
+++ b/dev/changelog/52.0.0.md
@@ -1,20 +1,7 @@
# Apache DataFusion 52.0.0 Changelog
diff --git a/dev/changelog/52.1.0.md b/dev/changelog/52.1.0.md
index 97a1435c41a44..ccb008627abd0 100644
--- a/dev/changelog/52.1.0.md
+++ b/dev/changelog/52.1.0.md
@@ -1,20 +1,7 @@
# Apache DataFusion 52.1.0 Changelog
diff --git a/dev/changelog/52.2.0.md b/dev/changelog/52.2.0.md
index 0801ec5e6a7ee..9af089a0b5805 100644
--- a/dev/changelog/52.2.0.md
+++ b/dev/changelog/52.2.0.md
@@ -1,20 +1,7 @@
# Apache DataFusion 52.2.0 Changelog
diff --git a/dev/changelog/52.3.0.md b/dev/changelog/52.3.0.md
index ed505b7fc2d0a..16061dbe100c4 100644
--- a/dev/changelog/52.3.0.md
+++ b/dev/changelog/52.3.0.md
@@ -1,20 +1,7 @@
# Apache DataFusion 52.3.0 Changelog
diff --git a/dev/changelog/52.4.0.md b/dev/changelog/52.4.0.md
index 7ea1c8c29ea29..946fcc3bdbc24 100644
--- a/dev/changelog/52.4.0.md
+++ b/dev/changelog/52.4.0.md
@@ -1,20 +1,7 @@
# Apache DataFusion 52.4.0 Changelog
diff --git a/dev/changelog/52.5.0.md b/dev/changelog/52.5.0.md
index e3f5ec0842bb2..96489f92a8bbd 100644
--- a/dev/changelog/52.5.0.md
+++ b/dev/changelog/52.5.0.md
@@ -1,20 +1,7 @@
# Apache DataFusion 52.5.0 Changelog
diff --git a/dev/changelog/53.0.0.md b/dev/changelog/53.0.0.md
index 11820f3caad7f..e33b115f9caaa 100644
--- a/dev/changelog/53.0.0.md
+++ b/dev/changelog/53.0.0.md
@@ -1,20 +1,7 @@
# Apache DataFusion 53.0.0 Changelog
diff --git a/dev/changelog/53.1.0.md b/dev/changelog/53.1.0.md
index 5e39e0041f4af..ea66456279377 100644
--- a/dev/changelog/53.1.0.md
+++ b/dev/changelog/53.1.0.md
@@ -1,20 +1,7 @@
# Apache DataFusion 53.1.0 Changelog
diff --git a/dev/changelog/54.0.0.md b/dev/changelog/54.0.0.md
index 4bae126539c84..cce5a40b8477e 100644
--- a/dev/changelog/54.0.0.md
+++ b/dev/changelog/54.0.0.md
@@ -1,20 +1,7 @@
# Apache DataFusion 54.0.0 Changelog
diff --git a/dev/changelog/54.1.0.md b/dev/changelog/54.1.0.md
index b45f42c9b1ece..3c983d381825c 100644
--- a/dev/changelog/54.1.0.md
+++ b/dev/changelog/54.1.0.md
@@ -1,20 +1,7 @@
# Apache DataFusion 54.1.0 Changelog
diff --git a/dev/changelog/55.0.0.md b/dev/changelog/55.0.0.md
index 30ee1d369878f..4d4c67f071783 100644
--- a/dev/changelog/55.0.0.md
+++ b/dev/changelog/55.0.0.md
@@ -1,20 +1,7 @@
# Apache DataFusion 55.0.0 Changelog
diff --git a/dev/changelog/55.1.0.md b/dev/changelog/55.1.0.md
index 93a9f5b9a8ebf..9a3e686f5ddd7 100644
--- a/dev/changelog/55.1.0.md
+++ b/dev/changelog/55.1.0.md
@@ -1,20 +1,7 @@
# Apache DataFusion 55.1.0 Changelog
diff --git a/dev/changelog/6.0.0.md b/dev/changelog/6.0.0.md
index 7d871dbffb391..abf68107263d7 100644
--- a/dev/changelog/6.0.0.md
+++ b/dev/changelog/6.0.0.md
@@ -1,20 +1,7 @@
-
## [6.0.0](https://github.com/apache/datafusion/tree/6.0.0) (2021-11-13)
diff --git a/dev/changelog/7.0.0.md b/dev/changelog/7.0.0.md
index adaa22917074f..a495f1dcb31c5 100644
--- a/dev/changelog/7.0.0.md
+++ b/dev/changelog/7.0.0.md
@@ -1,20 +1,7 @@
-
## [7.0.0](https://github.com/apache/datafusion/tree/7.0.0) (2022-02-14)
diff --git a/dev/changelog/7.1.0.md b/dev/changelog/7.1.0.md
index 697c484716c09..291a634e67792 100644
--- a/dev/changelog/7.1.0.md
+++ b/dev/changelog/7.1.0.md
@@ -1,20 +1,7 @@
-
## [7.1.0](https://github.com/apache/datafusion/tree/7.1.0) (2022-04-10)
diff --git a/dev/changelog/8.0.0.md b/dev/changelog/8.0.0.md
index b7d758eb76861..6b37501667799 100644
--- a/dev/changelog/8.0.0.md
+++ b/dev/changelog/8.0.0.md
@@ -1,20 +1,7 @@
-
## [8.0.0](https://github.com/apache/datafusion/tree/8.0.0) (2022-05-12)
diff --git a/dev/changelog/9.0.0.md b/dev/changelog/9.0.0.md
index a74f56da2f193..b026aaffb1441 100644
--- a/dev/changelog/9.0.0.md
+++ b/dev/changelog/9.0.0.md
@@ -1,20 +1,7 @@
-
## [9.0.0](https://github.com/apache/datafusion/tree/9.0.0) (2022-06-10)
diff --git a/dev/pyproject.toml b/dev/pyproject.toml
index a2f5653d9d879..2baee03009a51 100644
--- a/dev/pyproject.toml
+++ b/dev/pyproject.toml
@@ -1,3 +1,7 @@
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
+
[project]
name = "datafusion-dev"
version = "0.1.0"
diff --git a/dev/release/README.md b/dev/release/README.md
index 941d5e8cefc97..54bc3d07e83c2 100644
--- a/dev/release/README.md
+++ b/dev/release/README.md
@@ -1,20 +1,7 @@
-
# Release Process
diff --git a/dev/release/add-branch-protection.sh b/dev/release/add-branch-protection.sh
index 735bae7f90fd9..b0cf4396bbe19 100755
--- a/dev/release/add-branch-protection.sh
+++ b/dev/release/add-branch-protection.sh
@@ -1,20 +1,7 @@
#!/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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
set -eu
diff --git a/dev/release/create-tarball.sh b/dev/release/create-tarball.sh
index 6671d2a930d7f..6497d9bd95534 100755
--- a/dev/release/create-tarball.sh
+++ b/dev/release/create-tarball.sh
@@ -1,22 +1,7 @@
#!/bin/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.
-#
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
# Adapted from https://github.com/apache/arrow-rs/tree/master/dev/release/create-tarball.sh
diff --git a/dev/release/release-tarball.sh b/dev/release/release-tarball.sh
index a284b6c4351f3..4975ad2737b05 100755
--- a/dev/release/release-tarball.sh
+++ b/dev/release/release-tarball.sh
@@ -1,22 +1,7 @@
#!/bin/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.
-#
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
# Adapted from https://github.com/apache/arrow-rs/tree/master/dev/release/release-tarball.sh
diff --git a/dev/release/verify-release-candidate.sh b/dev/release/verify-release-candidate.sh
index 9ddd1d3ba8553..05b39dfc3ce42 100755
--- a/dev/release/verify-release-candidate.sh
+++ b/dev/release/verify-release-candidate.sh
@@ -1,22 +1,7 @@
#!/bin/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.
-#
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
# Check that required dependencies are installed
check_dependencies() {
diff --git a/dev/rust_lint.sh b/dev/rust_lint.sh
index 116bbf0b756f9..1774731493385 100755
--- a/dev/rust_lint.sh
+++ b/dev/rust_lint.sh
@@ -1,21 +1,7 @@
#!/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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
# This script runs all the Rust lints locally the same way the
# DataFusion CI does
diff --git a/dev/update_config_docs.sh b/dev/update_config_docs.sh
index f08ad673ee5de..5e0f08659fe1f 100755
--- a/dev/update_config_docs.sh
+++ b/dev/update_config_docs.sh
@@ -1,22 +1,7 @@
#!/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.
-#
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
set -e
diff --git a/dev/update_function_docs.sh b/dev/update_function_docs.sh
index 9bbe857a5333c..421627c15a6f1 100755
--- a/dev/update_function_docs.sh
+++ b/dev/update_function_docs.sh
@@ -1,22 +1,7 @@
#!/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.
-#
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
set -e
diff --git a/doap.rdf b/doap.rdf
index 47b2d0d3f587a..21a2cbde084e0 100644
--- a/doap.rdf
+++ b/doap.rdf
@@ -1,22 +1,10 @@
+
# DataFusion Documentation
diff --git a/docs/build.sh b/docs/build.sh
index e12e3c1a5f202..44236cf727d39 100755
--- a/docs/build.sh
+++ b/docs/build.sh
@@ -1,22 +1,7 @@
#!/bin/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.
-#
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
set -euo pipefail
diff --git a/docs/make.bat b/docs/make.bat
index 33e25e4ee4651..a590c436b65da 100644
--- a/docs/make.bat
+++ b/docs/make.bat
@@ -1,19 +1,6 @@
-@rem Licensed to the Apache Software Foundation (ASF) under one
-@rem or more contributor license agreements. See the NOTICE file
-@rem distributed with this work for additional information
-@rem regarding copyright ownership. The ASF licenses this file
-@rem to you under the Apache License, Version 2.0 (the
-@rem "License"); you may not use this file except in compliance
-@rem with the License. You may obtain a copy of the License at
-@rem
-@rem http://www.apache.org/licenses/LICENSE-2.0
-@rem
-@rem Unless required by applicable law or agreed to in writing,
-@rem software distributed under the License is distributed on an
-@rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-@rem KIND, either express or implied. See the License for the
-@rem specific language governing permissions and limitations
-@rem under the License.
+@REM SPDX-License-Identifier: Apache-2.0
+@REM SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+@REM SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
@ECHO OFF
diff --git a/docs/pyproject.toml b/docs/pyproject.toml
index 97fc6662e383e..ea372b8bd2a6e 100644
--- a/docs/pyproject.toml
+++ b/docs/pyproject.toml
@@ -1,3 +1,7 @@
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
+
[project]
name = "datafusion-docs"
version = "0.1.0"
diff --git a/docs/scripts/build_versions.sh b/docs/scripts/build_versions.sh
index 04636471a4824..65a960bf99e69 100755
--- a/docs/scripts/build_versions.sh
+++ b/docs/scripts/build_versions.sh
@@ -1,21 +1,7 @@
#!/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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
# Build the documentation for each release listed in docs/source/_static/versions.json
#
diff --git a/docs/scripts/generate_dependency_graph.sh b/docs/scripts/generate_dependency_graph.sh
index 771f6f1932c37..a92d8e875737d 100755
--- a/docs/scripts/generate_dependency_graph.sh
+++ b/docs/scripts/generate_dependency_graph.sh
@@ -1,21 +1,7 @@
#!/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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
# See `usage()` for details about this script.
#
diff --git a/docs/source/_static/theme_overrides.css b/docs/source/_static/theme_overrides.css
index 91bc8359658f1..152723a87bb49 100644
--- a/docs/source/_static/theme_overrides.css
+++ b/docs/source/_static/theme_overrides.css
@@ -1,23 +1,9 @@
-/**
- * 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.
+/*
+ * SPDX-License-Identifier: Apache-2.0
+ * SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+ * SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
*/
-
/* Customizing with theme CSS variables */
:root {
diff --git a/docs/source/contributor-guide/ai-policy.md b/docs/source/contributor-guide/ai-policy.md
index 64ea39db3526b..cd646aa43afa3 100644
--- a/docs/source/contributor-guide/ai-policy.md
+++ b/docs/source/contributor-guide/ai-policy.md
@@ -1,20 +1,7 @@
-
# AI Policy
diff --git a/docs/source/contributor-guide/api-health.md b/docs/source/contributor-guide/api-health.md
index d5452dd09e7d2..d26f25abaeb34 100644
--- a/docs/source/contributor-guide/api-health.md
+++ b/docs/source/contributor-guide/api-health.md
@@ -1,20 +1,7 @@
-
# API health policy
diff --git a/docs/source/contributor-guide/architecture.md b/docs/source/contributor-guide/architecture.md
index 8197e0cd00a08..0953c11dcd3a7 100644
--- a/docs/source/contributor-guide/architecture.md
+++ b/docs/source/contributor-guide/architecture.md
@@ -1,20 +1,7 @@
-
# Architecture
diff --git a/docs/source/contributor-guide/architecture/dependency-graph.md b/docs/source/contributor-guide/architecture/dependency-graph.md
index be3502f48beda..381ec6b13792a 100644
--- a/docs/source/contributor-guide/architecture/dependency-graph.md
+++ b/docs/source/contributor-guide/architecture/dependency-graph.md
@@ -1,20 +1,7 @@
-
# Workspace Dependency Graph
diff --git a/docs/source/contributor-guide/communication.md b/docs/source/contributor-guide/communication.md
index b7d93d726a6bc..81c804a85e1c3 100644
--- a/docs/source/contributor-guide/communication.md
+++ b/docs/source/contributor-guide/communication.md
@@ -1,20 +1,7 @@
-
# Community Communication
diff --git a/docs/source/contributor-guide/development_environment.md b/docs/source/contributor-guide/development_environment.md
index 97e4dfd007f6c..0e01d8974f8f3 100644
--- a/docs/source/contributor-guide/development_environment.md
+++ b/docs/source/contributor-guide/development_environment.md
@@ -1,20 +1,7 @@
-
# Development Environment
diff --git a/docs/source/contributor-guide/governance.md b/docs/source/contributor-guide/governance.md
index 143755afd59a5..794f7013457e9 100644
--- a/docs/source/contributor-guide/governance.md
+++ b/docs/source/contributor-guide/governance.md
@@ -1,20 +1,7 @@
-
# Governance
diff --git a/docs/source/contributor-guide/gsoc/gsoc_application_guidelines_2025.md b/docs/source/contributor-guide/gsoc/gsoc_application_guidelines_2025.md
index c127b4231b8e1..ceaba58b472e9 100644
--- a/docs/source/contributor-guide/gsoc/gsoc_application_guidelines_2025.md
+++ b/docs/source/contributor-guide/gsoc/gsoc_application_guidelines_2025.md
@@ -1,3 +1,9 @@
+
+
# GSoC Application Guidelines (2025)
## Introduction
diff --git a/docs/source/contributor-guide/gsoc/gsoc_project_ideas_2025.md b/docs/source/contributor-guide/gsoc/gsoc_project_ideas_2025.md
index 5366080ffe051..c3fdf0a6dfd58 100644
--- a/docs/source/contributor-guide/gsoc/gsoc_project_ideas_2025.md
+++ b/docs/source/contributor-guide/gsoc/gsoc_project_ideas_2025.md
@@ -1,3 +1,9 @@
+
+
# GSoC Project Ideas (2025)
## Introduction
diff --git a/docs/source/contributor-guide/gsoc/index.rst b/docs/source/contributor-guide/gsoc/index.rst
index 364df3394274a..20768023c7139 100644
--- a/docs/source/contributor-guide/gsoc/index.rst
+++ b/docs/source/contributor-guide/gsoc/index.rst
@@ -1,19 +1,6 @@
-.. 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.
+.. SPDX-License-Identifier: Apache-2.0
+.. SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+.. SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
Google Summer of Code (GSOC)
============================
diff --git a/docs/source/contributor-guide/howtos.md b/docs/source/contributor-guide/howtos.md
index 739f433980532..3dbede00d5c4c 100644
--- a/docs/source/contributor-guide/howtos.md
+++ b/docs/source/contributor-guide/howtos.md
@@ -1,20 +1,7 @@
-
# HOWTOs
diff --git a/docs/source/contributor-guide/index.md b/docs/source/contributor-guide/index.md
index c71fa1ee13f3d..e8faa1c538941 100644
--- a/docs/source/contributor-guide/index.md
+++ b/docs/source/contributor-guide/index.md
@@ -1,20 +1,7 @@
-
# Introduction
diff --git a/docs/source/contributor-guide/inviting.md b/docs/source/contributor-guide/inviting.md
index 75ef7c1e98d6d..cbfa5fe6cb643 100644
--- a/docs/source/contributor-guide/inviting.md
+++ b/docs/source/contributor-guide/inviting.md
@@ -1,20 +1,7 @@
-
# Inviting New Committers and PMC Members
diff --git a/docs/source/contributor-guide/pr_review.md b/docs/source/contributor-guide/pr_review.md
index 0b34b4e07abe6..ec2e21478eab1 100644
--- a/docs/source/contributor-guide/pr_review.md
+++ b/docs/source/contributor-guide/pr_review.md
@@ -1,20 +1,7 @@
-
# Reviewing Pull Requests
diff --git a/docs/source/contributor-guide/release_management.md b/docs/source/contributor-guide/release_management.md
index 6c22999635e1c..ca185eef7a96c 100644
--- a/docs/source/contributor-guide/release_management.md
+++ b/docs/source/contributor-guide/release_management.md
@@ -1,20 +1,7 @@
-
# Release Management
diff --git a/docs/source/contributor-guide/roadmap.md b/docs/source/contributor-guide/roadmap.md
index 903b2c7b7ef38..5c78751190918 100644
--- a/docs/source/contributor-guide/roadmap.md
+++ b/docs/source/contributor-guide/roadmap.md
@@ -1,20 +1,7 @@
# Roadmap and Improvement Proposals
diff --git a/docs/source/contributor-guide/specification/index.rst b/docs/source/contributor-guide/specification/index.rst
index 3e4b90178344c..397eb47a8961c 100644
--- a/docs/source/contributor-guide/specification/index.rst
+++ b/docs/source/contributor-guide/specification/index.rst
@@ -1,19 +1,6 @@
-.. 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.
+.. SPDX-License-Identifier: Apache-2.0
+.. SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+.. SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
Specifications
==============
diff --git a/docs/source/contributor-guide/specification/invariants.md b/docs/source/contributor-guide/specification/invariants.md
index c8de4e1d4e21d..a73738ebd662c 100644
--- a/docs/source/contributor-guide/specification/invariants.md
+++ b/docs/source/contributor-guide/specification/invariants.md
@@ -1,20 +1,7 @@
-
# Invariants
diff --git a/docs/source/contributor-guide/specification/output-field-name-semantic.md b/docs/source/contributor-guide/specification/output-field-name-semantic.md
index 1a3c373c9bbd5..65f00d12593f3 100644
--- a/docs/source/contributor-guide/specification/output-field-name-semantic.md
+++ b/docs/source/contributor-guide/specification/output-field-name-semantic.md
@@ -1,20 +1,7 @@
-
# Output field name semantics
diff --git a/docs/source/contributor-guide/testing.md b/docs/source/contributor-guide/testing.md
index fee30dfd4bcfd..4c17488d38e3d 100644
--- a/docs/source/contributor-guide/testing.md
+++ b/docs/source/contributor-guide/testing.md
@@ -1,20 +1,7 @@
-
# Testing
diff --git a/docs/source/download.md b/docs/source/download.md
index 2a0cc8e6e3f6e..b4068f2257772 100644
--- a/docs/source/download.md
+++ b/docs/source/download.md
@@ -1,20 +1,7 @@
-
# Download
diff --git a/docs/source/index.rst b/docs/source/index.rst
index dc1455d5e47b8..14391b8d1356b 100644
--- a/docs/source/index.rst
+++ b/docs/source/index.rst
@@ -1,19 +1,6 @@
-.. 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.
+.. SPDX-License-Identifier: Apache-2.0
+.. SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+.. SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
.. image:: _static/images/original.svg
:alt: DataFusion Logo
diff --git a/docs/source/library-user-guide/building-logical-plans.md b/docs/source/library-user-guide/building-logical-plans.md
index e058ebe1dac75..a1e8b7ee83f42 100644
--- a/docs/source/library-user-guide/building-logical-plans.md
+++ b/docs/source/library-user-guide/building-logical-plans.md
@@ -1,20 +1,7 @@
-
# Building Logical Plans
diff --git a/docs/source/library-user-guide/catalogs.md b/docs/source/library-user-guide/catalogs.md
index dea4e413e2089..930d1e202bdaa 100644
--- a/docs/source/library-user-guide/catalogs.md
+++ b/docs/source/library-user-guide/catalogs.md
@@ -1,20 +1,7 @@
-
# Catalogs, Schemas, and Tables
diff --git a/docs/source/library-user-guide/custom-table-providers.md b/docs/source/library-user-guide/custom-table-providers.md
index 30ffb2b5cf2f7..3bea2c7b1ec00 100644
--- a/docs/source/library-user-guide/custom-table-providers.md
+++ b/docs/source/library-user-guide/custom-table-providers.md
@@ -1,20 +1,7 @@
-
# Custom Table Provider
diff --git a/docs/source/library-user-guide/extending-operators.md b/docs/source/library-user-guide/extending-operators.md
index 0a169531757c2..9554b05c50d1f 100644
--- a/docs/source/library-user-guide/extending-operators.md
+++ b/docs/source/library-user-guide/extending-operators.md
@@ -1,20 +1,7 @@
-
# Extending Operators
diff --git a/docs/source/library-user-guide/extending-sql.md b/docs/source/library-user-guide/extending-sql.md
index 120bc8fab21a5..26bdb52fba99c 100644
--- a/docs/source/library-user-guide/extending-sql.md
+++ b/docs/source/library-user-guide/extending-sql.md
@@ -1,20 +1,7 @@
-
# Extending SQL Syntax
diff --git a/docs/source/library-user-guide/extensions.md b/docs/source/library-user-guide/extensions.md
index d88f5f8320ee9..f9a78de1136ad 100644
--- a/docs/source/library-user-guide/extensions.md
+++ b/docs/source/library-user-guide/extensions.md
@@ -1,20 +1,7 @@
-
# Extensions List
diff --git a/docs/source/library-user-guide/functions/adding-udfs.md b/docs/source/library-user-guide/functions/adding-udfs.md
index 78e90dfa6b8d4..b6fc540a6ee89 100644
--- a/docs/source/library-user-guide/functions/adding-udfs.md
+++ b/docs/source/library-user-guide/functions/adding-udfs.md
@@ -1,20 +1,7 @@
-
# Adding User Defined Functions: Scalar/Window/Aggregate/Table Functions
diff --git a/docs/source/library-user-guide/functions/index.rst b/docs/source/library-user-guide/functions/index.rst
index 1fb4f5679c53a..19e90ec280835 100644
--- a/docs/source/library-user-guide/functions/index.rst
+++ b/docs/source/library-user-guide/functions/index.rst
@@ -1,19 +1,6 @@
-.. 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.
+.. SPDX-License-Identifier: Apache-2.0
+.. SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+.. SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
Functions
=============
diff --git a/docs/source/library-user-guide/functions/spark.md b/docs/source/library-user-guide/functions/spark.md
index c371ae1cb5a86..d2e7ca7ea4f39 100644
--- a/docs/source/library-user-guide/functions/spark.md
+++ b/docs/source/library-user-guide/functions/spark.md
@@ -1,20 +1,7 @@
-
# Spark Compatible Functions
diff --git a/docs/source/library-user-guide/index.md b/docs/source/library-user-guide/index.md
index 0dffc279ab06a..b21a3afe64d82 100644
--- a/docs/source/library-user-guide/index.md
+++ b/docs/source/library-user-guide/index.md
@@ -1,20 +1,7 @@
-
# Introduction
diff --git a/docs/source/library-user-guide/profiling.md b/docs/source/library-user-guide/profiling.md
index a2ea6723e55a7..0c70f994f0ba7 100644
--- a/docs/source/library-user-guide/profiling.md
+++ b/docs/source/library-user-guide/profiling.md
@@ -1,20 +1,7 @@
-
# Profiling Cookbook
diff --git a/docs/source/library-user-guide/query-optimizer.md b/docs/source/library-user-guide/query-optimizer.md
index 03fb6f2e33fe8..4cedc05fd7c4d 100644
--- a/docs/source/library-user-guide/query-optimizer.md
+++ b/docs/source/library-user-guide/query-optimizer.md
@@ -1,20 +1,7 @@
-
# Query Optimizer
diff --git a/docs/source/library-user-guide/securing-datafusion.md b/docs/source/library-user-guide/securing-datafusion.md
index 968310a3e2598..d2fb8e8123d77 100644
--- a/docs/source/library-user-guide/securing-datafusion.md
+++ b/docs/source/library-user-guide/securing-datafusion.md
@@ -1,20 +1,7 @@
-
# Securing DataFusion
diff --git a/docs/source/library-user-guide/table-constraints.md b/docs/source/library-user-guide/table-constraints.md
index 252817822d990..7ec86c241d67a 100644
--- a/docs/source/library-user-guide/table-constraints.md
+++ b/docs/source/library-user-guide/table-constraints.md
@@ -1,20 +1,7 @@
-
# Table Constraint Enforcement
diff --git a/docs/source/library-user-guide/upgrading/46.0.0.md b/docs/source/library-user-guide/upgrading/46.0.0.md
index e38d18c3d6609..d3dd02f6e38bd 100644
--- a/docs/source/library-user-guide/upgrading/46.0.0.md
+++ b/docs/source/library-user-guide/upgrading/46.0.0.md
@@ -1,20 +1,7 @@
-
# Upgrade Guides
diff --git a/docs/source/library-user-guide/upgrading/47.0.0.md b/docs/source/library-user-guide/upgrading/47.0.0.md
index 354b6740df02f..42713b2b82608 100644
--- a/docs/source/library-user-guide/upgrading/47.0.0.md
+++ b/docs/source/library-user-guide/upgrading/47.0.0.md
@@ -1,20 +1,7 @@
-
# Upgrade Guides
diff --git a/docs/source/library-user-guide/upgrading/48.0.0.md b/docs/source/library-user-guide/upgrading/48.0.0.md
index 7872a6f54f245..d4f7a714e20f3 100644
--- a/docs/source/library-user-guide/upgrading/48.0.0.md
+++ b/docs/source/library-user-guide/upgrading/48.0.0.md
@@ -1,20 +1,7 @@
-
# Upgrade Guides
diff --git a/docs/source/library-user-guide/upgrading/48.0.1.md b/docs/source/library-user-guide/upgrading/48.0.1.md
index 5dfb9e1e3d0b1..e09b67bc8010c 100644
--- a/docs/source/library-user-guide/upgrading/48.0.1.md
+++ b/docs/source/library-user-guide/upgrading/48.0.1.md
@@ -1,20 +1,7 @@
-
# Upgrade Guides
diff --git a/docs/source/library-user-guide/upgrading/49.0.0.md b/docs/source/library-user-guide/upgrading/49.0.0.md
index 92267a80fae69..db12def98718f 100644
--- a/docs/source/library-user-guide/upgrading/49.0.0.md
+++ b/docs/source/library-user-guide/upgrading/49.0.0.md
@@ -1,20 +1,7 @@
-
# Upgrade Guides
diff --git a/docs/source/library-user-guide/upgrading/50.0.0.md b/docs/source/library-user-guide/upgrading/50.0.0.md
index d8155dab58962..29f5236dcafc2 100644
--- a/docs/source/library-user-guide/upgrading/50.0.0.md
+++ b/docs/source/library-user-guide/upgrading/50.0.0.md
@@ -1,20 +1,7 @@
-
# Upgrade Guides
diff --git a/docs/source/library-user-guide/upgrading/51.0.0.md b/docs/source/library-user-guide/upgrading/51.0.0.md
index c3acfe15c493f..eae78f747e085 100644
--- a/docs/source/library-user-guide/upgrading/51.0.0.md
+++ b/docs/source/library-user-guide/upgrading/51.0.0.md
@@ -1,20 +1,7 @@
-
# Upgrade Guides
diff --git a/docs/source/library-user-guide/upgrading/52.0.0.md b/docs/source/library-user-guide/upgrading/52.0.0.md
index 8bf2f803bede6..151c0e2ab408e 100644
--- a/docs/source/library-user-guide/upgrading/52.0.0.md
+++ b/docs/source/library-user-guide/upgrading/52.0.0.md
@@ -1,20 +1,7 @@
-
# Upgrade Guides
diff --git a/docs/source/library-user-guide/upgrading/53.0.0.md b/docs/source/library-user-guide/upgrading/53.0.0.md
index a619862e2a153..7923676e29b6e 100644
--- a/docs/source/library-user-guide/upgrading/53.0.0.md
+++ b/docs/source/library-user-guide/upgrading/53.0.0.md
@@ -1,20 +1,7 @@
-
# Upgrade Guides
diff --git a/docs/source/library-user-guide/upgrading/54.0.0.md b/docs/source/library-user-guide/upgrading/54.0.0.md
index ce4d7c22a23de..77de24cdf23c5 100644
--- a/docs/source/library-user-guide/upgrading/54.0.0.md
+++ b/docs/source/library-user-guide/upgrading/54.0.0.md
@@ -1,20 +1,7 @@
-
# Upgrade Guides
diff --git a/docs/source/library-user-guide/upgrading/55.0.0.md b/docs/source/library-user-guide/upgrading/55.0.0.md
index abd4d0020e502..2e5c9a782de13 100644
--- a/docs/source/library-user-guide/upgrading/55.0.0.md
+++ b/docs/source/library-user-guide/upgrading/55.0.0.md
@@ -1,20 +1,7 @@
-
# Upgrade Guides
diff --git a/docs/source/library-user-guide/upgrading/56.0.0.md b/docs/source/library-user-guide/upgrading/56.0.0.md
index 2b11283bd09a9..494fd1cf4e634 100644
--- a/docs/source/library-user-guide/upgrading/56.0.0.md
+++ b/docs/source/library-user-guide/upgrading/56.0.0.md
@@ -1,20 +1,7 @@
-
# Upgrade Guides
diff --git a/docs/source/library-user-guide/upgrading/index.rst b/docs/source/library-user-guide/upgrading/index.rst
index 5e23471b95805..f64662f5865d2 100644
--- a/docs/source/library-user-guide/upgrading/index.rst
+++ b/docs/source/library-user-guide/upgrading/index.rst
@@ -1,19 +1,6 @@
-.. 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.
+.. SPDX-License-Identifier: Apache-2.0
+.. SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+.. SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
Upgrade Guides
==============
diff --git a/docs/source/library-user-guide/using-the-dataframe-api.md b/docs/source/library-user-guide/using-the-dataframe-api.md
index 024eff5d20834..b171bfba5da8d 100644
--- a/docs/source/library-user-guide/using-the-dataframe-api.md
+++ b/docs/source/library-user-guide/using-the-dataframe-api.md
@@ -1,20 +1,7 @@
-
# Using the DataFrame API
diff --git a/docs/source/library-user-guide/using-the-sql-api.md b/docs/source/library-user-guide/using-the-sql-api.md
index 8b8ba2a3716a3..ac1c06acc9e99 100644
--- a/docs/source/library-user-guide/using-the-sql-api.md
+++ b/docs/source/library-user-guide/using-the-sql-api.md
@@ -1,20 +1,7 @@
-
# Using the SQL API
diff --git a/docs/source/library-user-guide/working-with-exprs.md b/docs/source/library-user-guide/working-with-exprs.md
index 2f15fa90610d9..3a530126f2547 100644
--- a/docs/source/library-user-guide/working-with-exprs.md
+++ b/docs/source/library-user-guide/working-with-exprs.md
@@ -1,20 +1,7 @@
-
# Working with `Expr`s
diff --git a/docs/source/user-guide/arrow-introduction.md b/docs/source/user-guide/arrow-introduction.md
index 5a225782adfdb..be8cb2faa602b 100644
--- a/docs/source/user-guide/arrow-introduction.md
+++ b/docs/source/user-guide/arrow-introduction.md
@@ -1,20 +1,7 @@
-
# Gentle Arrow Introduction
diff --git a/docs/source/user-guide/cli/datasources.md b/docs/source/user-guide/cli/datasources.md
index 59a6b0aa43284..18b17ad686071 100644
--- a/docs/source/user-guide/cli/datasources.md
+++ b/docs/source/user-guide/cli/datasources.md
@@ -1,20 +1,7 @@
-
# Local Files / Directories
diff --git a/docs/source/user-guide/cli/functions.md b/docs/source/user-guide/cli/functions.md
index eb7f70e66a1a5..368d43d9bec8f 100644
--- a/docs/source/user-guide/cli/functions.md
+++ b/docs/source/user-guide/cli/functions.md
@@ -1,20 +1,7 @@
-
# CLI Specific Functions
diff --git a/docs/source/user-guide/cli/index.rst b/docs/source/user-guide/cli/index.rst
index fef12c963695d..c5984d1c80b01 100644
--- a/docs/source/user-guide/cli/index.rst
+++ b/docs/source/user-guide/cli/index.rst
@@ -1,19 +1,6 @@
-.. 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.
+.. SPDX-License-Identifier: Apache-2.0
+.. SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+.. SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
DataFusion CLI
==============
diff --git a/docs/source/user-guide/cli/installation.md b/docs/source/user-guide/cli/installation.md
index a3dc4bd2bdb49..8ad49e3613cab 100644
--- a/docs/source/user-guide/cli/installation.md
+++ b/docs/source/user-guide/cli/installation.md
@@ -1,20 +1,7 @@
-
# Installation
diff --git a/docs/source/user-guide/cli/overview.md b/docs/source/user-guide/cli/overview.md
index e0228d3ea00e4..e1348e98d671c 100644
--- a/docs/source/user-guide/cli/overview.md
+++ b/docs/source/user-guide/cli/overview.md
@@ -1,20 +1,7 @@
-
# Overview
diff --git a/docs/source/user-guide/cli/usage.md b/docs/source/user-guide/cli/usage.md
index 24811a3ce9099..ea4c1eecec86b 100644
--- a/docs/source/user-guide/cli/usage.md
+++ b/docs/source/user-guide/cli/usage.md
@@ -1,20 +1,7 @@
-
# Usage
diff --git a/docs/source/user-guide/concepts-readings-events.md b/docs/source/user-guide/concepts-readings-events.md
index 5d7a066b3e658..e26ef4b8a5268 100644
--- a/docs/source/user-guide/concepts-readings-events.md
+++ b/docs/source/user-guide/concepts-readings-events.md
@@ -1,20 +1,7 @@
-
# Concepts, Readings, Events
diff --git a/docs/source/user-guide/configs.md b/docs/source/user-guide/configs.md
index 1ec4fc1aef7af..19af4dfb109d2 100644
--- a/docs/source/user-guide/configs.md
+++ b/docs/source/user-guide/configs.md
@@ -1,20 +1,7 @@
-
# Crate Configuration
diff --git a/docs/source/user-guide/dataframe.md b/docs/source/user-guide/dataframe.md
index d35b543bfdadd..94e571d7ab85d 100644
--- a/docs/source/user-guide/dataframe.md
+++ b/docs/source/user-guide/dataframe.md
@@ -1,20 +1,7 @@
-
# DataFrame API
diff --git a/docs/source/user-guide/example-usage.md b/docs/source/user-guide/example-usage.md
index 8c96b3e82dfc3..0bb635c699624 100644
--- a/docs/source/user-guide/example-usage.md
+++ b/docs/source/user-guide/example-usage.md
@@ -1,20 +1,7 @@
-
# Example Usage
diff --git a/docs/source/user-guide/explain-usage.md b/docs/source/user-guide/explain-usage.md
index 83ff5c3e5496b..f87a373da316a 100644
--- a/docs/source/user-guide/explain-usage.md
+++ b/docs/source/user-guide/explain-usage.md
@@ -1,20 +1,7 @@
-
# Reading Explain Plans
diff --git a/docs/source/user-guide/expressions.md b/docs/source/user-guide/expressions.md
index 55f64135dd0fb..8922165f040e9 100644
--- a/docs/source/user-guide/expressions.md
+++ b/docs/source/user-guide/expressions.md
@@ -1,20 +1,7 @@
-
# Expression API
diff --git a/docs/source/user-guide/faq.md b/docs/source/user-guide/faq.md
index d803b11333f0e..a83f290086cff 100644
--- a/docs/source/user-guide/faq.md
+++ b/docs/source/user-guide/faq.md
@@ -1,20 +1,7 @@
-
# Frequently Asked Questions
diff --git a/docs/source/user-guide/features.md b/docs/source/user-guide/features.md
index 967e81e681f50..f5dae0e5dc4ab 100644
--- a/docs/source/user-guide/features.md
+++ b/docs/source/user-guide/features.md
@@ -1,20 +1,7 @@
-
# Features
diff --git a/docs/source/user-guide/introduction.md b/docs/source/user-guide/introduction.md
index a31d286953cd3..2d25add2b8cfa 100644
--- a/docs/source/user-guide/introduction.md
+++ b/docs/source/user-guide/introduction.md
@@ -1,20 +1,7 @@
-
# Introduction
diff --git a/docs/source/user-guide/metrics.md b/docs/source/user-guide/metrics.md
index 111df66ccc08a..68532cfb8a4f0 100644
--- a/docs/source/user-guide/metrics.md
+++ b/docs/source/user-guide/metrics.md
@@ -1,20 +1,7 @@
-
# Metrics
diff --git a/docs/source/user-guide/parquet-content-defined-chunking.md b/docs/source/user-guide/parquet-content-defined-chunking.md
index d456200e69990..8385bf58d535b 100644
--- a/docs/source/user-guide/parquet-content-defined-chunking.md
+++ b/docs/source/user-guide/parquet-content-defined-chunking.md
@@ -1,20 +1,7 @@
-
# Parquet Content-Defined Chunking
diff --git a/docs/source/user-guide/sql/aggregate_functions.md b/docs/source/user-guide/sql/aggregate_functions.md
index 2d59970b0067b..292454949681d 100644
--- a/docs/source/user-guide/sql/aggregate_functions.md
+++ b/docs/source/user-guide/sql/aggregate_functions.md
@@ -1,20 +1,7 @@
-
# Data Types
diff --git a/docs/source/user-guide/sql/ddl.md b/docs/source/user-guide/sql/ddl.md
index e22898c6b1713..dd0e850e918e0 100644
--- a/docs/source/user-guide/sql/ddl.md
+++ b/docs/source/user-guide/sql/ddl.md
@@ -1,20 +1,7 @@
-
# DDL
diff --git a/docs/source/user-guide/sql/dml.md b/docs/source/user-guide/sql/dml.md
index 921b51ab11cc7..568e1cc3e525f 100644
--- a/docs/source/user-guide/sql/dml.md
+++ b/docs/source/user-guide/sql/dml.md
@@ -1,20 +1,7 @@
-
# DML
diff --git a/docs/source/user-guide/sql/explain.md b/docs/source/user-guide/sql/explain.md
index e7be47b35001c..0a7b27ab701ba 100644
--- a/docs/source/user-guide/sql/explain.md
+++ b/docs/source/user-guide/sql/explain.md
@@ -1,20 +1,7 @@
-
# EXPLAIN
diff --git a/docs/source/user-guide/sql/format_options.md b/docs/source/user-guide/sql/format_options.md
index 738ed8b5de638..817cb1ac7d6b2 100644
--- a/docs/source/user-guide/sql/format_options.md
+++ b/docs/source/user-guide/sql/format_options.md
@@ -1,20 +1,7 @@
-
# Format Options
diff --git a/docs/source/user-guide/sql/index.rst b/docs/source/user-guide/sql/index.rst
index b8b725497371b..c2e40feeee927 100644
--- a/docs/source/user-guide/sql/index.rst
+++ b/docs/source/user-guide/sql/index.rst
@@ -1,19 +1,6 @@
-.. 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.
+.. SPDX-License-Identifier: Apache-2.0
+.. SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+.. SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
SQL Reference
=============
diff --git a/docs/source/user-guide/sql/information_schema.md b/docs/source/user-guide/sql/information_schema.md
index db74ec0708b37..bf47d0742f249 100644
--- a/docs/source/user-guide/sql/information_schema.md
+++ b/docs/source/user-guide/sql/information_schema.md
@@ -1,20 +1,7 @@
-
# Information Schema
diff --git a/docs/source/user-guide/sql/operators.md b/docs/source/user-guide/sql/operators.md
index 688ac974f608b..f7b65f5658ffb 100644
--- a/docs/source/user-guide/sql/operators.md
+++ b/docs/source/user-guide/sql/operators.md
@@ -1,20 +1,7 @@
-
# Operators and Literals
diff --git a/docs/source/user-guide/sql/prepared_statements.md b/docs/source/user-guide/sql/prepared_statements.md
index 6677b212fdf27..c85cb457e3096 100644
--- a/docs/source/user-guide/sql/prepared_statements.md
+++ b/docs/source/user-guide/sql/prepared_statements.md
@@ -1,20 +1,7 @@
-
# Prepared Statements
diff --git a/docs/source/user-guide/sql/scalar_functions.md b/docs/source/user-guide/sql/scalar_functions.md
index 05c7a35e0f44e..171ef41f0eed4 100644
--- a/docs/source/user-guide/sql/scalar_functions.md
+++ b/docs/source/user-guide/sql/scalar_functions.md
@@ -1,20 +1,7 @@
-
# SELECT syntax
diff --git a/docs/source/user-guide/sql/special_functions.md b/docs/source/user-guide/sql/special_functions.md
index f4b1ea43aff67..9ed0e58584bc1 100644
--- a/docs/source/user-guide/sql/special_functions.md
+++ b/docs/source/user-guide/sql/special_functions.md
@@ -1,20 +1,7 @@
-
# Special Functions
diff --git a/docs/source/user-guide/sql/struct_coercion.md b/docs/source/user-guide/sql/struct_coercion.md
index 7fe8a4b59d196..c9cf84040e02a 100644
--- a/docs/source/user-guide/sql/struct_coercion.md
+++ b/docs/source/user-guide/sql/struct_coercion.md
@@ -1,20 +1,7 @@
-
# Struct Type Coercion and Field Mapping
diff --git a/docs/source/user-guide/sql/subqueries.md b/docs/source/user-guide/sql/subqueries.md
index f96d9a704533e..39df3fed299e0 100644
--- a/docs/source/user-guide/sql/subqueries.md
+++ b/docs/source/user-guide/sql/subqueries.md
@@ -1,20 +1,7 @@
-
# Subqueries
diff --git a/docs/source/user-guide/sql/window_functions.md b/docs/source/user-guide/sql/window_functions.md
index 7aeb34a4a6bdd..51d81a150424a 100644
--- a/docs/source/user-guide/sql/window_functions.md
+++ b/docs/source/user-guide/sql/window_functions.md
@@ -1,20 +1,7 @@
-
# DataFusion in Python
diff --git a/rust-toolchain.toml b/rust-toolchain.toml
index 2b838048b4aca..51cee7d6a6126 100644
--- a/rust-toolchain.toml
+++ b/rust-toolchain.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
# This file specifies the default version of Rust used
# to compile this workspace and run CI jobs.
diff --git a/rustfmt.toml b/rustfmt.toml
index c680d9d068d5c..a3a2f33418ec9 100644
--- a/rustfmt.toml
+++ b/rustfmt.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
edition = "2024"
max_width = 90
diff --git a/taplo.toml b/taplo.toml
index 47b33161c37e5..4d2abb3689aed 100644
--- a/taplo.toml
+++ b/taplo.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
## https://taplo.tamasfe.dev/configuration/file.html
diff --git a/test-utils/Cargo.toml b/test-utils/Cargo.toml
index 525c892a406f7..bc4eb5cd7034b 100644
--- a/test-utils/Cargo.toml
+++ b/test-utils/Cargo.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
[package]
name = "test-utils"
diff --git a/typos.toml b/typos.toml
index 6a958616a9f17..6b54c7fd05624 100644
--- a/typos.toml
+++ b/typos.toml
@@ -1,3 +1,7 @@
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
+
[default.extend-words]
# random words from unit tests
Pn = "Pn"
diff --git a/xtask/Cargo.toml b/xtask/Cargo.toml
index ea4a63aa9f483..fa166f70d0964 100644
--- a/xtask/Cargo.toml
+++ b/xtask/Cargo.toml
@@ -1,19 +1,6 @@
-# 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.
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
[package]
name = "datafusion-xtask"
diff --git a/xtask/README.md b/xtask/README.md
index 9d8da4562611f..85675e7d976d8 100644
--- a/xtask/README.md
+++ b/xtask/README.md
@@ -1,20 +1,7 @@
-
# DataFusion xtask
From e1aad2d57dc5ba812aa91ec6f30b01156d1b1eb9 Mon Sep 17 00:00:00 2001
From: Yongting You <2010youy01@gmail.com>
Date: Tue, 3 Nov 2026 20:05:11 +0800
Subject: [PATCH 3/4] chore: update header templates and clean up migration
---
.../SKILL.md | 19 +---
.../src/utils/example_metadata/model.rs | 19 +---
.../src/utils/example_metadata/render.rs | 21 +----
dev/release/generate-changelog.py | 19 +---
dev/update_config_docs.sh | 21 +----
dev/update_function_docs.sh | 63 +++----------
licenserc-legacy.toml | 94 -------------------
7 files changed, 29 insertions(+), 227 deletions(-)
delete mode 100644 licenserc-legacy.toml
diff --git a/.ai/skills/audit-datafusion-spark-expression/SKILL.md b/.ai/skills/audit-datafusion-spark-expression/SKILL.md
index 258b4032361a5..b56661d593c57 100644
--- a/.ai/skills/audit-datafusion-spark-expression/SKILL.md
+++ b/.ai/skills/audit-datafusion-spark-expression/SKILL.md
@@ -5,22 +5,9 @@ argument-hint:
---
Audit the `datafusion-spark` implementation of the `$ARGUMENTS` function for
diff --git a/datafusion-examples/src/utils/example_metadata/model.rs b/datafusion-examples/src/utils/example_metadata/model.rs
index 9a2e6b3582ab7..188c86818f089 100644
--- a/datafusion-examples/src/utils/example_metadata/model.rs
+++ b/datafusion-examples/src/utils/example_metadata/model.rs
@@ -246,22 +246,9 @@ mod tests {
fs::write(
&main_rs,
r#"
- // 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.
+ // SPDX-License-Identifier: Apache-2.0
+ // SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
+ // SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
//
//! # These are miscellaneous function-related examples
//!
diff --git a/datafusion-examples/src/utils/example_metadata/render.rs b/datafusion-examples/src/utils/example_metadata/render.rs
index 7453049e26feb..12ad18bbdc783 100644
--- a/datafusion-examples/src/utils/example_metadata/render.rs
+++ b/datafusion-examples/src/utils/example_metadata/render.rs
@@ -17,23 +17,10 @@ use crate::utils::example_metadata::discover::discover_example_groups;
use crate::utils::example_metadata::model::ExampleGroup;
use crate::utils::example_metadata::{Category, RepoLayout};
-const STATIC_HEADER: &str = r#"
# DataFusion Examples
diff --git a/dev/release/generate-changelog.py b/dev/release/generate-changelog.py
index de034eefc10c8..f6c46627a3011 100755
--- a/dev/release/generate-changelog.py
+++ b/dev/release/generate-changelog.py
@@ -82,22 +82,9 @@ def generate_changelog(repo, repo_name, tag1, tag2, version):
# ASF header
print("""\n""")
print(f"# Apache DataFusion {version} Changelog\n")
diff --git a/dev/update_config_docs.sh b/dev/update_config_docs.sh
index 5e0f08659fe1f..aaf37617ef2a7 100755
--- a/dev/update_config_docs.sh
+++ b/dev/update_config_docs.sh
@@ -49,23 +49,10 @@ PRINT_RUNTIME_CONFIG_DOCS_COMMAND="cargo run --manifest-path datafusion/core/Car
echo "Inserting header"
cat <<'EOF' > "$TARGET_FILE"
-
"
-
-[styles.batch_legacy]
-kind = "line"
-prefix = "@rem "
-
-[styles.rst]
-kind = "line"
-prefix = ".. "
-
-[[rules]]
-extensions = ["slt", "slt.part"]
-filenames = [".gitignore", ".dockerignore"]
-style_out = "script"
-
-[[rules]]
-extensions = ["md", "rdf"]
-style_out = "xml"
-styles_in = ["xml", "markdown_legacy"]
-
-[[rules]]
-extensions = ["rst"]
-style_out = "rst"
-
-[[rules]]
-extensions = ["js", "cjs", "proto"]
-style_out = "doubleslash"
-styles_in = ["doubleslash", "slashstar", "javadoc"]
-
-[[rules]]
-extensions = ["css"]
-style_out = "slashstar"
-styles_in = ["slashstar", "javadoc"]
-
-[[rules]]
-extensions = ["bat"]
-style_out = "batch"
-styles_in = ["batch", "batch_legacy"]
From cfa6e6eeaa81ecabc52214545be632c704d74d45 Mon Sep 17 00:00:00 2001
From: Yongting You <2010youy01@gmail.com>
Date: Tue, 3 Nov 2026 21:13:27 +0800
Subject: [PATCH 4/4] fix: avoid duplicate Apache headers through CLAUDE.md
symlink
---
AGENTS.md | 6 ------
licenserc.toml | 2 ++
2 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/AGENTS.md b/AGENTS.md
index 4730bc3d467da..42aef8b274c03 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -4,12 +4,6 @@ SPDX-FileCopyrightText: See the NOTICE file distributed with this work for addit
SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
-->
-
-
# Agent Guidelines for Apache DataFusion
## Developer Documentation
diff --git a/licenserc.toml b/licenserc.toml
index d1a1362761481..369811f0dced0 100644
--- a/licenserc.toml
+++ b/licenserc.toml
@@ -38,6 +38,8 @@ includes = [
]
excludes = [
+ # CLAUDE.md is a symlink to AGENTS.md, which is checked directly.
+ "/CLAUDE.md",
# Generated code; the hand-written generated/mod.rs wrappers are checked.
"datafusion/proto/src/generated/**",
"datafusion/proto-common/src/generated/pbjson.rs",