Skip to content

Apache DataFusion SQL Query Engine

chore: fix typos & pin action hashes (#17855)

Jeffrey Vo35f45b544de8
diff --git a/.github/actions/setup-macos-aarch64-builder/action.yaml b/.github/actions/setup-macos-aarch64-builder/action.yaml
index 06fddebe95..b62370447a 100644
--- a/.github/actions/setup-macos-aarch64-builder/action.yaml
+++ b/.github/actions/setup-macos-aarch64-builder/action.yaml
@@ -44,7 +44,7 @@ runs:
rustup default stable
rustup component add rustfmt
- name: Setup rust cache
- uses: Swatinem/rust-cache@v2
+ uses: Swatinem/rust-cache@f13886b937689c021905a6b90929199931d60db1 # v2.8.1
with:
save-if: ${{ github.ref_name == 'main' }}
- name: Configure rust runtime env
diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml
index 9fe8975d0c..29f320539a 100644
--- a/.github/workflows/audit.yml
+++ b/.github/workflows/audit.yml
@@ -42,7 +42,7 @@ jobs:
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Install cargo-audit
- uses: taiki-e/install-action@3216b6964cbfe053bb8b9a2ef245bd9300e2061d # v2
+ uses: taiki-e/install-action@3216b6964cbfe053bb8b9a2ef245bd9300e2061d # v2.62.14
with:
tool: cargo-audit
- name: Run audit check
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index 56fea62214..ca030fe6d1 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@ -412,7 +412,7 @@ jobs:
sudo apt-get update -qq
sudo apt-get install -y -qq clang
- name: Setup wasm-pack
- uses: taiki-e/install-action@3216b6964cbfe053bb8b9a2ef245bd9300e2061d # v2
+ uses: taiki-e/install-action@3216b6964cbfe053bb8b9a2ef245bd9300e2061d # v2.62.14
with:
tool: wasm-pack
- name: Run tests with headless mode
@@ -739,7 +739,7 @@ jobs:
- name: Setup Rust toolchain
uses: ./.github/actions/setup-builder
- name: Install cargo-msrv
- uses: taiki-e/install-action@3216b6964cbfe053bb8b9a2ef245bd9300e2061d # v2
+ uses: taiki-e/install-action@3216b6964cbfe053bb8b9a2ef245bd9300e2061d # v2.62.14
with:
tool: cargo-msrv
@@ -781,7 +781,7 @@ jobs:
name: Spell Check with Typos
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
+ - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
persist-credentials: false
- - uses: crate-ci/typos@v1
+ - uses: crate-ci/typos@6d35b835f6f431bbe715c4c1ccd2c7d3264e11fb # v1.37.0
diff --git a/datafusion/common/src/scalar/mod.rs b/datafusion/common/src/scalar/mod.rs
index bba994dd11..8182e4fd47 100644
--- a/datafusion/common/src/scalar/mod.rs
+++ b/datafusion/common/src/scalar/mod.rs
@@ -2551,7 +2551,7 @@ impl ScalarValue {
Arc::new(array)
}
// explicitly enumerate unsupported types so newly added
- // types must be aknowledged, Time32 and Time64 types are
+ // types must be acknowledged, Time32 and Time64 types are
// not supported if the TimeUnit is not valid (Time32 can
// only be used with Second and Millisecond, Time64 only
// with Microsecond and Nanosecond)
diff --git a/datafusion/core/src/datasource/listing/table.rs b/datafusion/core/src/datasource/listing/table.rs
index 18d84c4ba0..08066d14d9 100644
--- a/datafusion/core/src/datasource/listing/table.rs
+++ b/datafusion/core/src/datasource/listing/table.rs
@@ -1134,7 +1134,7 @@ impl ListingTable {
}
}
-// Expressions can be used for parttion pruning if they can be evaluated using
+// Expressions can be used for partition pruning if they can be evaluated using
// only the partition columns and there are partition columns.
fn can_be_evaluated_for_partition_pruning(
partition_column_names: &[&str],
diff --git a/datafusion/core/tests/physical_optimizer/filter_pushdown/mod.rs b/datafusion/core/tests/physical_optimizer/filter_pushdown/mod.rs
index 41ddfaa100..f002355f66 100644
--- a/datafusion/core/tests/physical_optimizer/filter_pushdown/mod.rs
+++ b/datafusion/core/tests/physical_optimizer/filter_pushdown/mod.rs
@@ -1102,7 +1102,7 @@ async fn test_hashjoin_dynamic_filter_pushdown_partitioned() {
Arc::new(CoalesceBatchesExec::new(hash_join, 8192)) as Arc<dyn ExecutionPlan>;
// Top-level CoalescePartitionsExec
let cp = Arc::new(CoalescePartitionsExec::new(cb)) as Arc<dyn ExecutionPlan>;
- // Add a sort for determistic output
+ // Add a sort for deterministic output
let plan = Arc::new(SortExec::new(
LexOrdering::new(vec![PhysicalSortExpr::new(
col("a", &probe_side_schema).unwrap(),
@@ -1303,7 +1303,7 @@ async fn test_hashjoin_dynamic_filter_pushdown_collect_left() {
Arc::new(CoalesceBatchesExec::new(hash_join, 8192)) as Arc<dyn ExecutionPlan>;
// Top-level CoalescePartitionsExec
let cp = Arc::new(CoalescePartitionsExec::new(cb)) as Arc<dyn ExecutionPlan>;
- // Add a sort for determistic output
+ // Add a sort for deterministic output
let plan = Arc::new(SortExec::new(
LexOrdering::new(vec![PhysicalSortExpr::new(
col("a", &probe_side_schema).unwrap(),
diff --git a/datafusion/physical-expr/src/expressions/case.rs b/datafusion/physical-expr/src/expressions/case.rs
index 65a2108266..5409cfe8e7 100644
--- a/datafusion/physical-expr/src/expressions/case.rs
+++ b/datafusion/physical-expr/src/expressions/case.rs
@@ -1070,7 +1070,6 @@ mod tests {
.into_iter()
.collect();
- //let valid_array = vec![true, false, false, true, false, tru
let null_buffer = Buffer::from([0b00101001u8]);
let load4 = load4
.into_data()
diff --git a/docs/source/user-guide/introduction.md b/docs/source/user-guide/introduction.md
index 336036c331..dc4825dc06 100644
--- a/docs/source/user-guide/introduction.md
+++ b/docs/source/user-guide/introduction.md
@@ -86,7 +86,7 @@ Here are some example systems built using DataFusion:
By using DataFusion, projects are freed to focus on their specific
features, and avoid reimplementing general (but still necessary)
features such as an expression representation, standard optimizations,
-parellelized streaming execution plans, file format support, etc.
+parallelized streaming execution plans, file format support, etc.
## Known Users
diff --git a/typos.toml b/typos.toml
index e4b57f5c14..09c5c55c45 100644
--- a/typos.toml
+++ b/typos.toml
@@ -34,6 +34,9 @@ alph = "alph"
wih = "wih"
Ded = "Ded"
+# From SLT README
+nteger = "nteger"
+
[files]
extend-exclude = [
"*.slt",