Skip to content

Commit f3838e0

Browse files
peter-tothalamb
authored andcommitted
Fix and improve CommonSubexprEliminate rule (apache#10396)
* Revert "fix(9870): common expression elimination optimization, should always re-find the correct expression during re-write. (apache#9871)" This reverts commit cd7a00b. * expr id should always contain the full expr structure, cleaner expr ids, better JumpMark handling, better variable names, code cleanup, some new todos * move `Expr` from `expr_set`s to `affected_id`s * better naming, docs fixes * introduce `CommonExprs` type alias, minor todo fix * add test --------- Co-authored-by: Andrew Lamb <[email protected]>
1 parent 741c2e5 commit f3838e0

File tree

7 files changed

+500
-385
lines changed

7 files changed

+500
-385
lines changed

datafusion/expr/src/logical_plan/plan.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2245,7 +2245,7 @@ impl DistinctOn {
22452245

22462246
/// Aggregates its input based on a set of grouping and aggregate
22472247
/// expressions (e.g. SUM).
2248-
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
2248+
#[derive(Clone, PartialEq, Eq, Hash)]
22492249
// mark non_exhaustive to encourage use of try_new/new()
22502250
#[non_exhaustive]
22512251
pub struct Aggregate {

0 commit comments

Comments
 (0)