Skip to content

Commit 6d620ef

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

File tree

12 files changed

+26
-15
lines changed

12 files changed

+26
-15
lines changed

datafusion/core/tests/dataframe/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5666,7 +5666,7 @@ async fn test_alias() -> Result<()> {
56665666
.await?
56675667
.select(vec![col("a"), col("test.b"), lit(1).alias("one")])?
56685668
.alias("table_alias")?;
5669-
// All ouput column qualifiers are changed to "table_alias"
5669+
// All output column qualifiers are changed to "table_alias"
56705670
df.schema().columns().iter().for_each(|c| {
56715671
assert_eq!(c.relation, Some("table_alias".into()));
56725672
});

datafusion/core/tests/fuzz_cases/aggregate_fuzz.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ async fn run_aggregate_test(input1: Vec<RecordBatch>, group_by_columns: Vec<&str
403403
Left Plan:\n{}\n\
404404
Right Plan:\n{}\n\
405405
schema:\n{schema}\n\
406-
Left Ouptut:\n{}\n\
406+
Left Output:\n{}\n\
407407
Right Output:\n{}\n\
408408
input:\n{}\n\
409409
",

datafusion/core/tests/fuzz_cases/sort_query_fuzz.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ impl SortQueryFuzzer {
220220
.test_gen
221221
.fuzzer_run(init_seed, query_seed, config_seed)
222222
.await?;
223-
println!("\n"); // Seperator between tested runs
223+
println!("\n"); // Separator between tested runs
224224

225225
if expected_results.is_none() {
226226
expected_results = Some(results);

datafusion/core/tests/fuzz_cases/topk_filter_pushdown.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,12 +223,12 @@ impl RunQueryResult {
223223
format!("{}", pretty_format_batches(&self.expected).unwrap())
224224
}
225225

226-
fn result_formated(&self) -> String {
226+
fn result_formatted(&self) -> String {
227227
format!("{}", pretty_format_batches(&self.result).unwrap())
228228
}
229229

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

@@ -375,7 +375,7 @@ async fn test_fuzz_topk_filter_pushdown() {
375375
println!("Failure:");
376376
println!("Query:\n{}", failure.query);
377377
println!("\nExpected:\n{}", failure.expected_formated());
378-
println!("\nResult:\n{}", failure.result_formated());
378+
println!("\nResult:\n{}", failure.result_formatted());
379379
println!("\n\n");
380380
}
381381

datafusion/core/tests/physical_optimizer/enforce_distribution.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ impl TestConfig {
441441

442442
/// Perform a series of runs using the current [`TestConfig`],
443443
/// assert the expected plan result,
444-
/// and return the result plan (for potentional subsequent runs).
444+
/// and return the result plan (for potential subsequent runs).
445445
fn run(
446446
&self,
447447
expected_lines: &[&str],

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ async fn test_dynamic_filter_pushdown_through_hash_join_with_topk() {
233233
config.optimizer.enable_dynamic_filter_pushdown = true;
234234
config.execution.parquet.pushdown_filters = true;
235235

236-
// Appy the FilterPushdown optimizer rule
236+
// Apply the FilterPushdown optimizer rule
237237
let plan = FilterPushdown::new_post_optimization()
238238
.optimize(Arc::clone(&plan), &config)
239239
.unwrap();
@@ -600,7 +600,7 @@ fn test_no_pushdown_through_aggregates() {
600600
}
601601

602602
/// Test various combinations of handling of child pushdown results
603-
/// in an ExectionPlan in combination with support/not support in a DataSource.
603+
/// in an ExecutionPlan in combination with support/not support in a DataSource.
604604
#[test]
605605
fn test_node_handles_child_pushdown_result() {
606606
// If we set `with_support(true)` + `inject_filter = true` then the filter is pushed down to the DataSource

datafusion/expr/src/logical_plan/plan.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3797,7 +3797,7 @@ impl Join {
37973797
})
37983798
}
37993799

3800-
/// Create Join with input which wrapped with projection, this method is used in physcial planning only to help
3800+
/// Create Join with input which wrapped with projection, this method is used in physical planning only to help
38013801
/// create the physical join.
38023802
pub fn try_new_with_project_input(
38033803
original: &LogicalPlan,

datafusion/ffi/src/catalog_provider.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ mod tests {
327327
assert!(returned_schema.is_some());
328328
assert_eq!(foreign_catalog.schema_names().len(), 1);
329329

330-
// Retrieve non-existant schema
330+
// Retrieve non-existent schema
331331
let returned_schema = foreign_catalog.schema("prior_schema");
332332
assert!(returned_schema.is_none());
333333

datafusion/ffi/src/schema_provider.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ mod tests {
366366
assert!(returned_schema.is_some());
367367
assert_eq!(foreign_schema_provider.table_names().len(), 1);
368368

369-
// Retrieve non-existant table
369+
// Retrieve non-existent table
370370
let returned_schema = foreign_schema_provider
371371
.table("prior_table")
372372
.await

datafusion/ffi/src/util.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ macro_rules! df_result {
3636
};
3737
}
3838

39-
/// This macro is a helpful conversion utility to conver from a DataFusion Result to an abi_stable::RResult
39+
/// This macro is a helpful conversion utility to convert from a DataFusion Result to an abi_stable::RResult
4040
#[macro_export]
4141
macro_rules! rresult {
4242
( $x:expr ) => {
@@ -49,7 +49,7 @@ macro_rules! rresult {
4949
};
5050
}
5151

52-
/// This macro is a helpful conversion utility to conver from a DataFusion Result to an abi_stable::RResult
52+
/// This macro is a helpful conversion utility to convert from a DataFusion Result to an abi_stable::RResult
5353
/// and to also call return when it is an error. Since you cannot use `?` on an RResult, this is designed
5454
/// to mimic the pattern.
5555
#[macro_export]

0 commit comments

Comments
 (0)