Skip to content

Commit e4f6a14

Browse files
Fix instances of "the the" to be "the" in comments/docs (#18478)
## Which issue does this PR close? <!-- We generally require a GitHub issue to be filed for all bug fixes and enhancements and this helps us generate change logs for our releases. You can link an issue to this PR using the GitHub syntax. For example `Closes #123` indicates that this PR will close issue #123. --> There's no issue for this, just some simple text fixes. ## Rationale for this change <!-- Why are you proposing this change? If this is already explained clearly in the issue then this section is not needed. Explaining clearly why changes are proposed helps reviewers understand your changes and offer better suggestions for fixes. --> While "the the" *can* be grammatically correct, in these instances it was not. ## What changes are included in this PR? <!-- There is no need to duplicate the description in the issue here but it is sometimes worth providing a summary of the individual changes in this PR. --> "the the" -> "the" ## Are these changes tested? <!-- We typically require tests for all PRs in order to: 1. Prevent the code from being accidentally broken by subsequent changes 2. Serve as another way to document the expected behavior of the code If tests are not included in your PR, please explain why (for example, are they covered by existing tests)? --> Not at as such, no. ## Are there any user-facing changes? <!-- If there are user-facing changes then we may require documentation to be updated before approving the PR. --> <!-- If there are any breaking changes to public APIs, please add the `api change` label. --> Yes, in both code docs and in the website.
1 parent 9f0df74 commit e4f6a14

File tree

9 files changed

+13
-13
lines changed

9 files changed

+13
-13
lines changed

datafusion/datasource-parquet/src/source.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ impl FileSource for ParquetSource {
504504
) {
505505
(Some(expr_adapter_factory), Some(schema_adapter_factory)) => {
506506
// Use both the schema adapter factory and the expr adapter factory.
507-
// This results in the the SchemaAdapter being used for projections (e.g. a column was selected that is a UInt32 in the file and a UInt64 in the table schema)
507+
// This results in the SchemaAdapter being used for projections (e.g. a column was selected that is a UInt32 in the file and a UInt64 in the table schema)
508508
// but the PhysicalExprAdapterFactory being used for predicate pushdown and stats pruning.
509509
(
510510
Some(Arc::clone(expr_adapter_factory)),

datafusion/expr/src/expr.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ impl From<sqlparser::ast::NullTreatment> for NullTreatment {
100100
///
101101
/// # Printing Expressions
102102
///
103-
/// You can print `Expr`s using the the `Debug` trait, `Display` trait, or
103+
/// You can print `Expr`s using the `Debug` trait, `Display` trait, or
104104
/// [`Self::human_display`]. See the [examples](#examples-displaying-exprs) below.
105105
///
106106
/// If you need SQL to pass to other systems, consider using [`Unparser`].
@@ -990,7 +990,7 @@ impl WindowFunctionDefinition {
990990
}
991991
}
992992

993-
/// Return the the inner window simplification function, if any
993+
/// Return the inner window simplification function, if any
994994
///
995995
/// See [`WindowFunctionSimplification`] for more information
996996
pub fn simplify(&self) -> Option<WindowFunctionSimplification> {
@@ -1077,7 +1077,7 @@ impl WindowFunction {
10771077
}
10781078
}
10791079

1080-
/// Return the the inner window simplification function, if any
1080+
/// Return the inner window simplification function, if any
10811081
///
10821082
/// See [`WindowFunctionSimplification`] for more information
10831083
pub fn simplify(&self) -> Option<WindowFunctionSimplification> {

datafusion/physical-plan/src/execution_plan.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ impl ExecutionPlanProperties for &dyn ExecutionPlan {
797797
/// For unbounded streams, it also tracks whether the operator requires finite memory
798798
/// to process the stream or if memory usage could grow unbounded.
799799
///
800-
/// Boundedness of the output stream is based on the the boundedness of the input stream and the nature of
800+
/// Boundedness of the output stream is based on the boundedness of the input stream and the nature of
801801
/// the operator. For example, limit or topk with fetch operator can convert an unbounded stream to a bounded stream.
802802
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
803803
pub enum Boundedness {

datafusion/physical-plan/src/joins/cross_join.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ impl<T: BatchTransformer> CrossJoinStream<T> {
627627
Poll::Ready(Ok(StatefulStreamResult::Continue))
628628
}
629629

630-
/// Joins the the indexed row of left data with the current probe batch.
630+
/// Joins the indexed row of left data with the current probe batch.
631631
/// If all the results are produced, the state is set to fetch new probe batch.
632632
fn build_batches(&mut self) -> Result<StatefulStreamResult<Option<RecordBatch>>> {
633633
let right_batch = self.state.try_as_record_batch()?;

datafusion/physical-plan/src/joins/sort_merge_join/stream.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,7 @@ impl SortMergeJoinStream {
10311031
let mut join_streamed = false;
10321032
// Whether to join buffered rows
10331033
let mut join_buffered = false;
1034-
// For Mark join we store a dummy id to indicate the the row has a match
1034+
// For Mark join we store a dummy id to indicate the row has a match
10351035
let mut mark_row_as_match = false;
10361036

10371037
// determine whether we need to join streamed/buffered rows
@@ -1140,7 +1140,7 @@ impl SortMergeJoinStream {
11401140
} else {
11411141
Some(self.buffered_data.scanning_batch_idx)
11421142
};
1143-
// For Mark join we store a dummy id to indicate the the row has a match
1143+
// For Mark join we store a dummy id to indicate the row has a match
11441144
let scanning_idx = mark_row_as_match.then_some(0);
11451145

11461146
self.streamed_batch

datafusion/physical-plan/src/repartition/distributor_channels.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ impl<T> Clone for DistributionSender<T> {
151151
impl<T> Drop for DistributionSender<T> {
152152
fn drop(&mut self) {
153153
let n_senders_pre = self.channel.n_senders.fetch_sub(1, Ordering::SeqCst);
154-
// is the the last copy of the sender side?
154+
// is the last copy of the sender side?
155155
if n_senders_pre > 1 {
156156
return;
157157
}

datafusion/sqllogictest/test_files/select.slt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1912,7 +1912,7 @@ select * from t_with_user where user = 'foo';
19121912
statement count 0
19131913
create table t_with_current_time(a int, current_time text) as values (1,'now'), (2,null), (3,'later');
19141914

1915-
# here it's clear the the column was meant
1915+
# here it's clear the column was meant
19161916
query B
19171917
select t_with_current_time.current_time is not null from t_with_current_time;
19181918
----

docs/source/user-guide/sql/dml.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ of hive-style partitioned parquet files:
8888
+-------+
8989
```
9090

91-
If the the data contains values of `x` and `y` in column1 and only `a` in
91+
If the data contains values of `x` and `y` in column1 and only `a` in
9292
column2, output files will appear in the following directory structure:
9393

9494
```text

docs/source/user-guide/sql/subqueries.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ FROM
183183
and return _true_ or _false_.
184184
Rows that evaluate to _false_ or NULL are filtered from results.
185185
The `WHERE` clause supports correlated and non-correlated subqueries
186-
as well as scalar and non-scalar subqueries (depending on the the operator used
186+
as well as scalar and non-scalar subqueries (depending on the operator used
187187
in the predicate expression).
188188

189189
```sql
@@ -293,7 +293,7 @@ returned by aggregate functions in the `SELECT` clause to the result of the
293293
subquery and return _true_ or _false_.
294294
Rows that evaluate to _false_ are filtered from results.
295295
The `HAVING` clause supports correlated and non-correlated subqueries
296-
as well as scalar and non-scalar subqueries (depending on the the operator used
296+
as well as scalar and non-scalar subqueries (depending on the operator used
297297
in the predicate expression).
298298

299299
```sql

0 commit comments

Comments
 (0)