Skip to content

Commit de2ae01

Browse files
committed
link to docs
1 parent cc1ca91 commit de2ae01

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

datafusion/common/src/dfschema.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,6 +1134,12 @@ impl TryFrom<SchemaRef> for DFSchema {
11341134
}
11351135
}
11361136

1137+
impl From<DFSchema> for SchemaRef {
1138+
fn from(dfschema: DFSchema) -> Self {
1139+
Arc::clone(&dfschema.inner)
1140+
}
1141+
}
1142+
11371143
// Hashing refers to a subset of fields considered in PartialEq.
11381144
impl Hash for DFSchema {
11391145
fn hash<H: std::hash::Hasher>(&self, state: &mut H) {

docs/source/library-user-guide/upgrading.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -448,15 +448,7 @@ let context = SimplifyContext::default()
448448
.with_current_time(); // Sets query_execution_start_time to Utc::now()
449449
```
450450

451-
**Available `SimplifyContext` methods:**
452-
453-
- `with_schema(DFSchemaRef)` - Set the schema for type resolution
454-
- `with_config_options(Arc<ConfigOptions>)` - Set configuration options
455-
- `with_query_execution_start_time(Option<DateTime<Utc>>)` - Set query start time for time-dependent simplification
456-
- `with_current_time()` - Convenience method to set query start time to `Utc::now()`
457-
- `schema()` - Get the schema
458-
- `query_execution_start_time()` - Get the query start time (returns `Option<DateTime<Utc>>`)
459-
- `config_options()` - Get the configuration options
451+
See [`SimplifyContext` documentation](https://docs.rs/datafusion-expr/latest/datafusion_expr/simplify/struct.SimplifyContext.html) for more details.
460452

461453
### FFI crate updates
462454

0 commit comments

Comments
 (0)