Repository: apache/arrow-rs
Pull request #6795 (2024-11-25 20:22:50)

Update references from `master` to `main`
# Which issue does this PR close?

<!--
We generally require a GitHub issue to be filed for all bug fixes and enhancements and this helps us generate change logs for our releases. You can link an issue to this PR using the GitHub syntax. For example `Closes #123` indicates that this PR will close issue #123.
-->

- Closes https://github.com/apache/arrow-rs/issues/2173

# Rationale for this change
As @tustvold noticed, there are still some references to the `master` branch which we also need to migrate to `main`


# What changes are included in this PR?

Change all references I could find from `master` to `main`


# Are there any user-facing changes?


<!--
If there are user-facing changes then we may require documentation to be updated before approving the PR.
-->

<!---
If there are any breaking changes to public APIs, please call them out.
-->



Patch:
diff --git a/.asf.yaml b/.asf.yaml
index bd063d4bb..366c71959 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -38,7 +38,7 @@ github:
   features:
     issues: true
   protected_branches:
-    master:
+    main:
       required_status_checks:
         # require branches to be up-to-date before merging
         strict: true
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index ffde5378d..b22c01f8a 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -5,14 +5,14 @@ updates:
     schedule:
       interval: daily
     open-pull-requests-limit: 10
-    target-branch: master
+    target-branch: main
     labels: [ auto-dependencies, arrow ]
   - package-ecosystem: cargo
     directory: "/object_store"
     schedule:
       interval: daily
     open-pull-requests-limit: 10
-    target-branch: master
+    target-branch: main
     labels: [ auto-dependencies, object_store ]
   - package-ecosystem: "github-actions"
     directory: "/"
diff --git a/.github/workflows/README.md b/.github/workflows/README.md
index 679ccc956..08bdf123f 100644
--- a/.github/workflows/README.md
+++ b/.github/workflows/README.md
@@ -20,6 +20,6 @@
 The CI is structured so most tests are run in specific workflows:
 `arrow.yml` for `arrow`, `parquet.yml` for `parquet` and so on.
 
-The basic idea is to run all tests on pushes to master (to ensure we
-keep master green) but run only the individual workflows on PRs that
+The basic idea is to run all tests on pushes to main (to ensure we
+keep main green) but run only the individual workflows on PRs that
 change files that could affect them.
diff --git a/.github/workflows/arrow.yml b/.github/workflows/arrow.yml
index d3b252674..d065c554b 100644
--- a/.github/workflows/arrow.yml
+++ b/.github/workflows/arrow.yml
@@ -26,7 +26,7 @@ on:
   # always trigger
   push:
     branches:
-      - master
+      - main
   pull_request:
     paths:
       - .github/**
diff --git a/.github/workflows/arrow_flight.yml b/.github/workflows/arrow_flight.yml
index 242e0f2a3..79627448c 100644
--- a/.github/workflows/arrow_flight.yml
+++ b/.github/workflows/arrow_flight.yml
@@ -23,11 +23,11 @@ concurrency:
   group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
   cancel-in-progress: true
 
-# trigger for all PRs that touch certain files and changes to master
+# trigger for all PRs that touch certain files and changes to main
 on:
   push:
     branches:
-      - master
+      - main
   pull_request:
     paths:
       - arrow-array/**
diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml
index 2c1dcdfd2..e6254ea24 100644
--- a/.github/workflows/audit.yml
+++ b/.github/workflows/audit.yml
@@ -21,11 +21,11 @@ concurrency:
   group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
   cancel-in-progress: true
 
-# trigger for all PRs that touch certain files and changes to master
+# trigger for all PRs that touch certain files and changes to main
 on:
   push:
     branches:
-      - master
+      - main
   pull_request:
     paths:
       - '**/Cargo.toml'
diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml
index 2026e257a..b28e8c20c 100644
--- a/.github/workflows/dev.yml
+++ b/.github/workflows/dev.yml
@@ -21,11 +21,11 @@ concurrency:
   group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
   cancel-in-progress: true
 
-# trigger for all PRs and changes to master
+# trigger for all PRs and changes to main
 on:
   push:
     branches:
-      - master
+      - main
   pull_request:
 
 env:
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index 08d287bcc..d6ec0622f 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -21,11 +21,11 @@ concurrency:
   group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
   cancel-in-progress: true
 
-# trigger for all PRs and changes to master
+# trigger for all PRs and changes to main
 on:
   push:
     branches:
-      - master
+      - main
   pull_request:
 
 jobs:
@@ -70,8 +70,8 @@ jobs:
           path: target/doc
 
   deploy:
-    # Only deploy if a push to master
-    if: github.ref_name == 'master' && github.event_name == 'push'
+    # Only deploy if a push to main
+    if: github.ref_name == 'main' && github.event_name == 'push'
     needs: docs
     permissions:
       contents: write
@@ -90,7 +90,7 @@ jobs:
           cp .asf.yaml ./website/build/.asf.yaml
       - name: Deploy to gh-pages
         uses: peaceiris/actions-gh-pages@v4.0.0
-        if: github.event_name == 'push' && github.ref_name == 'master'
+        if: github.event_name == 'push' && github.ref_name == 'main'
         with:
           github_token: ${{ secrets.GITHUB_TOKEN }}
           publish_dir: website/build
diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml
index 868729a16..9b23b1b5a 100644
--- a/.github/workflows/integration.yml
+++ b/.github/workflows/integration.yml
@@ -21,11 +21,11 @@ concurrency:
   group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
   cancel-in-progress: true
 
-# trigger for all PRs that touch certain files and changes to master
+# trigger for all PRs that touch certain files and changes to main
 on:
   push:
     branches:
-      - master
+      - main
   pull_request:
     paths:
       - .github/**
diff --git a/.github/workflows/miri.yaml b/.github/workflows/miri.yaml
index 19b432121..ce67546a1 100644
--- a/.github/workflows/miri.yaml
+++ b/.github/workflows/miri.yaml
@@ -21,11 +21,11 @@ concurrency:
   group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
   cancel-in-progress: true
 
-# trigger for all PRs that touch certain files and changes to master
+# trigger for all PRs that touch certain files and changes to main
 on:
   push:
     branches:
-      - master
+      - main
   pull_request:
     paths:
       - .github/**
diff --git a/.github/workflows/object_store.yml b/.github/workflows/object_store.yml
index 1857b3303..86250fc17 100644
--- a/.github/workflows/object_store.yml
+++ b/.github/workflows/object_store.yml
@@ -23,11 +23,11 @@ concurrency:
   group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
   cancel-in-progress: true
 
-# trigger for all PRs that touch certain files and changes to master
+# trigger for all PRs that touch certain files and changes to main
 on:
   push:
     branches:
-      - master
+      - main
   pull_request:
     paths:
       - object_store/**
diff --git a/.github/workflows/parquet.yml b/.github/workflows/parquet.yml
index a4e654892..2269950fd 100644
--- a/.github/workflows/parquet.yml
+++ b/.github/workflows/parquet.yml
@@ -23,11 +23,11 @@ concurrency:
   group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
   cancel-in-progress: true
 
-# trigger for all PRs that touch certain files and changes to master
+# trigger for all PRs that touch certain files and changes to main
 on:
   push:
     branches:
-      - master
+      - main
   pull_request:
     paths:
       - arrow/**
diff --git a/.github/workflows/parquet_derive.yml b/.github/workflows/parquet_derive.yml
index d8b02f73a..17aec724a 100644
--- a/.github/workflows/parquet_derive.yml
+++ b/.github/workflows/parquet_derive.yml
@@ -23,11 +23,11 @@ concurrency:
   group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
   cancel-in-progress: true
 
-# trigger for all PRs that touch certain files and changes to master
+# trigger for all PRs that touch certain files and changes to main
 on:
   push:
     branches:
-      - master
+      - main
   pull_request:
     paths:
       - parquet/**
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index 1b65c5057..ff5040fd2 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@ -22,11 +22,11 @@ concurrency:
   group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
   cancel-in-progress: true
 
-# trigger for all PRs and changes to master
+# trigger for all PRs and changes to main
 on:
   push:
     branches:
-      - master
+      - main
   pull_request:
 
 jobs:
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 2dea0b2cc..38236ee39 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -138,7 +138,7 @@ cargo test
 cargo test -p arrow
 ```
 
-For some changes, you may want to run additional tests. You can find up-to-date information on the current CI tests in [.github/workflows](https://github.com/apache/arrow-rs/tree/master/.github/workflows). Here are some examples of additional tests you may want to run:
+For some changes, you may want to run additional tests. You can find up-to-date information on the current CI tests in [.github/workflows](https://github.com/apache/arrow-rs/tree/main/.github/workflows). Here are some examples of additional tests you may want to run:
 
 ```bash
 # run tests for the parquet crate
@@ -217,13 +217,13 @@ cargo bench -p arrow-cast --bench parse_time
 To set the baseline for your benchmarks, use the --save-baseline flag:
 
 ```bash
-git checkout master
+git checkout main
 
-cargo bench --bench parse_time -- --save-baseline master
+cargo bench --bench parse_time -- --save-baseline main
 
 git checkout feature
 
-cargo bench --bench parse_time -- --baseline master
+cargo bench --bench parse_time -- --baseline main
 ```
 
 ## Git Pre-Commit Hook
diff --git a/README.md b/README.md
index 3b16629d6..57794b1d6 100644
--- a/README.md
+++ b/README.md
@@ -19,8 +19,6 @@
 
 # Native Rust implementation of Apache Arrow and Apache Parquet
 
-[![Coverage Status](https://codecov.io/gh/apache/arrow-rs/rust/branch/master/graph/badge.svg)](https://codecov.io/gh/apache/arrow-rs?branch=master)
-
 Welcome to the [Rust][rust] implementation of [Apache Arrow], the popular in-memory columnar format.
 
 This repo contains the following main components:
@@ -58,7 +56,7 @@ breaking API changes) at most once a quarter, and release incremental minor
 versions in the intervening months. See [this ticket] for more details.
 
 To keep our maintenance burden down, we do regularly scheduled releases (major
-and minor) from the `master` branch. How we handle PRs with breaking API changes
+and minor) from the `main` branch. How we handle PRs with breaking API changes
 is described in the [contributing] guide.
 
 [contributing]: CONTRIBUTING.md#breaking-changes
diff --git a/arrow-arith/Cargo.toml b/arrow-arith/Cargo.toml
index d2ee0b9e2..66696df8a 100644
--- a/arrow-arith/Cargo.toml
+++ b/arrow-arith/Cargo.toml
@@ -39,7 +39,6 @@ arrow-buffer = { workspace = true }
 arrow-data = { workspace = true }
 arrow-schema = { workspace = true }
 chrono = { workspace = true }
-half = { version = "2.1", default-features = false }
 num = { version = "0.4", default-features = false, features = ["std"] }
 
 [dev-dependencies]
diff --git a/arrow-avro/Cargo.toml b/arrow-avro/Cargo.toml
index d2436f0c1..c82bf0113 100644
--- a/arrow-avro/Cargo.toml
+++ b/arrow-avro/Cargo.toml
@@ -39,10 +39,6 @@ deflate = ["flate2"]
 snappy = ["snap", "crc"]
 
 [dependencies]
-arrow-array = { workspace = true  }
-arrow-buffer = { workspace = true  }
-arrow-cast = { workspace = true  }
-arrow-data = { workspace = true  }
 arrow-schema = { workspace = true  }
 serde_json = { version = "1.0", default-features = false, features = ["std"] }
 serde = { version = "1.0.188", features = ["derive"] }
diff --git a/arrow-csv/Cargo.toml b/arrow-csv/Cargo.toml
index be213c936..4729779c4 100644
--- a/arrow-csv/Cargo.toml
+++ b/arrow-csv/Cargo.toml
@@ -37,13 +37,11 @@ bench = false
 arrow-array = { workspace = true }
 arrow-buffer = { workspace = true }
 arrow-cast = { workspace = true }
-arrow-data = { workspace = true }
 arrow-schema = { workspace = true }
 chrono = { workspace = true }
 csv = { version = "1.1", default-features = false }
 csv-core = { version = "0.1" }
 lazy_static = { version = "1.4", default-features = false }
-lexical-core = { version = "1.0", default-features = false }
 regex = { version = "1.7.0", default-features = false, features = ["std", "unicode", "perf"] }
 
 [dev-dependencies]
diff --git a/arrow-flight/README.md b/arrow-flight/README.md
index bc5f9d26e..661abfc58 100644
--- a/arrow-flight/README.md
+++ b/arrow-flight/README.md
@@ -38,7 +38,7 @@ Apache Arrow Flight is a gRPC based protocol for exchanging Arrow data between p
 
 This crate provides a Rust implementation of the
 [Flight.proto](../format/Flight.proto) gRPC protocol and
-[examples](https://github.com/apache/arrow-rs/tree/master/arrow-flight/examples)
+[examples](https://github.com/apache/arrow-rs/tree/main/arrow-flight/examples)
 that demonstrate how to build a Flight server implemented with [tonic](https://docs.rs/crate/tonic/latest).
 
 ## Feature Flags
diff --git a/arrow-flight/gen/Cargo.toml b/arrow-flight/gen/Cargo.toml
index b5ed0cea4..ccd32b433 100644
--- a/arrow-flight/gen/Cargo.toml
+++ b/arrow-flight/gen/Cargo.toml
@@ -32,6 +32,5 @@ publish = false
 [dependencies]
 # Pin specific version of the tonic-build dependencies to avoid auto-generated
 # (and checked in) arrow.flight.protocol.rs from changing
-proc-macro2 = { version = "=1.0.92", default-features = false }
 prost-build = { version = "=0.13.3", default-features = false }
 tonic-build = { version = "=0.12.3", default-features = false, features = ["transport", "prost"] }
diff --git a/arrow-ipc/Cargo.toml b/arrow-ipc/Cargo.toml
index 94b89a55f..cf91b3a34 100644
--- a/arrow-ipc/Cargo.toml
+++ b/arrow-ipc/Cargo.toml
@@ -36,7 +36,6 @@ bench = false
 [dependencies]
 arrow-array = { workspace = true }
 arrow-buffer = { workspace = true }
-arrow-cast = { workspace = true }
 arrow-data = { workspace = true }
 arrow-schema = { workspace = true }
 flatbuffers = { version = "24.3.25", default-features = false }
diff --git a/arrow-json/Cargo.toml b/arrow-json/Cargo.toml
index 517bb03d2..564cb9433 100644
--- a/arrow-json/Cargo.toml
+++ b/arrow-json/Cargo.toml
@@ -48,7 +48,6 @@ chrono = { workspace = true }
 lexical-core = { version = "1.0", default-features = false}
 
 [dev-dependencies]
-tempfile = "3.3"
 flate2 = { version = "1", default-features = false, features = ["rust_backend"] }
 serde = { version = "1.0", default-features = false, features = ["derive"] }
 futures = "0.3"
diff --git a/arrow-ord/Cargo.toml b/arrow-ord/Cargo.toml
index c9c30074f..a2894c020 100644
--- a/arrow-ord/Cargo.toml
+++ b/arrow-ord/Cargo.toml
@@ -39,7 +39,6 @@ arrow-buffer = { workspace = true }
 arrow-data = { workspace = true }
 arrow-schema = { workspace = true }
 arrow-select = { workspace = true }
-num = { version = "0.4", default-features = false, features = ["std"] }
 half = { version = "2.1", default-features = false, features = ["num-traits"] }
 
 [dev-dependencies]
diff --git a/arrow/Cargo.toml b/arrow/Cargo.toml
index 732819cf0..32b2384af 100644
--- a/arrow/Cargo.toml
+++ b/arrow/Cargo.toml
@@ -87,7 +87,6 @@ chrono = { workspace = true }
 criterion = { version = "0.5", default-features = false }
 half = { version = "2.1", default-features = false }
 rand = { version = "0.8", default-features = false, features = ["std", "std_rng"] }
-tempfile = { version = "3", default-features = false }
 serde = { version = "1.0", default-features = false, features = ["derive"] }
 
 [build-dependencies]
diff --git a/arrow/README.md b/arrow/README.md
index 557a0b474..a1444005e 100644
--- a/arrow/README.md
+++ b/arrow/README.md
@@ -25,7 +25,7 @@
 This crate contains the official Native Rust implementation of [Apache Arrow][arrow] in memory format, governed by the Apache Software Foundation.
 
 The [API documentation](https://docs.rs/arrow/latest) contains examples and full API.
-There are several [examples](https://github.com/apache/arrow-rs/tree/master/arrow/examples) to start from as well.
+There are several [examples](https://github.com/apache/arrow-rs/tree/main/arrow/examples) to start from as well.
 
 The API documentation for most recent, unreleased code is available [here](https://arrow.apache.org/rust/arrow/index.html).
 
@@ -57,7 +57,7 @@ The `arrow` crate provides the following features which may be enabled in your `
 - `ipc` (default) - support for reading [Arrow IPC Format](https://arrow.apache.org/docs/format/Columnar.html#serialization-and-interprocess-communication-ipc), also used as the wire protocol in [arrow-flight](https://crates.io/crates/arrow-flight)
 - `ipc_compression` - Enables reading and writing compressed IPC streams (also enables `ipc`)
 - `prettyprint` - support for formatting record batches as textual columns
-  implementations of some [compute](https://github.com/apache/arrow-rs/tree/master/arrow/src/compute/kernels)
+  implementations of some [compute](https://github.com/apache/arrow-rs/tree/main/arrow/src/compute/kernels)
 - `chrono-tz` - support of parsing timezone using [chrono-tz](https://docs.rs/chrono-tz/0.6.0/chrono_tz/)
 - `ffi` - bindings for the Arrow C [C Data Interface](https://arrow.apache.org/docs/format/CDataInterface.html)
 - `pyarrow` - bindings for pyo3 to call arrow-rs from python
diff --git a/arrow/src/lib.rs b/arrow/src/lib.rs
index 5002e5bf1..7fc5acdc1 100644
--- a/arrow/src/lib.rs
+++ b/arrow/src/lib.rs
@@ -336,7 +336,7 @@
 //!
 //! If you think you have found an instance where this is possible, please file
 //! a ticket in our [issue tracker] and it will be triaged and fixed. For more information on
-//! arrow's use of unsafe, see [here](https://github.com/apache/arrow-rs/tree/master/arrow#safety).
+//! arrow's use of unsafe, see [here](https://github.com/apache/arrow-rs/tree/main/arrow#safety).
 //!
 //! # Higher-level Processing
 //!
diff --git a/dev/release/README.md b/dev/release/README.md
index 50aa5e8bc..6e6817bff 100644
--- a/dev/release/README.md
+++ b/dev/release/README.md
@@ -27,7 +27,7 @@ This file documents the release process for the "Rust Arrow Crates": `arrow`, `a
 
 The Rust Arrow Crates are interconnected (e.g. `parquet` has an optional dependency on `arrow`) so we increment and release all of them together.
 
-If any code has been merged to master that has a breaking API change, as defined
+If any code has been merged to main that has a breaking API change, as defined
 in [Rust RFC 1105] he major version number is incremented (e.g. `9.0.2` to `10.0.2`).
 Otherwise the new minor version incremented (e.g. `9.0.2` to `9.1.0`).
 
@@ -46,19 +46,19 @@ crates.io, the Rust ecosystem's package manager.
 We create a `CHANGELOG.md` so our users know what has been changed between releases.
 
 The CHANGELOG is created automatically using
-[update_change_log.sh](https://github.com/apache/arrow-rs/blob/master/dev/release/update_change_log.sh)
+[update_change_log.sh](https://github.com/apache/arrow-rs/blob/main/dev/release/update_change_log.sh)
 
 This script creates a changelog using github issues and the
 labels associated with them.
 
 ## Prepare CHANGELOG and version:
 
-Now prepare a PR to update `CHANGELOG.md` and versions on `master` to reflect the planned release.
+Now prepare a PR to update `CHANGELOG.md` and versions on `main` to reflect the planned release.
 
 Do this in the root of this repository. For example [#2323](https://github.com/apache/arrow-rs/pull/2323)
 
 ```bash
-git checkout master
+git checkout main
 git pull
 git checkout -b <RELEASE_BRANCH>
 
@@ -96,7 +96,7 @@ Note that when reviewing the change log, rather than editing the
 `CHANGELOG.md`, it is preferred to update the issues and their labels
 (e.g. add `invalid` label to exclude them from release notes)
 
-Merge this PR to `master` prior to the next step.
+Merge this PR to `main` prior to the next step.
 
 ## Prepare release candidate tarball
 
@@ -115,7 +115,7 @@ Create and push the tag thusly:
 
 ```shell
 git fetch apache
-git tag <version> apache/master
+git tag <version> apache/main
 # push tag to apache
 git push apache <version>
 ```
diff --git a/dev/release/create-tarball.sh b/dev/release/create-tarball.sh
index a77ddbe75..8b9250910 100755
--- a/dev/release/create-tarball.sh
+++ b/dev/release/create-tarball.sh
@@ -109,7 +109,7 @@ The vote will be open for at least 72 hours.
 [1]: https://github.com/apache/arrow-rs/tree/${release_hash}
 [2]: ${url}
 [3]: https://github.com/apache/arrow-rs/blob/${release_hash}/CHANGELOG.md
-[4]: https://github.com/apache/arrow-rs/blob/master/dev/release/verify-release-candidate.sh
+[4]: https://github.com/apache/arrow-rs/blob/main/dev/release/verify-release-candidate.sh
 MAIL
 echo "---------------------------------------------------------"
 
diff --git a/object_store/Cargo.toml b/object_store/Cargo.toml
index 536874fc9..a04733625 100644
--- a/object_store/Cargo.toml
+++ b/object_store/Cargo.toml
@@ -23,7 +23,7 @@ license = "MIT/Apache-2.0"
 readme = "README.md"
 description = "A generic object store interface for uniformly interacting with AWS S3, Google Cloud Storage, Azure Blob Storage and local files."
 keywords = ["object", "storage", "cloud"]
-repository = "https://github.com/apache/arrow-rs/tree/master/object_store"
+repository = "https://github.com/apache/arrow-rs/tree/main/object_store"
 rust-version = "1.64.0"
 
 [package.metadata.docs.rs]
diff --git a/object_store/dev/release/README.md b/object_store/dev/release/README.md
index 4077dcad9..912ff4cd8 100644
--- a/object_store/dev/release/README.md
+++ b/object_store/dev/release/README.md
@@ -27,7 +27,7 @@ This file documents the release process for the `object_store` crate.
 At the time of writing, we release a new version of `object_store` on demand rather than on a regular schedule.
 
 As we are still in an early phase, we use the 0.x version scheme. If any code has 
-been merged to master that has a breaking API change, as defined in [Rust RFC 1105]
+been merged to main that has a breaking API change, as defined in [Rust RFC 1105]
 the minor version number is incremented changed (e.g. `0.3.0` to `0.4.0`). 
 Otherwise the patch version is incremented (e.g. `0.3.0` to `0.3.1`).
 
@@ -45,14 +45,14 @@ crates.io, the Rust ecosystem's package manager.
 We create a `CHANGELOG.md` so our users know what has been changed between releases.
 
 The CHANGELOG is created automatically using
-[update_change_log.sh](https://github.com/apache/arrow-rs/blob/master/object_store/dev/release/update_change_log.sh)
+[update_change_log.sh](https://github.com/apache/arrow-rs/blob/main/object_store/dev/release/update_change_log.sh)
 
 This script creates a changelog using github issues and the
 labels associated with them.
 
 ## Prepare CHANGELOG and version:
 
-Now prepare a PR to update `CHANGELOG.md` and versions on `master` to reflect the planned release.
+Now prepare a PR to update `CHANGELOG.md` and versions on `main` to reflect the planned release.
 
 Note  this process is done in the `object_store` directory. See [#6227] for an example
 
@@ -62,7 +62,7 @@ Note  this process is done in the `object_store` directory. See [#6227] for an e
 # NOTE: Run commands in object_store sub directory (not main repo checkout)
 # cd object_store
 
-git checkout master
+git checkout main
 git pull
 git checkout -b <RELEASE_BRANCH>
 
@@ -82,7 +82,7 @@ export CHANGELOG_GITHUB_TOKEN=<TOKEN>
 # Commit changes
 git commit -a -m 'Create changelog'
 
-# push changes to fork and create a PR to master
+# push changes to fork and create a PR to main
 git push
 ```
 
@@ -90,7 +90,7 @@ Note that when reviewing the change log, rather than editing the
 `CHANGELOG.md`, it is preferred to update the issues and their labels
 (e.g. add `invalid` label to exclude them from release notes)
 
-Merge this PR to `master` prior to the next step.
+Merge this PR to `main` prior to the next step.
 
 ## Prepare release candidate tarball
 
@@ -109,7 +109,7 @@ Create and push the tag thusly:
 
 ```shell
 git fetch apache
-git tag <version> apache/master
+git tag <version> apache/main
 # push tag to apache
 git push apache <version>
 ```
@@ -170,7 +170,7 @@ The vote will be open for at least 72 hours.
 [1]: https://github.com/apache/arrow-rs/tree/b945b15de9085f5961a478d4f35b0c5c3427e248
 [2]: https://dist.apache.org/repos/dist/dev/arrow/apache-arrow-object-store-rs-0.11.1-rc1
 [3]: https://github.com/apache/arrow-rs/blob/b945b15de9085f5961a478d4f35b0c5c3427e248/object_store/CHANGELOG.md
-[4]: https://github.com/apache/arrow-rs/blob/master/object_store/dev/release/verify-release-candidate.sh
+[4]: https://github.com/apache/arrow-rs/blob/main/object_store/dev/release/verify-release-candidate.sh
 ```
 
 For the release to become "official" it needs at least three Apache Arrow PMC members to vote +1 on it.
diff --git a/object_store/dev/release/create-tarball.sh b/object_store/dev/release/create-tarball.sh
index bbffde89b..efc26fd0e 100755
--- a/object_store/dev/release/create-tarball.sh
+++ b/object_store/dev/release/create-tarball.sh
@@ -101,7 +101,7 @@ The vote will be open for at least 72 hours.
 [1]: https://github.com/apache/arrow-rs/tree/${release_hash}
 [2]: ${url}
 [3]: https://github.com/apache/arrow-rs/blob/${release_hash}/object_store/CHANGELOG.md
-[4]: https://github.com/apache/arrow-rs/blob/master/object_store/dev/release/verify-release-candidate.sh
+[4]: https://github.com/apache/arrow-rs/blob/main/object_store/dev/release/verify-release-candidate.sh
 MAIL
 echo "---------------------------------------------------------"
 
diff --git a/parquet/README.md b/parquet/README.md
index a0441ee60..e9f52ff27 100644
--- a/parquet/README.md
+++ b/parquet/README.md
@@ -59,7 +59,7 @@ The `parquet` crate provides the following features which may be enabled in your
 - `lz4` (default) - support for parquet using `lz4` compression
 - `zstd` (default) - support for parquet using `zstd` compression
 - `snap` (default) - support for parquet using `snappy` compression
-- `cli` - parquet [CLI tools](https://github.com/apache/arrow-rs/tree/master/parquet/src/bin)
+- `cli` - parquet [CLI tools](https://github.com/apache/arrow-rs/tree/main/parquet/src/bin)
 - `crc` - enables functionality to automatically verify checksums of each page (if present) when decoding
 - `experimental` - Experimental APIs which may change, even between minor releases
 
diff --git a/parquet/examples/async_read_parquet.rs b/parquet/examples/async_read_parquet.rs
index e59cad805..0a2e9ba99 100644
--- a/parquet/examples/async_read_parquet.rs
+++ b/parquet/examples/async_read_parquet.rs
@@ -45,7 +45,7 @@ async fn main() -> Result<()> {
     builder = builder.with_projection(mask);
 
     // Highlight: set `RowFilter`, it'll push down filter predicates to skip IO and decode.
-    // For more specific usage: please refer to https://github.com/apache/arrow-datafusion/blob/master/datafusion/core/src/physical_plan/file_format/parquet/row_filter.rs.
+    // For more specific usage: please refer to https://github.com/apache/datafusion/blob/main/datafusion/core/src/datasource/physical_plan/parquet/row_filter.rs.
     let scalar = Int32Array::from(vec![1]);
     let filter = ArrowPredicateFn::new(
         ProjectionMask::roots(file_metadata.schema_descr(), [0]),
diff --git a/parquet/src/file/properties.rs b/parquet/src/file/properties.rs
index f4f610ab9..49980f525 100644
--- a/parquet/src/file/properties.rs
+++ b/parquet/src/file/properties.rs
@@ -858,7 +858,7 @@ impl ColumnProperties {
         self.dictionary_enabled = Some(enabled);
     }
 
-    /// Sets whether or not statistics are enabled for this column.
+    /// Sets the statistics level for this column.
     fn set_statistics_enabled(&mut self, enabled: EnabledStatistics) {
         self.statistics_enabled = Some(enabled);
     }
@@ -921,8 +921,8 @@ impl ColumnProperties {
         self.dictionary_enabled
     }
 
-    /// Returns `Some(true)` if statistics are enabled for this column, if disabled then
-    /// returns `Some(false)`. If result is `None`, then no setting has been provided.
+    /// Returns optional statistics level requested for this column. If result is `None`,
+    /// then no setting has been provided.
     fn statistics_enabled(&self) -> Option<EnabledStatistics> {
         self.statistics_enabled
     }


Test patch:
diff --git a/arrow-integration-testing/Cargo.toml b/arrow-integration-testing/Cargo.toml
index 7be56d919..0ebbc05a8 100644
--- a/arrow-integration-testing/Cargo.toml
+++ b/arrow-integration-testing/Cargo.toml
@@ -41,14 +41,12 @@ arrow-integration-test = { path = "../arrow-integration-test", default-features
 async-trait = { version = "0.1.41", default-features = false }
 clap = { version = "4", default-features = false, features = ["std", "derive", "help", "error-context", "usage"] }
 futures = { version = "0.3", default-features = false }
-hex = { version = "0.4", default-features = false, features = ["std"] }
 prost = { version = "0.13", default-features = false }
 serde = { version = "1.0", default-features = false, features = ["rc", "derive"] }
 serde_json = { version = "1.0", default-features = false, features = ["std"] }
 tokio = { version = "1.0", default-features = false }
 tonic = { version = "0.12", default-features = false }
 tracing-subscriber = { version = "0.3.1", default-features = false, features = ["fmt"], optional = true }
-num = { version = "0.4", default-features = false, features = ["std"] }
 flate2 = { version = "1", default-features = false, features = ["rust_backend"] }
 
 [dev-dependencies]
diff --git a/arrow-integration-testing/README.md b/arrow-integration-testing/README.md
index dcf39c27f..86c79f503 100644
--- a/arrow-integration-testing/README.md
+++ b/arrow-integration-testing/README.md
@@ -53,7 +53,7 @@ pip install -e dev/archery[integration]
 
 ### Build the C++ binaries:
 
-Follow the [C++ Direction](https://github.com/apache/arrow/tree/master/docs/source/developers/cpp) and build the integration test binaries with a command like this:
+Follow the [C++ Direction](https://github.com/apache/arrow/tree/main/docs/source/developers/cpp) and build the integration test binaries with a command like this:
 
 ```
 # build cpp binaries