Skip to content

Commit fffef95

Browse files
committed
fix some
Signed-off-by: Ruihang Xia <[email protected]>
1 parent 6d620ef commit fffef95

File tree

13 files changed

+21
-17
lines changed

13 files changed

+21
-17
lines changed

datafusion/core/src/bin/print_functions_docs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ fn print_docs(
260260
}
261261
}
262262

263-
/// Trait for accessing name / aliases / documentation for differnet functions
263+
/// Trait for accessing name / aliases / documentation for different functions
264264
trait DocProvider {
265265
fn get_name(&self) -> String;
266266
fn get_aliases(&self) -> Vec<String>;

datafusion/core/src/datasource/listing/table.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1106,7 +1106,7 @@ impl ListingTable {
11061106
}
11071107

11081108
// Expressions can be used for parttion pruning if they can be evaluated using
1109-
// only the partiton columns and there are partition columns.
1109+
// only the partition columns and there are partition columns.
11101110
fn can_be_evaluated_for_partition_pruning(
11111111
partition_column_names: &[&str],
11121112
expr: &Expr,

datafusion/core/src/physical_planner.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2352,7 +2352,7 @@ impl<'n> TreeNodeVisitor<'n> for OptimizationInvariantChecker<'_> {
23522352

23532353
fn f_down(&mut self, node: &'n Self::Node) -> Result<TreeNodeRecursion> {
23542354
// Checks for the more permissive `InvariantLevel::Always`.
2355-
// Plans are not guarenteed to be executable after each physical optimizer run.
2355+
// Plans are not guaranteed to be executable after each physical optimizer run.
23562356
node.check_invariants(InvariantLevel::Always).map_err(|e|
23572357
e.context(format!("Invariant for ExecutionPlan node '{}' failed for PhysicalOptimizer rule '{}'", node.name(), self.rule.name()))
23582358
)?;

datafusion/core/tests/fuzz_cases/pruning.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ impl Utf8Test {
201201
}
202202
}
203203

204-
/// all combinations of interesting charactes with lengths ranging from 1 to 4
204+
/// all combinations of interesting characters with lengths ranging from 1 to 4
205205
fn values() -> &'static [String] {
206206
&VALUES
207207
}

datafusion/core/tests/fuzz_cases/topk_filter_pushdown.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ struct RunQueryResult {
219219
}
220220

221221
impl RunQueryResult {
222-
fn expected_formated(&self) -> String {
222+
fn expected_formatted(&self) -> String {
223223
format!("{}", pretty_format_batches(&self.expected).unwrap())
224224
}
225225

@@ -228,7 +228,7 @@ impl RunQueryResult {
228228
}
229229

230230
fn is_ok(&self) -> bool {
231-
self.expected_formated() == self.result_formatted()
231+
self.expected_formatted() == self.result_formatted()
232232
}
233233
}
234234

@@ -374,7 +374,7 @@ async fn test_fuzz_topk_filter_pushdown() {
374374
for failure in &failures {
375375
println!("Failure:");
376376
println!("Query:\n{}", failure.query);
377-
println!("\nExpected:\n{}", failure.expected_formated());
377+
println!("\nExpected:\n{}", failure.expected_formatted());
378378
println!("\nResult:\n{}", failure.result_formatted());
379379
println!("\n\n");
380380
}

datafusion/ffi/src/tests/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ pub struct ForeignLibraryModule {
7575
/// Create an aggregate UDAF using sum
7676
pub create_sum_udaf: extern "C" fn() -> FFI_AggregateUDF,
7777

78-
/// Createa grouping UDAF using stddev
78+
/// Create grouping UDAF using stddev
7979
pub create_stddev_udaf: extern "C" fn() -> FFI_AggregateUDF,
8080

8181
pub create_rank_udwf: extern "C" fn() -> FFI_WindowUDF,

datafusion/ffi/src/udaf/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ pub struct FFI_AggregateUDF {
125125
pub order_sensitivity:
126126
unsafe extern "C" fn(udaf: &FFI_AggregateUDF) -> FFI_AggregateOrderSensitivity,
127127

128-
/// Performs type coersion. To simply this interface, all UDFs are treated as having
128+
/// Performs type coercion. To simply this interface, all UDFs are treated as having
129129
/// user defined signatures, which will in turn call coerce_types to be called. This
130130
/// call should be transparent to most users as the internal function performs the
131131
/// appropriate calls on the underlying [`AggregateUDF`]

datafusion/ffi/src/udf/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ pub struct FFI_ScalarUDF {
9595
/// See [`ScalarUDFImpl`] for details on short_circuits
9696
pub short_circuits: bool,
9797

98-
/// Performs type coersion. To simply this interface, all UDFs are treated as having
98+
/// Performs type coercion. To simply this interface, all UDFs are treated as having
9999
/// user defined signatures, which will in turn call coerce_types to be called. This
100100
/// call should be transparent to most users as the internal function performs the
101101
/// appropriate calls on the underlying [`ScalarUDF`]

datafusion/ffi/src/udwf/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ pub struct FFI_WindowUDF {
8282
display_name: RString,
8383
) -> RResult<WrappedSchema, RString>,
8484

85-
/// Performs type coersion. To simply this interface, all UDFs are treated as having
85+
/// Performs type coercion. To simply this interface, all UDFs are treated as having
8686
/// user defined signatures, which will in turn call coerce_types to be called. This
8787
/// call should be transparent to most users as the internal function performs the
8888
/// appropriate calls on the underlying [`WindowUDF`]

datafusion/functions/src/datetime/to_timestamp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@ mod tests {
804804
}
805805

806806
#[test]
807-
fn to_timestamp_with_unparseable_data() -> Result<()> {
807+
fn to_timestamp_with_unparsable_data() -> Result<()> {
808808
let mut date_string_builder = StringBuilder::with_capacity(2, 1024);
809809

810810
date_string_builder.append_null();

0 commit comments

Comments
 (0)