2021-02-12 11:31:14 +00:00
|
|
|
> sipHash should be calculated after filtration
|
2021-01-19 13:35:26 +00:00
|
|
|
FUNCTION sipHash64
|
|
|
|
Filter column: equals
|
2021-02-12 11:31:14 +00:00
|
|
|
> sorting steps should know about limit
|
2021-01-19 13:35:26 +00:00
|
|
|
Limit 10
|
|
|
|
MergingSorted
|
|
|
|
Limit 10
|
|
|
|
MergeSorting
|
|
|
|
Limit 10
|
|
|
|
PartialSorting
|
|
|
|
Limit 10
|
2021-02-12 11:31:14 +00:00
|
|
|
-- filter push down --
|
|
|
|
> filter should be pushed down after aggregating
|
|
|
|
Aggregating
|
|
|
|
Filter
|
|
|
|
> filter should be pushed down after aggregating, column after aggregation is const
|
|
|
|
COLUMN Const(UInt8) -> notEquals(y, 0)
|
|
|
|
Aggregating
|
|
|
|
Filter
|
|
|
|
Filter
|
|
|
|
> one condition of filter should be pushed down after aggregating, other condition is aliased
|
|
|
|
Filter column
|
|
|
|
ALIAS notEquals(s, 4) :: 1 -> and(notEquals(y, 0), notEquals(s, 4))
|
|
|
|
Aggregating
|
|
|
|
Filter column: notEquals(y, 0)
|
|
|
|
> one condition of filter should be pushed down after aggregating, other condition is casted
|
|
|
|
Filter column
|
|
|
|
FUNCTION CAST(minus(s, 4) :: 1, UInt8 :: 3) -> and(notEquals(y, 0), minus(s, 4))
|
|
|
|
Aggregating
|
|
|
|
Filter column: notEquals(y, 0)
|
|
|
|
> one condition of filter should be pushed down after aggregating, other two conditions are ANDed
|
|
|
|
Filter column
|
|
|
|
FUNCTION and(minus(s, 4) :: 2, minus(s, 8) :: 1) -> and(notEquals(y, 0), minus(s, 8), minus(s, 4))
|
|
|
|
Aggregating
|
|
|
|
Filter column: notEquals(y, 0)
|
|
|
|
> two conditions of filter should be pushed down after aggregating and ANDed, one condition is aliased
|
|
|
|
Filter column
|
|
|
|
ALIAS notEquals(s, 8) :: 1 -> and(notEquals(y, 0), notEquals(s, 8), minus(y, 4))
|
|
|
|
Aggregating
|
|
|
|
Filter column: and(minus(y, 4), notEquals(y, 0))
|