Commit Graph

142 Commits

Author SHA1 Message Date
Andrey Mironov
ba0fcc32f9 dbms: MySQLDictionarySource: safely handle empty response. [#METR-13298] 2015-03-20 18:45:36 +03:00
Andrey Mironov
1e1a26b76f dbms: fix typo in ClickHouseDictionarySource, specify database explicitly. [#METR-13298] 2015-03-18 17:20:07 +03:00
Andrey Mironov
3b3f5b17c4 dbms: fix thread-unsafety: retain mysqlxx::Pool::Entry for the whole duration of a query. [#METR-13298] 2015-03-18 15:20:54 +03:00
Andrey Mironov
7196d9c987 dbms: fix usage of moved-from variable, drain mysqlxx query result completely. [#METR-13298] 2015-03-18 12:58:58 +03:00
Andrey Mironov
c880ae8abb dbms: CacheDictionary: store values for missing ids explicitly. Store exceptions for more user-friendly error messages [#METR-13298] 2015-03-06 19:13:59 +03:00
Andrey Mironov
a032d7affb dbms: dictionary sources: escape column and table names; adjust max connections; MySQL support for CacheDictionary [#METR-13298] 2015-03-04 12:36:36 +03:00
Andrey Mironov
f479939760 dbms: less macro code [#METR-13298] 2015-03-02 16:16:26 +03:00
Andrey Mironov
c20d5338f0 dbms: StringRef operator std::string made explicit 2015-02-27 17:28:19 +03:00
Andrey Mironov
9d7fd21463 dbms:drastically improve performance by caching current time [#METR-13298] 2015-02-27 16:12:30 +03:00
Andrey Mironov
3f34c733dd dbms: refactor FlatDictionary to use tuple and less macro-code[#METR-13298] 2015-02-27 16:12:30 +03:00
Andrey Mironov
20eb5013a4 dbms: cache dictionary revamp [#METR-13298] 2015-02-26 17:53:45 +03:00
Andrey Mironov
e175883dd3 dbms: remove redundant checks in FunctionDictIsIn. [#METR-13298] 2015-02-20 13:57:38 +03:00
Andrey Mironov
cf8a927150 dbms: invert the way multiple values are acquired from the dictionary [#METR-13298] 2015-02-19 18:28:24 +03:00
Alexey Milovidov
e09225d230 Addition to prev. revision [#METR-2807]. 2015-02-11 00:14:11 +03:00
Alexey Milovidov
a9eb28c07d Using std::make_unique [#METR-2807]. 2015-02-11 00:10:58 +03:00
Andrey Mironov
984aa5c4b5 dbms: extract external dictionaries management to a separate type [#METR-13298] 2015-02-10 20:40:40 +03:00
Andrey Mironov
168e1cd98d dbms: post-review corrections [#METR-13298]
add dummy CacheDictionary (could not commit without it)
2015-02-10 17:50:52 +03:00
Andrey Mironov
176189a55e dbms: remove const on IDictionary::getSource return type, add commentaries 2015-02-10 17:50:52 +03:00
Andrey Mironov
c594ffa066 dbms: failover support for MysqlDictionarySource [#METR-13298];
return current time for tables with Update_time = null
2015-02-05 21:51:19 +03:00
Andrey Mironov
d0d7d9e4f7 dbms: return local server support to ClickhouseDictionarySource [#METR-13298] 2015-02-05 16:44:39 +03:00
Andrey Mironov
835c8a317e dbms: prohibit local clickhouse as a dictionary source [#METR-13298] 2015-02-04 19:10:27 +03:00
Andrey Mironov
0b2e0ce0c1 dbms: heal ClickhouseDictionarySource for local clickhouse [#METR-13298] 2015-02-04 19:07:19 +03:00
Andrey Mironov
7127c21a42 dbms: add forgotten return, support non-reloaded dictionaries [#METR-13298] 2015-02-04 18:18:29 +03:00
Andrey Mironov
83f17692e1 dbms: send requests to local clickhouse via network [#METR-13298] 2015-02-04 16:47:30 +03:00
Andrey Mironov
ad54825dfe dbms: uncomment clickhouse dictionary source creation [#METR-13298] 2015-02-04 16:06:56 +03:00
Andrey Mironov
6fecb60894 dbms: better decoupling [#METR-13298] 2015-02-03 20:03:35 +03:00
Andrey Mironov
345afb6059 dbms: store dictionary lifetime in dictionaries [#METR-13298] 2015-01-30 18:18:13 +03:00
Andrey Mironov
fb333b16d7 dbms: incapsulate dictionary source data and allow cloning [#METR-13298]; add cloning for dictionaries 2015-01-30 17:12:09 +03:00
Andrey Mironov
9eff84960a dbms: query table modification time in MysqlDictionarySource [#METR-13298] 2015-01-30 14:51:59 +03:00
Andrey Mironov
647cd1b0eb dbms: check dictionary source modification prior to reloading [#METR-13298]
Mysql and Clickhouse sources are not currently checked and will always say they are modified.
Reload periods are not currently checked.
2015-01-29 18:47:21 +03:00
Andrey Mironov
a66af0668e dbms: devirtualize dictionary access [#METR-13298] 2015-01-29 17:46:15 +03:00
Andrey Mironov
4bbdb2320e dbms: add HashedDictionary [#METR-13298] 2015-01-29 16:53:48 +03:00
Andrey Mironov
7addd501fe dbms: allow use of clickhouse as a dictionary source [#METR-13298] 2015-01-29 14:51:52 +03:00
Andrey Mironov
95bb52b8e5 dbms: use PODArray with FlatDictionary [#METR-13298]
remove IDictionarySource::reset
2015-01-28 19:23:52 +03:00
Andrey Mironov
e982b5c92d dbms: add all integral and floating point types to IDictionary. [#METR-13298] 2015-01-28 18:02:05 +03:00
Andrey Mironov
f4e7d2d4f5 dbms: add dictGetHierarchy and dictIsIn. [#METR-13298] 2015-01-28 16:20:20 +03:00
Andrey Mironov
6b406df4d9 dbms: implement MysqlBlockInputStream. [#METR-13298] 2015-01-27 16:00:20 +03:00
Andrey Mironov
1b4b0d5779 dbms: MysqlDictionarySource with draft MysqlBockInputStream 2015-01-26 19:53:44 +03:00
Andrey Mironov
419d517867 dbms: add abstractions for dictionary sources 2015-01-26 18:27:51 +03:00
Andrey Mironov
a8c2d66076 dbms: fix error in populating attributes. [#METR-13298] 2015-01-22 17:41:05 +03:00
Andrey Mironov
92664ed612 dbms: sparse array implementation of FlatDictionary. [#METR-13298] 2015-01-22 17:32:38 +03:00
Andrey Mironov
300b7342e7 dbms: dummy types and functions for external dictionaries. [#METR-13298] 2015-01-21 14:39:48 +03:00