Alexey Milovidov
881bdbf839
Merge pull request #50153 from amosbird/fix_44504
...
Fix invalid index analysis for date related keys
2023-06-05 05:00:20 +03:00
Alexey Milovidov
5fc8838b04
Update KeyCondition.cpp
2023-06-05 04:58:29 +03:00
Amos Bird
8bbfdcc56c
Fix index analysis with binary operator null
2023-05-24 15:47:38 +08:00
Amos Bird
b11aa42db9
Fix tests
2023-05-24 14:27:49 +08:00
Amos Bird
b82ff979d0
Fix invalid index analysis for date related keys
2023-05-23 23:10:34 +08:00
MikhailBurdukov
8c7b63f1e7
Fix
2023-05-12 16:42:01 +00:00
Duc Canh Le
abe0cfd10f
fix wrong query result when using nullable primary key ( #49172 )
2023-05-01 12:51:22 +02:00
Amos Bird
97d27c87a6
Fix key condition on duplicate primary keys
...
Fix key condition usage when encountering duplicate primary keys. This can happen in projections. This bug was introduced in https://github.com/ClickHouse/ClickHouse/pull/45686 .
This PR is also an optimization because we don't need to create unused FieldRefs anymore.
2023-04-17 19:13:42 +08:00
Vitaly Baranov
a3423ce196
Remove unnecessary execute() while evaluating a constant expression.
2023-02-05 20:26:34 +01:00
Nikolai Kochetov
f6ad6296ba
Restore.
2023-01-27 12:45:41 +00:00
Nikolai Kochetov
b716e2d754
A bit cleaner fix.
2023-01-27 12:37:23 +00:00
Amos Bird
716516f84a
Fix test
2023-01-27 16:58:41 +08:00
Amos Bird
fd60954081
Fix key description on duplicate primary keys
...
This can happen in projections. See
https://github.com/ClickHouse/ClickHouse/issues/45590 for details.
2023-01-27 13:01:36 +08:00
Alexander Tokmakov
70d1adfe4b
Better formatting for exception messages ( #45449 )
...
* save format string for NetException
* format exceptions
* format exceptions 2
* format exceptions 3
* format exceptions 4
* format exceptions 5
* format exceptions 6
* fix
* format exceptions 7
* format exceptions 8
* Update MergeTreeIndexGin.cpp
* Update AggregateFunctionMap.cpp
* Update AggregateFunctionMap.cpp
* fix
2023-01-24 00:13:58 +03:00
Dmitry Novik
81c0db3b67
Reuse FunctionBase for IndexHint
2022-12-29 15:47:43 +00:00
Dmitry Novik
3d2fccab87
Merge branch 'master' into refector-function-node
2022-12-12 21:36:39 +01:00
Dmitry Novik
2826942ca3
Fixup assert condition
2022-12-08 16:41:54 +00:00
Maksim Kita
99de697ea2
Analyzer added indexes support
2022-12-08 17:30:32 +01:00
Dmitry Novik
a438b6efd8
Try to fix InvertedDAG construction
2022-12-07 18:27:37 +00:00
Dmitry Novik
15b8c48ca9
Cleanup code
2022-12-02 19:15:26 +00:00
Dmitry Novik
48e8aeac01
Clean up code
2022-12-02 19:15:26 +00:00
Dmitry Novik
2c70dbc76a
Refactor FunctionNode
2022-12-02 19:15:26 +00:00
Amos Bird
661c541e57
Fix Nullable keys in hyperrectangle.
2022-11-11 11:14:05 +08:00
Maksim Kita
768ada118b
Analyzer AST key condition crash fix
2022-11-09 11:41:39 +01:00
Duc Canh Le
bd2bd7149d
fix typo
2022-11-07 18:22:50 +08:00
Duc Canh Le
f7e65ebd72
make comments more clear
2022-11-07 16:25:36 +08:00
Duc Canh Le
69d6d42443
NOT LIKE only work for 'prefix%'
2022-11-06 15:26:19 +08:00
Duc Canh Le
ec382d7903
add comment
2022-11-02 09:50:41 +08:00
Duc Canh Le
07d9720ed5
Merge branch 'master' into ch_canh_fix_prefix_not_like
2022-11-01 22:16:09 +08:00
Maksim Kita
fe48a1ce7e
Merge pull request #42681 from kitaisreal/merge-tree-indexes-use-actions-dag
...
MergeTree indexes use ActionsDAG
2022-11-01 13:55:17 +03:00
Duc Canh Le
3545db0a6c
Merge branch 'master' into ch_canh_fix_prefix_not_like
2022-11-01 16:54:26 +08:00
Duc Canh Le
d309e8793a
Merge branch 'master' into ch_canh_fix_prefix_not_like
2022-10-31 15:13:39 +08:00
clarkcaoliu
ca5dbe88db
match function can use index if prefix
2022-10-29 18:25:29 +08:00
Alexey Milovidov
f64e632707
Merge pull request #42469 from amosbird/issue_42456
...
Fix misbehavior of key analysis
2022-10-28 16:18:00 +02:00
Duc Canh Le
848f5b5d65
Merge branch 'master' into ch_canh_fix_prefix_not_like
2022-10-28 13:40:17 +08:00
Duc Canh Le
c080964391
correct 'notLike' in key condition
2022-10-28 13:39:01 +08:00
Duc Canh Le
69311bd5cd
Merge branch 'master' into ch_canh_fix_prefix_not_like
2022-10-28 11:59:50 +08:00
Nikolai Kochetov
db422fa903
Merge pull request #42410 from ClickHouse/fix-multi-arg-monotonicity
...
Fix possible LOGICAL_ERROR in binary ariphmetics monotonicity.
2022-10-26 14:11:23 +02:00
Maksim Kita
1b6293f6db
MergeTree indexes use ActionsDAG
2022-10-26 12:44:37 +02:00
Maksim Kita
ca93ee7479
Fixed tests
2022-10-24 10:22:20 +02:00
Maksim Kita
fed146e198
Added SAMPLE BY support. Added SAMPLE BY, FINAL support for JOINS.
2022-10-24 10:22:20 +02:00
Amos Bird
f104dd08cd
Only fix LowCardinality for now
2022-10-22 15:47:13 +08:00
Amos Bird
2499ab3b3a
Use convertFieldToType
2022-10-20 17:53:52 +08:00
Amos Bird
549597fe80
Fix misbehavior of key analysis.
...
When key types cannot be inside Nullable, it can break key analysis. See
https://github.com/ClickHouse/ClickHouse/issues/42456 .
2022-10-19 12:15:27 +08:00
Nikolai Kochetov
3d1ed2969a
Fix possible LOGICAL_ERROR in binary ariphmetics monotonicity. Fix invalid evaluation of binary monotonic function in KeyCondition.
2022-10-17 18:21:03 +00:00
Duc Canh Le
f823b9a177
add not like to atom map
2022-10-10 13:31:10 +08:00
Alexander Tokmakov
4175f8cde6
abort instead of __builtin_unreachable in debug builds
2022-10-07 21:49:08 +02:00
Amos Bird
c39c138416
Better index analysis with NULL literal
2022-09-27 22:00:50 +08:00
Alexey Milovidov
ab4db2d0c4
Fix 5/6 of trash
2022-09-19 08:50:53 +02:00
Nikolai Kochetov
3f0bc94d25
Comment.
2022-09-13 18:50:01 +00:00