You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/library-user-guide/upgrading.md
+103Lines changed: 103 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -355,6 +355,109 @@ Instead of silently succeeding.
355
355
356
356
The remove API no longer requires a mutable instance
357
357
358
+
### `SimplifyInfo` trait removed, `SimplifyContext` now uses builder-style API
359
+
360
+
The `SimplifyInfo` trait has been removed and replaced with the concrete `SimplifyContext` struct. This simplifies the expression simplification API and removes the need for trait objects.
361
+
362
+
**Who is affected:**
363
+
364
+
- Users who implemented custom `SimplifyInfo` implementations
365
+
- Users who implemented `ScalarUDFImpl::simplify()` for custom scalar functions
366
+
- Users who directly use `SimplifyContext` or `ExprSimplifier`
367
+
368
+
**Breaking changes:**
369
+
370
+
1. The `SimplifyInfo` trait has been removed entirely
371
+
2.`SimplifyContext` no longer takes `&ExecutionProps` - it now uses a builder-style API with direct fields
372
+
3.`ScalarUDFImpl::simplify()` now takes `&SimplifyContext` instead of `&dyn SimplifyInfo`
373
+
4. Time-dependent function simplification (e.g., `now()`) is now optional - if `query_execution_start_time` is `None`, these functions won't be simplified
0 commit comments