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
@@ -451,6 +451,109 @@ Instead of silently succeeding.
451
451
452
452
The remove API no longer requires a mutable instance
453
453
454
+
### `SimplifyInfo` trait removed, `SimplifyContext` now uses builder-style API
455
+
456
+
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.
457
+
458
+
**Who is affected:**
459
+
460
+
- Users who implemented custom `SimplifyInfo` implementations
461
+
- Users who implemented `ScalarUDFImpl::simplify()` for custom scalar functions
462
+
- Users who directly use `SimplifyContext` or `ExprSimplifier`
463
+
464
+
**Breaking changes:**
465
+
466
+
1. The `SimplifyInfo` trait has been removed entirely
467
+
2.`SimplifyContext` no longer takes `&ExecutionProps` - it now uses a builder-style API with direct fields
468
+
3.`ScalarUDFImpl::simplify()` now takes `&SimplifyContext` instead of `&dyn SimplifyInfo`
469
+
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