Skip to content

Commit 2911068

Browse files
committed
ci: add typo checker
Signed-off-by: Ruihang Xia <[email protected]>
1 parent df153c2 commit 2911068

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
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@master

datafusion/functions/src/datetime/date_trunc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ impl ScalarUDFImpl for DateTruncFunc {
191191
// fast path for fine granularities
192192
if matches!(
193193
granularity.as_str(),
194-
// For morden timezones, it's correct to truncate "minute" in this way.
194+
// For modern timezones, it's correct to truncate "minute" in this way.
195195
// Both datafusion and arrow are ignoring historical timezone's non-minute granularity
196196
// bias (e.g., Asia/Kathmandu before 1919 is UTC+05:41:16).
197197
"second" | "minute" | "millisecond" | "microsecond"

0 commit comments

Comments
 (0)