Amos Bird
a66f68e5df
fix again
2023-06-05 01:48:13 +08:00
Amos Bird
e24c9267bc
fix
2023-06-04 20:06:27 +08:00
Amos Bird
92b2200c55
mutation stages can be empty
2023-06-04 18:32:12 +08:00
Amos Bird
97bd3f0483
Proper mutation of skip indices and projections
2023-06-04 18:32:08 +08:00
Anton Popov
612173e734
refactoring near alter conversions
2023-05-25 22:54:54 +00:00
Alexander Tokmakov
05ae7b2c2d
fix some tests
2023-05-15 18:28:12 +02:00
Nikolai Kochetov
28484cd762
Merge pull request #48522 from ClickHouse/many-mutations-memory-limit
...
Reduce memory usage for multiple alter delete mutations.
2023-04-10 12:50:42 +02:00
Nikolai Kochetov
e8fb135180
Reduce memory usage for multiple alter delete mutations.
2023-04-06 19:07:53 +00:00
Antonio Andelic
0260b84bc3
Update only affected rows in KV storage
2023-04-05 16:12:14 +00:00
Antonio Andelic
1e3abc9e84
Add strict mode for KeeperMap
2023-03-31 14:24:32 +00:00
Maksim Kita
f1093716f0
Analyzer MutationsInterpreter fix
2023-03-01 18:03:41 +01:00
Maksim Kita
cbd961de98
Fixed code review issues
2023-02-18 17:06:00 +01:00
Maksim Kita
03f14f7c50
Analyzer fix MutationsInterpreter
2023-02-16 12:17:02 +01:00
Alexander Gololobov
96cb23a6a1
Break on first non-empty block
2023-01-31 15:49:56 +01:00
Alexander Gololobov
93b82a2c44
Use multithreaded executor in isStorageTouchedByMutations()
2023-01-30 23:48:52 +01:00
Alexander Gololobov
4eea3de654
Do not restrict count() query to 1 thread in isStorageTouchedByMutations()
2023-01-30 22:29:28 +01: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
Nikolai Kochetov
7701dc571e
Update MutationsInterpreter.cpp
2023-01-10 18:19:38 +01:00
Nikolai Kochetov
71333afd5a
Fixing a test.
2023-01-10 16:40:10 +00:00
Nikolai Kochetov
4673b3fe1d
Revert "Revert "Custom reading for mutation""
2023-01-10 16:31:01 +01:00
Alexander Tokmakov
c8ec130be4
Revert "Custom reading for mutation"
2023-01-10 17:51:30 +03:00
Nikolai Kochetov
11418963c0
Merge pull request #44653 from ClickHouse/custom-reading-for-mutation
...
Custom reading for mutation
2023-01-10 12:16:24 +01:00
Nikolai Kochetov
3e430b1b6e
Add comments. Remove unused flag from Context.
2023-01-09 19:52:11 +00:00
Alexander Gololobov
ebb17c6a76
More generic fix
2023-01-09 12:06:58 +01:00
Ilya Yatsishin
4bedd2ca59
fix style
2023-01-06 15:16:44 +01:00
Mingliang Pan
c98e52e9ee
fix alter table ttl error when this table has light weight delete mask file (_row_exists.bin)
...
After applying light weight delete to MergeTree table, a delete mask file (_row_exists.bin) will appears in the wide part directory. Then we execute "ALTER TABLE xxxxxx MODIFY TTL xxxx" to this table, clickhouse will report error in log message: "NOT_FOUND_COLUMN_IN_BLOCK, Not found column _row_exists in block".
The root cause of this bug is that: in MutationsInterpreter::prepare(), when constructing the select columns, it does not include the system columns, but only physic columns (not include _row_exists.bin). however the output block of the execute pipeline contains _row_exists column, then error occurs.
this bug is severe, because mutate TTL will continuously to execute, never end. the only workaround is to truncate the whole table.
the fix is to return all columns including row_exists when executing alter table TTL query
2023-01-06 10:58:34 +08:00
Nikolai Kochetov
f629425f96
Merge pull request #44447 from ClickHouse/42637_Disallow_arrayJoin_in_mutations
...
Disallow arrayjoin in mutations
2023-01-05 18:00:16 +01:00
Smita Kulkarni
4f0b0236e3
Removed flag from ExpressionAnalyzer and added a check in MutationsInterpreter::addStreamsForLaterStages - 42637 Disallow arrayJoin in mutations
2023-01-04 09:56:44 +01:00
Nikolai Kochetov
9ecb9195ac
Cleanup.
2022-12-30 17:45:25 +00:00
Nikolai Kochetov
5f38e17941
Fix integration test.
2022-12-30 16:20:06 +00:00
Nikolai Kochetov
3c02e208c8
Fix more tests.
2022-12-29 17:52:31 +00:00
Nikolai Kochetov
2dacdee58b
Some fixes for lightweight deletes
2022-12-28 19:38:22 +00:00
Nikolai Kochetov
d8a398b0bd
Use sequential source for mutations.
2022-12-27 20:47:49 +00:00
Nikolai Kochetov
c203aa054a
Use sequential source for mutations.
2022-12-27 20:28:25 +00:00
Nikolai Kochetov
03352a15b6
Use sequential source for mutations.
2022-12-23 22:39:27 +00:00
Anton Popov
4b7f1e0cf2
fix mutations with setting 'max_streams_for_merge_tree_reading'
2022-12-21 01:59:53 +00:00
Smita Kulkarni
56fa477db6
Disallow array join in mutations
...
Implementation:
* Added a new parameter to ActionsVisitor::Data disallow_arrayjoin, which is set by MutationsIterator when it appends expression.
* ActionsVisitor uses disallow_arrayjoin and throws error when its used with mutations.
Testing:
* Added test for the same 02504_disallow_arrayjoin_in_mutations.sql.
2022-12-20 18:51:55 +01:00
lthaooo
d4dd6b05b2
optimize compact part mutation
2022-09-09 10:22:35 +08:00
Antonio Andelic
f043790e6d
Add support for update
2022-08-31 14:33:53 +00:00
Antonio Andelic
0e6b3b870a
Add support for delete in RocksDB
2022-08-31 13:08:27 +00:00
vdimir
5eb4cd39e0
Merge branch 'master' into refactor-prepared-sets
2022-08-10 11:47:49 +00:00
Maksim Kita
c030fd05e7
ActionsDAG rename index to outputs
2022-08-08 18:01:32 +02:00
Vladimir C
115506356c
Merge branch 'master' into refactor-prepared-sets
2022-07-27 19:57:23 +02:00
vdimir
8eecb9ef82
upd PreparedSets: rename/change signature of methods, add comments
2022-07-27 11:22:16 +00:00
vdimir
1e3fa2e01f
Refactor PreparedSets/SubqueryForSet
2022-07-26 18:39:02 +00:00
Alexander Gololobov
48de02a7b8
Capitalized const name
2022-07-25 16:32:16 +02:00
Alexander Gololobov
c8b3c574a4
Disable lightweight delete if table has projections
2022-07-24 12:21:47 +02:00
Alexander Gololobov
594195451e
Cleanups
2022-07-24 12:21:18 +02:00
Alexander Gololobov
50bd8147fd
Make lightweight delete work with compact parts (not in optimal way yet)
2022-07-21 17:59:34 +02:00
Alexander Gololobov
1ea9f143ff
Leave only _row_exists-based implementation of lightweight delete
2022-07-21 11:26:13 +02:00