Commit Graph

84793 Commits

Author SHA1 Message Date
Vitaly Baranov
51fc556fcd Implement BACKUP and RESTORE for MatViews. 2022-03-21 11:45:21 +01:00
Vitaly Baranov
ce25afb2e9 Storages and databases are hollow by default now. 2022-03-20 20:02:15 +01:00
Vitaly Baranov
18173d71fb A corresponding file in base backup can be searched by checksum too, not only by name. 2022-03-20 20:02:15 +01:00
Vitaly Baranov
c884cf901f Use BackupEntryFromAppendOnlyFile for Log engine,
and use a BackupEntriesBatch for Memort engine to improve performance.
A lot of minor corrections.
2022-03-20 20:02:15 +01:00
Vitaly Baranov
5f195d6ead Implement writing backups as zip archive. 2022-03-20 20:02:15 +01:00
Vitaly Baranov
a1b364626a Improve zip archive utilities. 2022-03-20 20:02:15 +01:00
Vitaly Baranov
e72a343994 Implement BACKUP & RESTORE for the Memory table engine. 2022-03-20 20:02:15 +01:00
Vitaly Baranov
ef57a87394 Add settings "throw_if_table_has_different_definition" and "throw_if_database_has_different_definition". 2022-03-20 20:02:15 +01:00
Vitaly Baranov
fd1d24f624 Add settings "throw_if_database_exists" and "throw_if_table_exists". 2022-03-20 20:02:15 +01:00
Vitaly Baranov
6849f51c3b Add setting "structure_only." 2022-03-20 20:02:15 +01:00
Vitaly Baranov
7f89b98308 Rework BackupSettings and RestoreSettings a little, pass StorageRestoreSettings to storages. 2022-03-20 20:02:15 +01:00
Vitaly Baranov
258a472001 Shorter names: rename IRestoreFromBackupTask -> IRestoreTask. 2022-03-20 20:02:15 +01:00
Vitaly Baranov
e8fc9cf476 Move renameInCreateQuery() to a better place. 2022-03-20 20:02:12 +01:00
Vitaly Baranov
54d554f55d Simplify elements of ASTBackupQuery. 2022-03-20 20:01:54 +01:00
Vitaly Baranov
5a883c6b5a Fixed checking access rights while producing backup, add IStorage::hasHollowBackup(). 2022-03-20 20:01:54 +01:00
Vitaly Baranov
c160494f43 Make BACKUP more consistent with RESTORE. 2022-03-20 20:01:52 +01:00
Vitaly Baranov
7a63feb3f7 Make restore tasks explicit. 2022-03-20 20:01:31 +01:00
Vitaly Baranov
9fb50422ce
Merge pull request #35345 from vitlibar/new-row-policies
[WIP] New row policies
2022-03-20 20:00:25 +01:00
Alexey Milovidov
9b05801e0f
Merge pull request #35284 from CurtizJ/fix-mutations-sparse-columns
Fix mutations in tables with enabled sparse columns
2022-03-20 21:55:59 +03:00
Alexey Milovidov
21b7a1cba4
Merge pull request #35268 from rschu1ze/mac-debugger-docs
Document LLDB setup for debugging
2022-03-20 21:54:35 +03:00
Alexey Milovidov
b2ab4e87e0
Merge pull request #35377 from ClickHouse/auto/v22.3.2.2-lts
Update version_date.tsv after v22.3.2.2-lts
2022-03-20 21:39:33 +03:00
Alexey Milovidov
d58fa08d93
Merge pull request #35422 from bigo-sg/add_args_for_diagnose
Add some arguments for clickhouse-diagnostics
2022-03-20 21:36:23 +03:00
Alexey Milovidov
83c32ea9a1
Merge pull request #35423 from bigo-sg/update_format_doc
Update data type mapping of clickhouse and arrow/orc/parquet in docs
2022-03-20 21:27:09 +03:00
Vitaly Baranov
afe6a1003a Add new row policy kind: simple 2022-03-20 17:34:59 +01:00
Vladimir C
3e763838e2
Merge pull request #35445 from vdimir/fix_02177_issue_31009_pt2.sql 2022-03-20 16:06:01 +01:00
vdimir
8dc1c72d17
fix 02177_issue_31009_pt2.sql 2022-03-20 15:50:45 +01:00
alesapin
2484a63d00
Merge pull request #35431 from ClickHouse/rename_list_option
Rename some variables in keeper
2022-03-20 15:25:04 +01:00
alesapin
8aab8b491f
Merge pull request #35434 from ClickHouse/fix_s3_trash_logs
Remove some useless code from S3Common
2022-03-20 15:13:41 +01:00
alesapin
c244ee7cbb
Merge pull request #35430 from ClickHouse/don_t_spam_in_logs
Don't spam logs in zero copy replication
2022-03-19 23:31:45 +01:00
alesapin
5902304fdb Remove some useless code from S3Common 2022-03-19 23:28:20 +01:00
Anton Popov
ed67ba14b5
Merge pull request #35409 from CurtizJ/dynamic-columns-3
Fix race in data type `Object`
2022-03-19 22:18:50 +01:00
alesapin
1da0f11496
Merge pull request #35428 from zhangyuli1/fix_test_keeper_back_to_back_duplicate
Fix test_keeper_back_to_back duplicate error
2022-03-19 22:00:35 +01:00
alesapin
d0bafe93d6 Fix name 2022-03-19 21:02:11 +01:00
alesapin
ac3c607ed4 Merge branch 'master' into rename_list_option 2022-03-19 20:16:57 +01:00
alesapin
1bd5736e34 Fix build one more time 2022-03-19 20:00:08 +01:00
alesapin
9e24677a30 Fix build 2022-03-19 18:09:01 +01:00
alesapin
97e84e6dc2 fix build 2022-03-19 17:47:35 +01:00
zhangyuli1
152b949adf fix duplicate error 2022-03-20 00:42:16 +08:00
alesapin
95ca06f4e2 Fix names 2022-03-19 17:41:52 +01:00
alesapin
f2c5e2d3a0 Don't spam logs in zero copy replication 2022-03-19 17:31:33 +01:00
alesapin
e8a229f3a6
Merge pull request #35413 from ClickHouse/adjust-fasttest
Disable long-running (>30) fast tests
2022-03-19 17:01:58 +01:00
Nikolay Degterinsky
d940eb3558
Merge pull request #35401 from qjw-ustc/patch-1
fix ext-dict-functions.md in Chinese documentation
2022-03-19 13:16:54 +03:00
Kseniia Sumarokova
a918e68d9a
Merge pull request #35355 from kssenii/add-hosts-filter
Add more checks with remoteHostsFilter
2022-03-19 09:41:23 +01:00
taiyang-li
7a0e09db28 update data type mapping of clickhouse and arrow/orc/parquet 2022-03-19 11:25:59 +08:00
taiyang-li
32348779fd add some arguments for clickhouse-diagnostics 2022-03-19 10:25:53 +08:00
Anton Popov
d26ba35c2d fix race in Object type and improve performance of inserts 2022-03-19 00:26:39 +00:00
Maksim Kita
9a4686adac
Merge pull request #35414 from kitaisreal/functions-array-first-last-or-null
Added functions arrayFirstOrNull, arrayLastOrNull
2022-03-19 02:03:11 +03:00
Anton Popov
18c32fbdb5 Merge remote-tracking branch 'upstream/master' into dynamic-columns-3 2022-03-18 21:16:21 +00:00
Anton Popov
021f6b8c21
Merge pull request #35388 from CurtizJ/dynamic-columns-2
Slightly better performance of inserts to `Object` type
2022-03-18 22:15:14 +01:00
Maksim Kita
5c66030b46
Merge pull request #35234 from zzsmdfj/issue/#35128_add_mysql_error__detail
to #35128_add_mysql_error__detail
2022-03-18 23:41:35 +03:00