mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-05 05:52:05 +00:00
b88fc4277a
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.
105 lines
312 B
Plaintext
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
|