This is an automated email from the ASF dual-hosted git repository. github-merge-queue[bot] pushed a commit to branch gh-readonly-queue/main/pr-11497-fdf885971bad1abd393b728f946ded4e7b7ef26b in repository https://gitbox.apache.org/repos/asf/arrow-rs.git
commit da063d5102103235b31f13eaa76ba89297c26061 Author: Phoenix <[email protected]> AuthorDate: Wed Nov 4 07:25:24 2026 +0000 fix: replace RAT with HawkEye (#11497) # Which issue does this PR close? - Closes #11490 # Rationale for this change RAT can accept an incomplete ASF header in a Rust file. HawkEye checks the canonical header and rejects that case. # What changes are included in this PR? - Replace the RAT CI job and release tarball check with HawkEye 7.0.0. - Check Rust and Python files, while preserving the existing header status of tracked files. Existing headerless generated and third-party Rust files remain excluded. - Remove the obsolete RAT scripts and exclusion list. HawkEye's configured scope is Rust and Python. Existing ASF headers in other file types remain in the repository, but this check does not validate them. # Are these changes tested? No standalone test was added. The CI job runs `hawkeye check --fail-on-unknown`; I also confirmed locally that removing the first three ASF header lines from a Rust file makes HawkEye fail. The repository check and release-style tarball check pass. # Are there any significant user-facing changes? No. --- .github/ci/scripts/typos_check.sh | 1 - .github/workflows/codeql.yml | 1 - .github/workflows/dev.yml | 19 +++---- .github/workflows/miri.sh | 17 ++++++ arrow-array/benches/null_dict.rs | 1 + arrow-array/src/array/union_array.rs | 1 + arrow-cast/benches/format_boolean.rs | 1 + arrow-flight/regen.sh | 1 - arrow-json/src/writer/encoder.rs | 1 + dev/release/README.md | 5 ++ dev/release/check-rat-report.py | 59 -------------------- dev/release/create-tarball.sh | 12 ++-- dev/release/rat_exclude_files.txt | 25 --------- dev/release/release-tarball.sh | 2 - dev/release/remove-old-artifacts.sh | 2 - dev/release/run-rat.sh | 43 --------------- dev/release/verify-release-candidate.sh | 2 - licenserc.toml | 88 ++++++++++++++++++++++++++++++ parquet-variant-compute/src/variant_get.rs | 1 + parquet-variant/src/builder.rs | 1 + parquet-variant/src/builder/object.rs | 1 + parquet-variant/src/decoder.rs | 1 + parquet-variant/src/path.rs | 1 + parquet-variant/src/utils.rs | 1 + parquet-variant/src/variant/decimal.rs | 1 + parquet-variant/src/variant/list.rs | 1 + parquet/pytest/requirements.in | 1 + parquet/pytest/requirements.txt | 2 +- parquet/pytest/test_parquet_integration.py | 1 + parquet/src/column/chunker/cdc_codegen.py | 1 - 30 files changed, 139 insertions(+), 155 deletions(-) diff --git a/.github/ci/scripts/typos_check.sh b/.github/ci/scripts/typos_check.sh index 0d99f67674..34f1b9f3cd 100755 --- a/.github/ci/scripts/typos_check.sh +++ b/.github/ci/scripts/typos_check.sh @@ -1,5 +1,4 @@ #!/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 diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index efc154abd1..4d72050272 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -14,7 +14,6 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. -# name: "CodeQL" diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index ef9162bd2e..cea29e80a5 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -25,22 +25,17 @@ permissions: contents: read jobs: - rat: - name: Release Audit Tool (RAT) + license-headers: + name: License headers runs-on: ubuntu-slim steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - - name: Setup Python - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0 + - name: Install HawkEye + uses: taiki-e/install-action@861a07ce7084f55488e375df125cdc99bba60eb7 # v2.87.23 with: - python-version: "3.12" - - name: Setup Java - uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0 - with: - distribution: temurin - java-version: "17" - - name: Audit licenses - run: ./dev/release/run-rat.sh . + tool: hawkeye + - name: Check license headers + run: hawkeye check --fail-on-unknown prettier: name: Markdown format diff --git a/.github/workflows/miri.sh b/.github/workflows/miri.sh index 436992904e..d064d0ccf2 100755 --- a/.github/workflows/miri.sh +++ b/.github/workflows/miri.sh @@ -1,4 +1,21 @@ #!/usr/bin/env bash +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + # # Script # diff --git a/arrow-array/benches/null_dict.rs b/arrow-array/benches/null_dict.rs index b8e81208e1..34f481a2db 100644 --- a/arrow-array/benches/null_dict.rs +++ b/arrow-array/benches/null_dict.rs @@ -14,6 +14,7 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. + use arrow_array::{DictionaryArray, StringArray, UInt16Array}; use std::sync::Arc; diff --git a/arrow-array/src/array/union_array.rs b/arrow-array/src/array/union_array.rs index e6a25101b2..0ffc029c0c 100644 --- a/arrow-array/src/array/union_array.rs +++ b/arrow-array/src/array/union_array.rs @@ -14,6 +14,7 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. + #![allow(clippy::enum_clike_unportable_variant)] use crate::{Array, ArrayRef, make_array}; diff --git a/arrow-cast/benches/format_boolean.rs b/arrow-cast/benches/format_boolean.rs index 61c0da7dde..eeed68389c 100644 --- a/arrow-cast/benches/format_boolean.rs +++ b/arrow-cast/benches/format_boolean.rs @@ -14,6 +14,7 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. + use std::hint::black_box; use arrow_array::BooleanArray; diff --git a/arrow-flight/regen.sh b/arrow-flight/regen.sh index d83f9d580e..9b82516906 100755 --- a/arrow-flight/regen.sh +++ b/arrow-flight/regen.sh @@ -1,5 +1,4 @@ #!/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 diff --git a/arrow-json/src/writer/encoder.rs b/arrow-json/src/writer/encoder.rs index 696af0b1ab..7cb0e9bb6c 100644 --- a/arrow-json/src/writer/encoder.rs +++ b/arrow-json/src/writer/encoder.rs @@ -14,6 +14,7 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. + use std::io::Write; use std::sync::Arc; diff --git a/dev/release/README.md b/dev/release/README.md index 87a5a213c3..d5620681f3 100644 --- a/dev/release/README.md +++ b/dev/release/README.md @@ -112,6 +112,11 @@ create a release candidate using the following steps. Note you need to be a committer to run these scripts as they upload to the apache `svn` distribution servers. +Install HawkEye 7.0.0 (`cargo install hawkeye --version 7.0.0 --locked`) +before running `create-tarball.sh`. The script checks license headers in the +source tarball before signing it, using the file rules and exclusions in +`licenserc.toml`. It does not audit the licenses of every file in the archive. + ### Pick a Release Candidate (RC) number Pick numbers in sequential order, with `1` for `rc1`, `2` for `rc2`, etc. diff --git a/dev/release/check-rat-report.py b/dev/release/check-rat-report.py deleted file mode 100644 index e30d72bddd..0000000000 --- a/dev/release/check-rat-report.py +++ /dev/null @@ -1,59 +0,0 @@ -#!/usr/bin/python -############################################################################## -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -############################################################################## -import fnmatch -import re -import sys -import xml.etree.ElementTree as ET - -if len(sys.argv) != 3: - sys.stderr.write("Usage: %s exclude_globs.lst rat_report.xml\n" % - sys.argv[0]) - sys.exit(1) - -exclude_globs_filename = sys.argv[1] -xml_filename = sys.argv[2] - -globs = [line.strip() for line in open(exclude_globs_filename, "r")] - -tree = ET.parse(xml_filename) -root = tree.getroot() -resources = root.findall('resource') - -all_ok = True -for r in resources: - approvals = r.findall('license-approval') - if not approvals or approvals[0].attrib['name'] == 'true': - continue - clean_name = re.sub('^[^/]+/', '', r.attrib['name']) - excluded = False - for g in globs: - if fnmatch.fnmatch(clean_name, g): - excluded = True - break - if not excluded: - sys.stdout.write("NOT APPROVED: %s (%s): %s\n" % ( - clean_name, r.attrib['name'], approvals[0].attrib['name'])) - all_ok = False - -if not all_ok: - sys.exit(1) - -print('OK') -sys.exit(0) diff --git a/dev/release/create-tarball.sh b/dev/release/create-tarball.sh index 4c3a4f89bd..3ee6a1ea25 100755 --- a/dev/release/create-tarball.sh +++ b/dev/release/create-tarball.sh @@ -1,5 +1,4 @@ #!/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 @@ -16,8 +15,6 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. -# - # This script creates a signed tarball in # dev/dist/apache-arrow-rs-<version>-<sha>.tar.gz and uploads it to @@ -95,8 +92,13 @@ mkdir -p ${distdir} --add-file ${tmpdir}/.gitmodules-commits ${tag} \ | gzip > ${tarball}) -echo "Running rat license checker on ${tarball}" -${SOURCE_DIR}/run-rat.sh ${tarball} +echo "Checking license headers on ${tarball}" +( + audit_dir=$(mktemp -d) + trap 'rm -rf "${audit_dir}"' EXIT + "${tar}" -xzf "${tarball}" -C "${audit_dir}" + (cd "${audit_dir}/${release}" && hawkeye check --fail-on-unknown) +) echo "Signing tarball and creating checksums" gpg --armor --output ${tarball}.asc --detach-sig ${tarball} diff --git a/dev/release/rat_exclude_files.txt b/dev/release/rat_exclude_files.txt deleted file mode 100644 index 05223bcb19..0000000000 --- a/dev/release/rat_exclude_files.txt +++ /dev/null @@ -1,25 +0,0 @@ -venv/* -testing/* -target/* -dev/release/rat_exclude_files.txt -arrow/test/data/* -arrow-csv/test/data/* -arrow-json/test/data/* -arrow/test/dependency/* -arrow-integration-test/data/* -parquet_derive/test/dependency/* -.gitattributes -**.gitignore -.gitmodules -.gitmodules-commits -AGENTS.md -CLAUDE.md -Cargo.lock -filtered_rat.txt -rat.txt -# auto-generated -arrow-flight/src/arrow.flight.protocol.rs -arrow-flight/src/sql/arrow.flight.protocol.sql.rs -.github/* -parquet/src/bin/parquet-fromcsv-help.txt -arrow-flight/examples/data/* diff --git a/dev/release/release-tarball.sh b/dev/release/release-tarball.sh index 0d111392fe..330ccb8c46 100755 --- a/dev/release/release-tarball.sh +++ b/dev/release/release-tarball.sh @@ -1,5 +1,4 @@ #!/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 @@ -16,7 +15,6 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. -# # This script copies a tarball from the "dev" area of the # dist.apache.arrow repository to the "release" area diff --git a/dev/release/remove-old-artifacts.sh b/dev/release/remove-old-artifacts.sh index 06bcc27402..cc858a3044 100755 --- a/dev/release/remove-old-artifacts.sh +++ b/dev/release/remove-old-artifacts.sh @@ -1,5 +1,4 @@ #!/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 @@ -16,7 +15,6 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. -# # This script removes all RCs and all but the most recent versions of # arrow-rs from svn. diff --git a/dev/release/run-rat.sh b/dev/release/run-rat.sh deleted file mode 100755 index 94fa55fbe0..0000000000 --- a/dev/release/run-rat.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/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. -# - -RAT_VERSION=0.13 - -# download apache rat -if [ ! -f apache-rat-${RAT_VERSION}.jar ]; then - curl -s https://repo1.maven.org/maven2/org/apache/rat/apache-rat/${RAT_VERSION}/apache-rat-${RAT_VERSION}.jar > apache-rat-${RAT_VERSION}.jar -fi - -RAT="java -jar apache-rat-${RAT_VERSION}.jar -x " - -RELEASE_DIR=$(cd "$(dirname "$BASH_SOURCE")"; pwd) - -# generate the rat report -$RAT $1 > rat.txt -python $RELEASE_DIR/check-rat-report.py $RELEASE_DIR/rat_exclude_files.txt rat.txt > filtered_rat.txt -cat filtered_rat.txt -UNAPPROVED=`cat filtered_rat.txt | grep "NOT APPROVED" | wc -l` - -if [ "0" -eq "${UNAPPROVED}" ]; then - echo "No unapproved licenses" -else - echo "${UNAPPROVED} unapproved licences. Check rat report: rat.txt" - exit 1 -fi diff --git a/dev/release/verify-release-candidate.sh b/dev/release/verify-release-candidate.sh index 902218675e..99abe4ca7c 100755 --- a/dev/release/verify-release-candidate.sh +++ b/dev/release/verify-release-candidate.sh @@ -1,5 +1,4 @@ #!/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 @@ -16,7 +15,6 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. -# case $# in 2) VERSION="$1" diff --git a/licenserc.toml b/licenserc.toml new file mode 100644 index 0000000000..331936c70b --- /dev/null +++ b/licenserc.toml @@ -0,0 +1,88 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +[header] +builtin = "Apache-2.0-ASF" + +[files] +excludes = [ + # License and attribution texts do not need source-file headers. + "**/LICENSE*", + "**/NOTICE*", + # Git metadata and generated dependency/submodule commit lists. + ".gitattributes", + "**/.gitignore", + ".gitmodules", + ".gitmodules-commits", + "**/Cargo.lock", + # Test fixtures and expected output must retain their data formats. + "arrow-avro/test/data/*.avro", + "arrow-avro/test/data/*.avro.gz", + "arrow-csv/test/data/**/*.csv", + "arrow-json/test/data/*.json", + "arrow-json/test/data/*.json.gz", + "arrow-integration-test/data/*.json", + "parquet/tests/arrow_reader/*.bin", + "parquet/tests/arrow_reader/*.parquet", + "parquet/src/bin/parquet-fromcsv-help.txt", + # PEM certificates and private keys used by the Flight examples. + "arrow-flight/examples/data/*.pem", + "arrow-flight/examples/data/*.key", + # Preserve upstream ASF header formatting in files copied from apache/arrow. + "format/Flight.proto", + "format/FlightSql.proto", + "format/README.rst", + # Derived from the MIT-licensed chronoutil crate; retain its MIT notice. + "arrow-array/src/delta.rs", + # Generated by prost-build from ASF-licensed format/Flight.proto and + # format/FlightSql.proto; the generated files have no ASF header. + "arrow-flight/src/arrow.flight.protocol.rs", + "arrow-flight/src/sql/arrow.flight.protocol.sql.rs", + # These Markdown, TOML, and shell files have no ASF header. + ".config/nextest.toml", + ".github/pull_request_template.md", + # Preserve the existing header state of GitHub templates and configuration. + ".github/ISSUE_TEMPLATE/bug_report.yml", + ".github/ISSUE_TEMPLATE/config.yml", + ".github/ISSUE_TEMPLATE/feature_request.yml", + ".github/dependabot.yml", + # Follow DataFusion in omitting ASF headers from agent guidance files. + "AGENTS.md", + "CLAUDE.md", + "arrow-flight/examples/data/gen_certs.sh", + # Config file only for release process + "cliff.toml", +] + +[styles.markdown_asf] +kind = "block" +start = "<!---" +prefix = " " +end = "-->" + +[[rules]] +extensions = ["md"] +style_out = "markdown_asf" + +# Preserve the line-comment headers in JavaScript and FlatBuffers schemas. +[[rules]] +extensions = ["cjs", "fbs"] +style_out = "doubleslash" + +[[rules]] +filenames = ["requirements.in", "requirements.txt"] +style_out = "script" diff --git a/parquet-variant-compute/src/variant_get.rs b/parquet-variant-compute/src/variant_get.rs index 5cedb008a1..4ce9a9b594 100644 --- a/parquet-variant-compute/src/variant_get.rs +++ b/parquet-variant-compute/src/variant_get.rs @@ -14,6 +14,7 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. + use arrow::{ array::{ self, Array, ArrayRef, GenericListArray, GenericListViewArray, ListLikeArray, StructArray, diff --git a/parquet-variant/src/builder.rs b/parquet-variant/src/builder.rs index af13980fdd..543fc48538 100644 --- a/parquet-variant/src/builder.rs +++ b/parquet-variant/src/builder.rs @@ -14,6 +14,7 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. + use crate::decoder::{OffsetSizeBytes, VariantBasicType, VariantPrimitiveType}; use crate::{ ShortString, Variant, VariantDecimal4, VariantDecimal8, VariantDecimal16, VariantList, diff --git a/parquet-variant/src/builder/object.rs b/parquet-variant/src/builder/object.rs index 3e7cf097ec..5de721611b 100644 --- a/parquet-variant/src/builder/object.rs +++ b/parquet-variant/src/builder/object.rs @@ -14,6 +14,7 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. + use crate::builder::list::ListBuilder; use crate::builder::metadata::MetadataBuilder; use crate::decoder::VariantBasicType; diff --git a/parquet-variant/src/decoder.rs b/parquet-variant/src/decoder.rs index a74790f7bb..0835cfb62c 100644 --- a/parquet-variant/src/decoder.rs +++ b/parquet-variant/src/decoder.rs @@ -14,6 +14,7 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. + use crate::ShortString; use crate::utils::{ array_from_slice, overflow_error, slice_from_slice_at_offset, string_from_slice, diff --git a/parquet-variant/src/path.rs b/parquet-variant/src/path.rs index b42e5eae49..e85028e373 100644 --- a/parquet-variant/src/path.rs +++ b/parquet-variant/src/path.rs @@ -14,6 +14,7 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. + use crate::utils::parse_path; use arrow_schema::ArrowError; use std::{borrow::Cow, ops::Deref}; diff --git a/parquet-variant/src/utils.rs b/parquet-variant/src/utils.rs index d5610cdb26..8a828b9a5a 100644 --- a/parquet-variant/src/utils.rs +++ b/parquet-variant/src/utils.rs @@ -14,6 +14,7 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. + use std::{array::TryFromSliceError, borrow::Cow, ops::Range, str}; use crate::VariantPathElement; diff --git a/parquet-variant/src/variant/decimal.rs b/parquet-variant/src/variant/decimal.rs index 00a7dfff62..f32a8093d3 100644 --- a/parquet-variant/src/variant/decimal.rs +++ b/parquet-variant/src/variant/decimal.rs @@ -14,6 +14,7 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. + use arrow_schema::ArrowError; use std::fmt; diff --git a/parquet-variant/src/variant/list.rs b/parquet-variant/src/variant/list.rs index 8d6a8e7e3c..a74e96f35e 100644 --- a/parquet-variant/src/variant/list.rs +++ b/parquet-variant/src/variant/list.rs @@ -14,6 +14,7 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. + use crate::decoder::{OffsetSizeBytes, map_bytes_to_offsets}; use crate::utils::{ first_byte_from_slice, overflow_error, slice_from_slice, slice_from_slice_at_offset, diff --git a/parquet/pytest/requirements.in b/parquet/pytest/requirements.in index 575fb839a1..033ac71901 100644 --- a/parquet/pytest/requirements.in +++ b/parquet/pytest/requirements.in @@ -14,6 +14,7 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. + pytest pyspark black diff --git a/parquet/pytest/requirements.txt b/parquet/pytest/requirements.txt index cd66c8df4d..b5e393275b 100644 --- a/parquet/pytest/requirements.txt +++ b/parquet/pytest/requirements.txt @@ -14,7 +14,7 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. -# + # This file is autogenerated by pip-compile with python 3.10 # To update, run: # diff --git a/parquet/pytest/test_parquet_integration.py b/parquet/pytest/test_parquet_integration.py index 4ff0163156..0145242b71 100755 --- a/parquet/pytest/test_parquet_integration.py +++ b/parquet/pytest/test_parquet_integration.py @@ -14,6 +14,7 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. + import pyspark.sql from pyspark.sql.types import ( ArrayType, diff --git a/parquet/src/column/chunker/cdc_codegen.py b/parquet/src/column/chunker/cdc_codegen.py index 3675c92d02..4c10d9bebe 100644 --- a/parquet/src/column/chunker/cdc_codegen.py +++ b/parquet/src/column/chunker/cdc_codegen.py @@ -1,5 +1,4 @@ #!/usr/bin/env python - # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information
