Skip to content

Apache DataFusion SQL Query Engine

Fix typos in doc comments (#945)

Andrew Lamb52d2f7e1f215
diff --git a/datafusion/src/optimizer/utils.rs b/datafusion/src/optimizer/utils.rs
index 2f1a081a91..435daefb88 100644
--- a/datafusion/src/optimizer/utils.rs
+++ b/datafusion/src/optimizer/utils.rs
@@ -207,7 +207,7 @@ pub fn from_plan(
})
}
LogicalPlan::Explain { .. } => {
- // Explain shoudl be handled specially in the optimizers;
+ // Explain should be handled specially in the optimizers;
// If this assert fails it means some optimizer pass is
// trying to optimize Explain directly
assert!(
diff --git a/datafusion/tests/sql.rs b/datafusion/tests/sql.rs
index 8aae3d9507..adda141830 100644
--- a/datafusion/tests/sql.rs
+++ b/datafusion/tests/sql.rs
@@ -3241,7 +3241,7 @@ async fn query_group_on_null_multi_col() -> Result<()> {
];
assert_batches_sorted_eq!(expected, &actual);
- // Also run query with group columns reversed (results shoudl be the same)
+ // Also run query with group columns reversed (results should be the same)
let sql = "SELECT COUNT(*), c1, c2 FROM test GROUP BY c2, c1";
let actual = execute_to_batches(&mut ctx, sql).await;
assert_batches_sorted_eq!(expected, &actual);