Skip to content

Commit f739fd8

Browse files
authored
docs: typo in working-with-exprs.md (#18033)
* docs: Update working-with-exprs.md for clarity and structure * chore * chore
1 parent fd3ccf8 commit f739fd8

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

docs/source/library-user-guide/building-logical-plans.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,9 @@ Filter: person.id > Int32(500) [id:Int32;N, name:Utf8;N]
153153
Logical plans can not be directly executed. They must be "compiled" into an
154154
[`ExecutionPlan`], which is often referred to as a "physical plan".
155155

156-
Compared to `LogicalPlan`s `ExecutionPlans` have many more details such as
157-
specific algorithms and detailed optimizations compared to. Given a
158-
`LogicalPlan` the easiest way to create an `ExecutionPlan` is using
156+
Compared to `LogicalPlan`s, `ExecutionPlan`s have many more details such as
157+
specific algorithms and detailed optimizations. Given a
158+
`LogicalPlan`, the easiest way to create an `ExecutionPlan` is using
159159
[`SessionState::create_physical_plan`] as shown below
160160

161161
```rust

docs/source/library-user-guide/working-with-exprs.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ As the writer of a library, you can use `Expr`s to represent computations that y
5252

5353
## Arrow Schema and DataFusion DFSchema
5454

55-
Apache Arrow `Schema` provides a lightweight structure for defining data, and Apache Datafusion`DFSchema` extends it with extra information such as column qualifiers and functional dependencies. Column qualifiers are multi part path to the table e.g table, schema, catalog. Functional Dependency is the relationship between attributes(characteristics) of a table related to each other.
55+
Apache Arrow `Schema` provides a lightweight structure for defining data, and Apache Datafusion `DFSchema` extends it with extra information such as column qualifiers and functional dependencies. Column qualifiers are multi part path to the table e.g table, schema, catalog. Functional Dependency is the relationship between attributes(characteristics) of a table related to each other.
5656

5757
### Difference between Schema and DFSchema
5858

5959
- Schema: A fundamental component of Apache Arrow, `Schema` defines a dataset's structure, specifying column names and their data types.
6060

61-
> Please see [Struct Schema](https://docs.rs/arrow-schema/54.2.1/arrow_schema/struct.Schema.html) for a detailed document of Arrow Schema.
61+
> Please see [Struct Schema](https://docs.rs/arrow-schema/latest/arrow_schema/struct.Schema.html) for a detailed document of Arrow Schema.
6262
6363
- DFSchema: Extending `Schema`, `DFSchema` incorporates qualifiers such as table names, enabling it to carry additional context when required. This is particularly valuable for managing queries across multiple tables.
6464
> Please see [Struct DFSchema](https://docs.rs/datafusion/latest/datafusion/common/struct.DFSchema.html) for a detailed document of DFSchema.
@@ -121,7 +121,7 @@ If you'd like to learn more about `Expr`s, before we get into the details of cre
121121

122122
## Rewriting `Expr`s
123123

124-
There are several examples of rewriting and working with `Exprs`:
124+
There are several examples of rewriting and working with `Expr`s:
125125

126126
- [expr_api.rs](https://github.com/apache/datafusion/blob/main/datafusion-examples/examples/expr_api.rs)
127127
- [analyzer_rule.rs](https://github.com/apache/datafusion/blob/main/datafusion-examples/examples/analyzer_rule.rs)
@@ -162,7 +162,7 @@ fn rewrite_add_one(expr: Expr) -> Result<Transformed<Expr>> {
162162

163163
### Creating an `OptimizerRule`
164164

165-
In DataFusion, an `OptimizerRule` is a trait that supports rewriting`Expr`s that appear in various parts of the `LogicalPlan`. It follows DataFusion's general mantra of trait implementations to drive behavior.
165+
In DataFusion, an `OptimizerRule` is a trait that supports rewriting `Expr`s that appear in various parts of the `LogicalPlan`. It follows DataFusion's general mantra of trait implementations to drive behavior.
166166

167167
We'll call our rule `AddOneInliner` and implement the `OptimizerRule` trait. The `OptimizerRule` trait has two methods:
168168

0 commit comments

Comments
 (0)