Vitaly Baranov
e1f7f04752
Referential dependencies for RESTORE ( #43834 )
...
* Rename DDLDependencyVisitor -> DDLLoadingDependencyVisitor.
* Move building a loading graph to TablesLoader.
* Implement referential dependencies for tables and use them
when restoring tables from a backup.
* Remove StorageID::operator < (because of its inconsistency with ==).
* Add new tests.
* Fix test.
* Fix memory leak.
Co-authored-by: Nikita Mikhaylov <mikhaylovnikitka@gmail.com>
2022-12-02 15:05:46 +01:00
Azat Khuzhin
4e76629aaf
Fixes for -Wshorten-64-to-32
...
- lots of static_cast
- add safe_cast
- types adjustments
- config
- IStorage::read/watch
- ...
- some TODO's (to convert types in future)
P.S. That was quite a journey...
v2: fixes after rebase
v3: fix conflicts after #42308 merged
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-10-21 13:25:19 +02:00
Alexander Tokmakov
4175f8cde6
abort instead of __builtin_unreachable in debug builds
2022-10-07 21:49:08 +02:00
Alexey Milovidov
fd235919aa
Remove some methods
2022-09-10 05:04:40 +02:00
Alexander Tokmakov
ceb66ade4b
Merge pull request #38335 from ClickHouse/deprecate_ordinary_database
...
Deprecate Ordinary database and old *MergeTree syntax
2022-06-29 13:42:59 +03:00
Robert Schulze
f692ead6ad
Don't use std::unique_lock unless we have to
...
Replace where possible by std::lock_guard which is more light-weight.
2022-06-28 19:19:06 +00:00
Alexander Tokmakov
2c5a88faba
deprecate Ordinary database
2022-06-23 10:20:14 +02:00
Azat Khuzhin
bc3e73d776
Fix LOGICAL_ERROR for WINDOW VIEW with incorrect structure
...
Caching header of the source table in the WINDOW VIEW should not be
done, since there is no ability to get notification when it had been
changed (ALTER or CREATE/DROP).
And this fires on [CI], when the following tests had been executed in
order in stress tests:
- 01050_window_view_parser_tumble (leaves wm for mt)
- 01748_partition_id_pruning (cache input_header)
- 01188_attach_table_from_path (insert into mt with wm attached and
incorrect structure)
[CI]: https://s3.amazonaws.com/clickhouse-test-reports/38056/109980eb275c064d08bc031bfdc14d95b9a7272b/stress_test__undefined__actions_.html
Follow-up for: #37965 (@Vxider)
Fixes : #37815
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-06-19 19:16:39 +03:00
Vxider
ea2375ffc5
remove duplicate lines
2022-06-10 18:58:53 +00:00
Vxider
b09dbeed77
support default columns
2022-06-10 07:24:26 +00:00
Kseniia Sumarokova
c4b1f537cd
Merge pull request #37879 from Vxider/wv-inner-target-drop
...
Do not drop the inner target table when alter WindowView
2022-06-07 13:00:15 +02:00
Vxider
acda04a3d4
do not drop inner target table when alter windowview
2022-06-06 05:06:02 +00:00
Vxider
d4f0e8d4c2
update code style
2022-06-04 17:14:42 +00:00
Vxider
1f10276686
fire and clean only when data inserted
2022-06-04 16:55:46 +00:00
Kseniia Sumarokova
7632de911d
Merge pull request #37807 from Vxider/deley-cleanup
...
Delay schedule of the cleaning task in WindowView
2022-06-03 19:48:57 +02:00
Kseniia Sumarokova
9c0e838404
Merge pull request #37770 from Vxider/fix-empty-target-id
...
Fix empty target table id in WindowView
2022-06-03 11:23:35 +02:00
Vxider
d3c907cf12
log exception when fire
2022-06-02 18:22:48 +00:00
Vxider
1282d038cc
delay schedule of windowview cleanup
2022-06-02 18:21:56 +00:00
Vxider
8221fcd5f1
update var name
2022-06-02 04:38:45 +00:00
Vxider
df4db70bb8
fix empty target table id
2022-06-02 04:28:18 +00:00
Nikolai Kochetov
86fbb74703
Merge branch 'master' into refactor-read-metrics-and-callbacks
2022-05-31 18:07:47 +00:00
Vxider
b24346328d
fix parser when using table identifer
2022-05-28 08:22:34 +00:00
Nikolai Kochetov
54d7e4139f
Fix build.
2022-05-25 18:16: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
3d84aae0ab
Better.
2022-05-24 20:06:08 +00:00
Nikolai Kochetov
9756b759c6
Move some resources
2022-05-23 13:46:57 +00:00
Vxider
5f84f06d6d
simplify windowview
2022-05-22 10:13:16 +00:00
Nikolai Kochetov
56feef01e7
Move some resources
2022-05-20 19:49:31 +00:00
Vxider
956459eba2
Merged with master
2022-05-20 10:50:21 +00:00
Vxider
f6cc73235b
Merged with master
2022-05-19 13:03:45 +00:00
Vxider
b2c7ba7cbe
update
2022-05-19 12:54:41 +00:00
Vxider
24f1a1fde7
Merge branch 'wv-alter' of https://github.com/Vxider/ClickHouse into wv-populate
2022-05-19 12:49:37 +00:00
vxider
797edb0ae1
Update src/Storages/WindowView/StorageWindowView.cpp
...
Co-authored-by: Kseniia Sumarokova <54203879+kssenii@users.noreply.github.com>
2022-05-19 20:49:02 +08:00
Vxider
1cc347364f
Merged with master
2022-05-19 12:45:46 +00:00
Kseniia Sumarokova
b0c7cf910a
Merge pull request #37224 from Vxider/wv-fix-dependency
...
Fix addDependency in WindowView
2022-05-19 13:51:11 +02:00
Vxider
04f1b20229
init inner window names
2022-05-18 14:34:40 +00:00
Vxider
4b5eda4de9
fix cleanup
2022-05-18 11:14:08 +00:00
Vxider
f102497929
fix parser with join query
2022-05-18 08:05:06 +00:00
Vxider
037db32e24
set alter query internal
2022-05-17 13:50:55 +00:00
Vxider
90bac2f004
add shutdown check
2022-05-17 06:20:08 +00:00
Vxider
f74c934a61
Merged with master
2022-05-17 02:53:59 +00:00
mergify[bot]
0d0fc23170
Merge branch 'master' into wv-engine
2022-05-17 02:24:18 +00:00
Vxider
3986e82b19
Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into wv-populate
2022-05-17 02:18:17 +00:00
Kseniia Sumarokova
f073efc025
Merge pull request #37225 from Vxider/wv-fix-cleanup
...
Fix WindowView cleanup
2022-05-16 22:39:58 +02:00
Vxider
8f271159bf
check null pointer
2022-05-16 13:59:55 +00:00
Vxider
b3a731c226
fix build
2022-05-16 12:51:19 +00:00
Vxider
6b3b744e3f
fix data race
2022-05-16 11:31:49 +00:00
Vxider
95e6e5aef7
fix window view dependency
2022-05-16 08:41:32 +00:00
Vxider
77ad48fee9
fix build
2022-05-15 17:40:42 +00:00
Vxider
15b35c1910
speed up windowview watch
2022-05-15 17:14:53 +00:00