Skip to content

Commit df58844

Browse files
waynexiaJefffrey
andauthored
add a ci job for typo checking (#17339)
* add a ci job for typo checking Signed-off-by: Ruihang Xia <[email protected]> * correct version number Signed-off-by: Ruihang Xia <[email protected]> * fix new occurs Signed-off-by: Ruihang Xia <[email protected]> * Update datafusion/core/tests/physical_optimizer/filter_pushdown/mod.rs Co-authored-by: Jeffrey Vo <[email protected]> --------- Signed-off-by: Ruihang Xia <[email protected]> Co-authored-by: Jeffrey Vo <[email protected]>
1 parent 1c86ec7 commit df58844

File tree

5 files changed

+58
-4
lines changed

5 files changed

+58
-4
lines changed

.github/workflows/rust.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -781,3 +781,11 @@ jobs:
781781
- name: Check datafusion-proto
782782
working-directory: datafusion/proto
783783
run: cargo msrv --output-format json --log-target stdout verify
784+
typos:
785+
name: Spell Check with Typos
786+
runs-on: ubuntu-latest
787+
steps:
788+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
789+
with:
790+
persist-credentials: false
791+
- uses: crate-ci/typos@v1

datafusion/core/tests/physical_optimizer/filter_pushdown/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1095,7 +1095,7 @@ async fn test_hashjoin_dynamic_filter_pushdown_partitioned() {
10951095
// Top-level CoalesceBatchesExec
10961096
let cb =
10971097
Arc::new(CoalesceBatchesExec::new(hash_join, 8192)) as Arc<dyn ExecutionPlan>;
1098-
// Top-level CoalesceParititionsExec
1098+
// Top-level CoalescePartitionsExec
10991099
let cp = Arc::new(CoalescePartitionsExec::new(cb)) as Arc<dyn ExecutionPlan>;
11001100
// Add a sort for determistic output
11011101
let plan = Arc::new(SortExec::new(

datafusion/physical-plan/src/joins/join_filter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub struct JoinFilter {
3434
}
3535

3636
/// For display in `EXPLAIN` plans, only expression with column names is needed,
37-
/// it output expresion like `(col1 + col2) = 0`
37+
/// it output expression like `(col1 + col2) = 0`
3838
impl Display for JoinFilter {
3939
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
4040
self.expression.fmt_sql(f)

datafusion/physical-plan/src/joins/nested_loop_join.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ impl Stream for NestedLoopJoinStream {
827827
// side batch, before start joining.
828828
NLJState::BufferingLeft => {
829829
debug!("[NLJState] Entering: {:?}", self.state);
830-
// inside `collect_left_input` (the rountine to buffer build
830+
// inside `collect_left_input` (the routine to buffer build
831831
// -side batches), related metrics except build time will be
832832
// updated.
833833
// stop on drop
@@ -1583,7 +1583,7 @@ fn apply_filter_to_row_join_batch(
15831583
/// 30
15841584
/// 40
15851585
///
1586-
/// # After applying it, only index 1 and 3 elemnt in probe_side_batch will be
1586+
/// # After applying it, only index 1 and 3 elements in probe_side_batch will be
15871587
/// # kept
15881588
/// probe_side_filter:
15891589
/// false

typos.toml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
[default.extend-words]
2+
# random words from unit tests
3+
Pn = "Pn"
4+
fo = "fo"
5+
nd = "nd"
6+
Nd = "Nd"
7+
ba = "ba"
8+
ECT = "ECT"
9+
Ue = "Ue"
10+
Iy = "Iy"
11+
hte = "hte"
12+
numer = "numer"
13+
abd = "abd"
14+
aroun = "aroun"
15+
abov = "abov"
16+
Ois = "Ois"
17+
alo = "alo"
18+
19+
# abbreviations, common words, etc.
20+
typ = "typ"
21+
datas = "datas"
22+
YOUY = "YOUY"
23+
lits = "lits"
24+
25+
# exposed to public API
26+
Serializeable = "Serializeable"
27+
28+
# from test cases like TPC-* or ClickBench
29+
carefull = "carefull"
30+
precentage = "precentage"
31+
flate = "flate"
32+
hom = "hom"
33+
alph = "alph"
34+
wih = "wih"
35+
Ded = "Ded"
36+
37+
[files]
38+
extend-exclude = [
39+
"*.slt",
40+
"*.slt.part",
41+
"*.svg",
42+
"*.sql",
43+
"dev/changelog/**",
44+
"benchmarks/**",
45+
"*.csv"
46+
]

0 commit comments

Comments
 (0)