Skip to content

Commit 3ef9d9c

Browse files
committed
link to docs
1 parent 7fff40a commit 3ef9d9c

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
@@ -544,15 +544,7 @@ let context = SimplifyContext::default()
544544
.with_current_time(); // Sets query_execution_start_time to Utc::now()
545545
```
546546

547-
**Available `SimplifyContext` methods:**
548-
549-
- `with_schema(DFSchemaRef)` - Set the schema for type resolution
550-
- `with_config_options(Arc<ConfigOptions>)` - Set configuration options
551-
- `with_query_execution_start_time(Option<DateTime<Utc>>)` - Set query start time for time-dependent simplification
552-
- `with_current_time()` - Convenience method to set query start time to `Utc::now()`
553-
- `schema()` - Get the schema
554-
- `query_execution_start_time()` - Get the query start time (returns `Option<DateTime<Utc>>`)
555-
- `config_options()` - Get the configuration options
547+
See [`SimplifyContext` documentation](https://docs.rs/datafusion-expr/latest/datafusion_expr/simplify/struct.SimplifyContext.html) for more details.
556548

557549
### FFI crate updates
558550

0 commit comments

Comments
 (0)