Adapt tests to default optimizations

This commit is contained in:
Raúl Marín 2024-11-13 19:00:14 +01:00
parent 66ebdd050e
commit 0575be39f3
4 changed files with 33 additions and 23 deletions

View File

@ -163,6 +163,7 @@ Filter column: notEquals(__table1.y, 2_UInt8)
> filter is pushed down before CreatingSets > filter is pushed down before CreatingSets
CreatingSets CreatingSets
Filter Filter
Filter
1 1
3 3
> one condition of filter is pushed down before LEFT JOIN > one condition of filter is pushed down before LEFT JOIN

View File

@ -332,7 +332,8 @@ SETTINGS optimize_aggregators_of_group_by_keys=0 -- avoid removing any() as it d
Expression (Projection) Expression (Projection)
Sorting (Sorting for ORDER BY) Sorting (Sorting for ORDER BY)
Expression (Before ORDER BY) Expression (Before ORDER BY)
Filter (((WHERE + (Projection + Before ORDER BY)) + HAVING)) Filter ((WHERE + (Projection + Before ORDER BY)))
Filter (HAVING)
Aggregating Aggregating
Expression ((Before GROUP BY + Projection)) Expression ((Before GROUP BY + Projection))
Sorting (Sorting for ORDER BY) Sorting (Sorting for ORDER BY)

View File

@ -28,7 +28,11 @@ WHERE type_1 = \'all\'
(Expression) (Expression)
ExpressionTransform × 2 ExpressionTransform × 2
(Filter) (Filter)
FilterTransform × 6 FilterTransform × 2
(Filter)
FilterTransform × 2
(Filter)
FilterTransform × 2
(Aggregating) (Aggregating)
ExpressionTransform × 2 ExpressionTransform × 2
AggregatingTransform × 2 AggregatingTransform × 2
@ -64,6 +68,10 @@ ExpressionTransform × 2
ExpressionTransform × 2 ExpressionTransform × 2
AggregatingTransform × 2 AggregatingTransform × 2
Copy 1 → 2 Copy 1 → 2
(Filter)
FilterTransform
(Filter)
FilterTransform
(Expression) (Expression)
ExpressionTransform ExpressionTransform
(ReadFromMergeTree) (ReadFromMergeTree)

View File

@ -1,2 +1,2 @@
Condition: and((materialize(auid) in [1, 1]), (_CAST(toDate(ts)) in (-Inf, 1703980800])) Condition: (_CAST(toDate(ts)) in (-Inf, 1703980800])
Granules: 1/3 Granules: 3/3