File tree Expand file tree Collapse file tree 2 files changed +7
-9
lines changed
docs/source/library-user-guide Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Original file line number Diff line number Diff 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.
11381144impl Hash for DFSchema {
11391145 fn hash < H : std:: hash:: Hasher > ( & self , state : & mut H ) {
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments