Skip to content

Commit 14cc174

Browse files
Chris BoumalhabHyukjinKwon
authored andcommitted
[SPARK-54802][SQL][DOCS] Fix typos in OrderedFilters.scala
### What changes were proposed in this pull request? Found 3 typos in OrderedFilters.scala ### Why are the changes needed? Fix grammar ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? N/A ### Was this patch authored or co-authored using generative AI tooling? No Closes #53566 from cboumalh/cboumalh-typos-fix-1. Authored-by: Chris Boumalhab <[email protected]> Signed-off-by: Hyukjin Kwon <[email protected]>
1 parent 4357501 commit 14cc174

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/OrderedFilters.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class OrderedFilters(filters: Seq[sources.Filter], requiredSchema: StructType)
3333
extends StructFilters(filters, requiredSchema) {
3434
/**
3535
* Converted filters to predicates and grouped by maximum field index
36-
* in the read schema. For example, if an filter refers to 2 attributes
36+
* in the read schema. For example, if a filter refers to 2 attributes
3737
* attrA with field index 5 and attrB with field index 10 in the read schema:
3838
* 0 === $"attrA" or $"attrB" < 100
3939
* the filter is compiled to a predicate, and placed to the `predicates`
@@ -64,7 +64,7 @@ class OrderedFilters(filters: Seq[sources.Filter], requiredSchema: StructType)
6464
}
6565
if (len > 0 && groupedFilters(0).nonEmpty) {
6666
// We assume that filters w/o refs like `AlwaysTrue` and `AlwaysFalse`
67-
// can be evaluated faster that others. We put them in front of others.
67+
// can be evaluated faster than others. We put them in front of others.
6868
val (literals, others) = groupedFilters(0).partition(_.references.isEmpty)
6969
groupedFilters(0) = literals ++ others
7070
}
@@ -81,7 +81,7 @@ class OrderedFilters(filters: Seq[sources.Filter], requiredSchema: StructType)
8181
* @param row The internal row to check.
8282
* @param index Maximum field index. The function assumes that all fields
8383
* from 0 to `index` position are set.
84-
* @return false` iff row fields at the position from 0 to `index` pass filters
84+
* @return `false` iff row fields at the position from 0 to `index` pass filters
8585
* or there are no applicable filters
8686
* otherwise `false` if at least one of the filters returns `false`.
8787
*/

0 commit comments

Comments
 (0)