Anton Popov
1205932a19
add setting to disable vertical merges from compact parts
2023-02-10 16:33:46 +00:00
Anton Popov
a252d3a139
Revert "Merge pull request #46236 from ClickHouse/revert-45681-compact-parts-vertical-merge"
...
This reverts commit 27bc317ef9
, reversing
changes made to ccf7b6f4c1
.
2023-02-10 14:13:29 +00:00
Anton Popov
612fe0bd00
Revert "Allow vertical merges from compact to wide parts"
2023-02-09 15:42:46 +01:00
Anton Popov
3f1db52d51
Merge remote-tracking branch 'upstream/master' into compact-parts-vertical-merge
2023-01-27 14:38:37 +00:00
Anton Popov
fb3f7409fa
allow vertical merges from compact to wide parts
2023-01-26 22:18:04 +00:00
Anton Popov
8e3698c91f
refactoring of code near merge tree parts
2023-01-25 17:34:09 +00: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
Alexander Tokmakov
72e8615bec
formatting of some exception messages
2023-01-17 20:03:56 +01:00
alesapin
fa467b3398
Minor code polishing
2022-12-22 14:31:42 +01:00
Anton Popov
2ae3cfa9e0
Merge branch 'master' into dynamic-columns-14
2022-10-31 16:15:19 +01:00
Anton Popov
cbfa887e52
fix merge of projections
2022-10-24 23:51:57 +00:00
Anton Popov
b40d9200d2
better semantic of constsness of DataPartStorage
2022-10-23 15:24:20 +00:00
Anton Popov
56e5daba0c
remove DataPartStorageBuilder
2022-10-23 00:23:15 +00:00
Anton Popov
f0a404e2c8
Merge remote-tracking branch 'upstream/master' into HEAD
2022-09-06 15:51:16 +00:00
Alexander Gololobov
1c2dd50ca5
Fix vertical merge of parts with lightweight deleted rows
2022-08-24 15:18:33 +02:00
Alexander Tokmakov
46aaf842f8
Merge pull request #40031 from ClickHouse/fix_old_tmp_dirs_cleanup
...
Fix old temporary directories cleanup
2022-08-12 20:31:20 +03:00
Anton Popov
4bd50bb06c
Merge branch 'master' into distinct_sorted_simplify
2022-08-12 17:11:18 +02:00
Alexander Tokmakov
fff903ee81
fix
2022-08-10 15:48:56 +02:00
Alexander Tokmakov
fe572104aa
fix old tmp dirs cleanup
2022-08-09 18:44:51 +02:00
Igor Nikonov
7b0b38e997
DistinctSortedTransform works only if columns contains sort prefix of
...
sort description
2022-07-29 20:01:07 +00:00
Igor Nikonov
ae82bfb7f3
Merge remote-tracking branch 'origin/master' into distinct_sorted_simplify
2022-07-29 13:12:03 +00:00
Anton Popov
57e4fb2e30
Merge remote-tracking branch 'upstream/master' into HEAD
2022-07-29 11:42:11 +00:00
Anton Popov
4cf0353892
try to fix Nested
2022-07-27 14:05:16 +00:00
Alexander Gololobov
48de02a7b8
Capitalized const name
2022-07-25 16:32:16 +02:00
Alexander Gololobov
460950ecdc
Merge branch 'master' into feature/sql-standard-delete
2022-07-24 21:27:22 +02:00
Igor Nikonov
eacc57b6a4
Simplify DistinctSorted
...
+ use ordinary Distinct for deduplication in MergeTree when no sorting provided
2022-07-24 14:26:25 +00:00
Alexander Gololobov
594195451e
Cleanups
2022-07-24 12:21:18 +02:00
Alexander Tokmakov
a8da5d96fc
remove some dead and commented code
2022-07-21 15:05:48 +02:00
Alexander Gololobov
f324ca9921
Cleanups
2022-07-18 20:07:22 +02:00
Alexander Gololobov
9de72d995a
POC lightweight delete using __row_exists virtual column and prewhere-like filtering
2022-07-18 20:06:42 +02:00
Maksim Kita
bdc21737d5
MergeTree merge disable batch optimization
2022-07-05 16:15:00 +02:00
Nikolai Kochetov
ef8b967c3f
Fix more tests.
2022-06-20 13:07:14 +00:00
Nikolai Kochetov
5bc9b32025
Merge branch 'master' into refactor-something-in-part-volumes
2022-06-08 11:10:06 +00:00
Nikolai Kochetov
678d978acf
Merge branch 'master' into refactor-something-in-part-volumes
2022-06-07 15:23:00 +00:00
Anton Popov
df6882d2b9
Revert "Fix errors of CheckTriviallyCopyableMove type"
2022-06-07 13:53:10 +02:00
Anton Popov
ef6f5a6500
Merge pull request #37570 from azat/column-ttl-expired-fix
...
Do not write expired columns by TTL after subsequent merges
2022-06-07 13:05:03 +02:00
Anton Popov
d40b23272e
Merge pull request #37755 from CurtizJ/fix-mutations-again
...
Return back #37266
2022-06-06 20:22:03 +02:00
Robert Schulze
2d87af2a15
Merge pull request #37647 from DevTeamBK/Fix-all-CheckTriviallyCopyableMove-Errors
...
Fix errors of CheckTriviallyCopyableMove type
2022-06-05 19:58:47 +02:00
Anton Popov
5cf2c67410
Merge branch 'master' into fix-mutations-again
2022-06-03 14:17:05 +02:00
Nikolai Kochetov
89c5855d20
Merge branch 'master' into refactor-something-in-part-volumes
2022-06-02 12:19:07 +02:00
Anton Popov
cae2478b3f
Revert "Merge pull request #37355 from ClickHouse/revert-37266-fix-mutations-with-object"
...
This reverts commit a53cfa9fca
, reversing
changes made to 9acb42fcdb
.
2022-06-01 10:57:20 +00:00
HeenaBansal2009
b7eb6bbd38
Fixed clang-tidy-CheckTriviallyCopyableMove-errors
2022-05-30 11:09:03 -07:00
Azat Khuzhin
73a99d4eee
Improve error message for skipped/expired columns
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-05-26 20:14:10 +03:00
Azat Khuzhin
f0cac5417a
More optional skipping of fully expired columns (by TTL)
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-05-26 20:14:10 +03:00
Azat Khuzhin
46a94f395d
Move the check into IMergedBlockOutputStream::removeEmptyColumnsFromPart()
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-05-26 20:14:10 +03:00
Azat Khuzhin
4288d09a85
Do not write expired columns by TTL after merge w/o TTL
...
Usually second merge do not perform TTL, since everything is up to date,
however in this case TTLTransform is not used, and hence expired_columns
will not be filled for new part, and so those columns will be written
with default values.
Avoid this, by manually filling expired_columns.
Here is a simpler reproducer:
Simple reproducer:
```sql
create table ttl_02262 (date Date, key Int, value String TTL date + interval 1 month) engine=MergeTree order by key settings min_bytes_for_wide_part=0, min_rows_for_wide_part=0;
insert into ttl_02262 values ('2010-01-01', 2010, 'foo');
```
```sh
# ls -l .server/data/default/ttl_02262/all_*
.server/data/default/ttl_02262/all_1_1_0:
total 48
-rw-r----- 1 root root 335 May 26 14:19 checksums.txt
-rw-r----- 1 root root 76 May 26 14:19 columns.txt
-rw-r----- 1 root root 1 May 26 14:19 count.txt
-rw-r----- 1 root root 28 May 26 14:19 date.bin
-rw-r----- 1 root root 48 May 26 14:19 date.mrk2
-rw-r----- 1 root root 10 May 26 14:19 default_compression_codec.txt
-rw-r----- 1 root root 30 May 26 14:19 key.bin
-rw-r----- 1 root root 48 May 26 14:19 key.mrk2
-rw-r----- 1 root root 8 May 26 14:19 primary.idx
-rw-r----- 1 root root 99 May 26 14:19 ttl.txt
-rw-r----- 1 root root 30 May 26 14:19 value.bin
-rw-r----- 1 root root 48 May 26 14:19 value.mrk2
```
```sql
optimize table ttl_02262 final;
```
```sh
.server/data/default/ttl_02262/all_1_1_1:
total 40
-rw-r----- 1 root root 279 May 26 14:19 checksums.txt
-rw-r----- 1 root root 61 May 26 14:19 columns.txt
-rw-r----- 1 root root 1 May 26 14:19 count.txt
-rw-r----- 1 root root 28 May 26 14:19 date.bin
-rw-r----- 1 root root 48 May 26 14:19 date.mrk2
-rw-r----- 1 root root 10 May 26 14:19 default_compression_codec.txt
-rw-r----- 1 root root 30 May 26 14:19 key.bin
-rw-r----- 1 root root 48 May 26 14:19 key.mrk2
-rw-r----- 1 root root 8 May 26 14:19 primary.idx
-rw-r----- 1 root root 81 May 26 14:19 ttl.txt
```
```sql
optimize table ttl_02262 final;
```
```sh
.server/data/default/ttl_02262/all_1_1_2:
total 48
-rw-r----- 1 root root 349 May 26 14:20 checksums.txt
-rw-r----- 1 root root 76 May 26 14:20 columns.txt
-rw-r----- 1 root root 1 May 26 14:20 count.txt
-rw-r----- 1 root root 28 May 26 14:20 date.bin
-rw-r----- 1 root root 48 May 26 14:20 date.mrk2
-rw-r----- 1 root root 10 May 26 14:20 default_compression_codec.txt
-rw-r----- 1 root root 30 May 26 14:20 key.bin
-rw-r----- 1 root root 48 May 26 14:20 key.mrk2
-rw-r----- 1 root root 8 May 26 14:20 primary.idx
-rw-r----- 1 root root 81 May 26 14:20 ttl.txt
-rw-r----- 1 root root 27 May 26 14:20 value.bin
-rw-r----- 1 root root 48 May 26 14:20 value.mrk2
```
And now we have `value.*` for all_1_1_2, this should not happen.
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-05-26 20:14:10 +03:00
Nikolai Kochetov
6d4a26afac
Update ReadProgressCallback.
2022-05-25 19:45:48 +00:00
Nikolai Kochetov
1b85f2c1d6
Merge branch 'master' into refactor-read-metrics-and-callbacks
2022-05-25 16:27:40 +02:00
Nikolai Kochetov
56feef01e7
Move some resources
2022-05-20 19:49:31 +00:00
Alexander Tokmakov
f787dc7097
Revert "Fix mutations in tables with columns of type Object
"
2022-05-19 13:24:48 +03:00