ClickHouse/tests/queries/0_stateless/02783_date_predicate_optimizations.reference
Zhiguo Zhou b88fc4277a Add a pass in Analyzer for time filter optimization with preimage
The preimage has been identified as the general solution to the
optimization of predicates with time converters (#15257). PR #50951
implemented this solution via the AST rewrite.

As a follow-up, this commit extends the optimization to the experi-
mental analyzer by replacing the sub-QueryTree of the time filter
with its preimage-transformed one. The optimization is implemented
as a new pass in the Analyzer.
2023-07-24 13:48:48 +08:00

105 lines
312 B
Plaintext

2021-12-31 23:00:00 0
2021-12-31 23:00:00 0
2021-12-31 23:00:00 0
2021-12-31 23:00:00 0
Date
2
3
2
4
1
3
3
2
1
4
1
4
2
3
2
4
1
3
3
2
1
4
1
4
DateTime
2
3
2
4
1
3
3
2
1
4
1
4
2
3
2
4
1
3
3
2
1
4
1
4
Date32
2
3
2
4
1
3
3
2
1
4
1
4
2
3
2
4
1
3
3
2
1
4
1
4
DateTime64
2
3
2
4
1
3
3
2
1
4
1
4
2
3
2
4
1
3
3
2
1
4
1
4