Alexander Tokmakov
f2d98731ae
remove getCreate from Context
2019-12-25 19:33:26 +03:00
Alexander Tokmakov
01de226df0
abstract path to table data
2019-12-25 19:18:08 +03:00
Alexander Tokmakov
7ab471ef5e
merge similar functions
2019-12-25 16:58:15 +03:00
Alexander Tokmakov
7c48396689
refactor databases: inherit from DatabaseOnDisk
2019-12-25 16:23:38 +03:00
Alexander Tokmakov
86e55e34d6
refactor databases: add DatabaseWithDictionaries
2019-12-25 15:39:28 +03:00
Alexander Tokmakov
73203a4b6b
refactor IDatabase
2019-12-25 15:20:16 +03:00
Alexander Tokmakov
6325f8507c
fixes
2019-12-24 20:41:24 +03:00
Alexander Tokmakov
60a47c3453
Merge branch 'master' into relative_paths_in_storages
2019-12-24 19:58:34 +03:00
tavplubix
7c1a6c726d
Merge pull request #8359 from ClickHouse/more_readable_interpreter_create
...
Refactor table creation
2019-12-24 18:07:43 +03:00
Alexander Tokmakov
514868cebc
use relative paths in IStorage::rename(...)
2019-12-24 16:35:50 +03:00
Alexander Tokmakov
ac3f53f300
refactor StorageFile construction
2019-12-23 23:07:31 +03:00
Alexander Tokmakov
4f58d662f7
make data path relative
2019-12-23 18:20:08 +03:00
alesapin
cfeaea2627
Better exception message in case of duplicate dictionary
2019-12-23 12:35:37 +03:00
alexey-milovidov
980cf16873
Merge pull request #8323 from ClickHouse/minor-improvements-backquote
...
Added quoting of db and table names where appropriate
2019-12-20 22:14:35 +03:00
alexey-milovidov
0d119a40eb
Merge pull request #8240 from vitlibar/sync-system-reload-dictionary
...
Synchronous system reload dictionary
2019-12-20 20:00:03 +03:00
Alexey Milovidov
41ed1ed471
Added quoting of db and table names where appropriate
2019-12-20 19:53:37 +03:00
Alexander Tokmakov
10ad22faea
refactor InterpreterCreateQuery::createTable(...)
2019-12-20 15:51:51 +03:00
Vitaly Baranov
d0d5c72e4d
Reloading of a dictionary now waits for results and shows errors.
...
Clearer names for load and reload functions in ExternalLoader.
2019-12-17 13:45:47 +03:00
kreuzerkrieg
9612bb0e79
More GCC warnings
2019-12-16 23:19:50 +02:00
Alexey Milovidov
952351a033
Fixed build after merge
2019-12-16 02:54:56 +03:00
alexey-milovidov
d0ef4b6b96
Merge branch 'master' into more-accurate-using-load-reload
2019-12-16 02:42:45 +03:00
Winter Zhang
690502a435
update _remove.flag suffix to .remove_flag suffix
2019-12-14 04:15:40 +08:00
zhang2014
713923e451
Support detach and drop table for mysql database engine
2019-12-13 19:48:38 +08:00
Vitaly Baranov
4c157007f5
Refactoring of using ExternalLoader in dictionary DDL:
...
Instead of using ExternalLoader::reload() now it's used reloadConfig() which reloads only what necessary.
Functions attachDictionary() and detachDictionary() are simplified and have lesser number of parameters.
Instead of injecting into LoadablesConfigReader's internals for creating dictionary a temp repository is used.
2019-12-12 21:45:58 +03:00
Alexander Tokmakov
1a6c973055
use absolute path and try to load table
2019-12-12 17:47:31 +03:00
alesapin
af85eb8f80
Merge pull request #7916 from azat/dict-avoid-RELOAD-on-CREATE-DATABASE
...
Do not reload *all* dictionaries on CREATE DATABASE
2019-12-02 11:50:44 +03:00
stavrolia
295633b7ef
Another try
2019-11-28 17:31:35 +03:00
stavrolia
f23273fa80
Fix
2019-11-27 17:29:00 +03:00
stavrolia
f1e5e58480
Some rest of PR about improvement of exception message
2019-11-27 04:18:26 +03:00
Azat Khuzhin
4530adee76
Do not reload *all* dictionaries on CREATE DATABASE
...
This ignores any lifetime, while dictionaries can be quite big.
Fixes: c7cd911305
("Merge pull request #7360 ")
Refs: https://github.com/ClickHouse/ClickHouse/pull/7360#discussion_r345207682
2019-11-26 10:33:25 +03:00
alesapin
f3c58cdf65
Fix idiotic bug in database object loading
2019-11-07 11:52:22 +03:00
alesapin
7edd80c9b7
Add test for existing dictionary
2019-10-24 12:25:28 +03:00
alesapin
dfa9b0c149
Remove complex logic with lazy load
2019-10-22 19:26:15 +03:00
alesapin
99fac92b1d
Fix comment
2019-10-22 13:49:11 +03:00
alesapin
4c5d150d7a
Review fixes
2019-10-22 13:47:43 +03:00
alesapin
83dbfe9634
New tests and fixes for them
2019-10-21 20:09:41 +03:00
alesapin
307f711500
Fix db mysql dictionaries iterator
2019-10-21 17:25:21 +03:00
alesapin
f7043c38bd
Less diff
2019-10-21 17:20:42 +03:00
alesapin
e4a936cf41
Fix add and reload
2019-10-21 16:54:23 +03:00
alesapin
35e66d6696
Merge with master
2019-10-21 11:46:11 +03:00
alesapin
cdc195727e
Fix some races from lazy load and add ugly interface to loader (need to be refactored)
2019-10-18 19:04:09 +03:00
alesapin
b222ec1209
Fix segmentation fault
2019-10-17 20:53:08 +03:00
alesapin
05392fd882
Fix deadlock, add test and refactoring
2019-10-17 20:18:54 +03:00
tavplubix
0046b9f137
Wait for jobs to finish on exception (fixes rare segfaults) ( #7350 )
2019-10-17 17:41:27 +03:00
alesapin
6dfe5c7142
Better introspection
2019-10-17 16:05:12 +03:00
alesapin
01e23f0a22
Better load of dictionaries
2019-10-16 20:06:52 +03:00
alesapin
b4e0ded048
Almost working
2019-10-16 17:59:52 +03:00
alesapin
e690a3ca32
Half working code
2019-10-15 21:04:17 +03:00
alesapin
1ce0eb6e63
Appropriate error codes numbers
2019-10-14 13:04:10 +03:00
alesapin
ecde224692
More tests
2019-10-14 12:52:43 +03:00