Skip to content

Apache DataFusion SQL Query Engine

chore: fix `iff` typos (#21904)

Oleks V5fda21683ed7
diff --git a/datafusion/datasource-parquet/src/row_filter.rs b/datafusion/datasource-parquet/src/row_filter.rs
index c5c3720558..6dfaa731ae 100644
--- a/datafusion/datasource-parquet/src/row_filter.rs
+++ b/datafusion/datasource-parquet/src/row_filter.rs
@@ -768,7 +768,7 @@ fn resolve_struct_field_leaves(
// e.g., prefix=["s", "value"] matches leaf path ["s", "value"]
// prefix=["s", "outer"] matches ["s", "outer", "inner"]
- // a leaf matches iff its path starts with our prefix
+ // a leaf matches if its path starts with our prefix
// for example: prefix=["s", "value"] matches leaf path ["s", "value"]
// prefix=["s", "outer"] matches ["s", "outer", "inner"]
let leaf_matches_path = col_path.len() >= prefix.len()
diff --git a/datafusion/functions/src/unicode/substrindex.rs b/datafusion/functions/src/unicode/substrindex.rs
index d522a35842..3aeff1b476 100644
--- a/datafusion/functions/src/unicode/substrindex.rs
+++ b/datafusion/functions/src/unicode/substrindex.rs
@@ -272,7 +272,7 @@ where
O: OffsetSizeTrait,
{
let num_rows = string_array.len();
- // Output is null IFF any input is null.
+ // Output is null if and only if any input is null.
let nulls = NullBuffer::union(
NullBuffer::union(string_array.nulls(), delimiter_array.nulls()).as_ref(),
count_array.nulls(),
diff --git a/datafusion/sql/src/relation/join.rs b/datafusion/sql/src/relation/join.rs
index 8e1a881730..3343890c6d 100644
--- a/datafusion/sql/src/relation/join.rs
+++ b/datafusion/sql/src/relation/join.rs
@@ -179,7 +179,7 @@ impl<S: ContextProvider> SqlToRel<'_, S> {
}
}
-/// Return `true` iff the given [`TableFactor`] is lateral.
+/// Returns `true` if the given [`TableFactor`] is lateral.
pub(crate) fn is_lateral(factor: &TableFactor) -> bool {
match factor {
TableFactor::Derived { lateral, .. } => *lateral,
@@ -189,7 +189,7 @@ pub(crate) fn is_lateral(factor: &TableFactor) -> bool {
}
}
-/// Return `true` iff the given [`Join`] is lateral.
+/// Returns `true` if the given [`Join`] is lateral.
pub(crate) fn is_lateral_join(join: &Join) -> Result<bool> {
let is_lateral_syntax = is_lateral(&join.relation);
let is_apply_syntax = match join.join_operator {