Maksim Kita
5e03418651
Added performance tests
2021-03-09 23:50:36 +03:00
Maksim Kita
ed295a934c
Fixed tests
2021-03-09 23:50:36 +03:00
Maksim Kita
f9b0fdad14
Fixed tests
2021-03-09 23:50:36 +03:00
Maksim Kita
b5f51e0ca6
Fixed style check
2021-03-09 23:50:06 +03:00
Maksim Kita
45879472d3
DirectDictionary updated
2021-03-09 23:49:34 +03:00
Maksim Kita
43ba554191
Merge pull request #20595 from kitaisreal/cache-dictionaries-lru-cache
...
Cache dictionaries lru cache
2021-03-09 19:14:30 +03:00
Anton Popov
bc417cf54a
refactoring of serializations
2021-03-09 17:46:52 +03:00
Maksim Kita
edb673af56
Fixed tests
2021-03-09 01:03:25 +03:00
kssenii
5ee2925123
Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into library-bridge
2021-03-08 19:53:48 +00:00
Alexey Milovidov
019ed517bc
Fix gcc warning
2021-03-08 03:05:06 +03:00
kssenii
8a9fa561c7
Fix style check, build, ya check
2021-03-07 20:07:42 +00:00
kssenii
b7b15fe920
Remove unused
2021-03-07 15:23:20 +00:00
Maksim Kita
b789f80838
Fixed style check
2021-03-07 14:45:12 +03:00
Maksim Kita
9512bfd6d7
Fixed broken pipe exception handling
2021-03-07 14:41:53 +03:00
kssenii
61d8e27ea7
Common base for bridges part 2
2021-03-07 11:21:49 +00:00
Maksim Kita
cb5a93bcec
Updated exception handling
2021-03-07 02:39:19 +03:00
Maksim Kita
6414da73bf
Fixed code review issues
2021-03-06 21:45:51 +03:00
Maksim Kita
4db713103b
Fixed documentation
2021-03-06 14:38:27 +03:00
Nikita Mikhaylov
ca3610f66f
Update ya.make
2021-03-06 14:38:27 +03:00
Nikita Mikhaylov
2fe8fe17d9
Update ya.make.in
2021-03-06 14:38:27 +03:00
Maksim Kita
10c5518988
Fix tests
2021-03-06 14:38:27 +03:00
Maksim Kita
64e8f09649
Fix tests
2021-03-06 14:37:56 +03:00
Maksim Kita
c314de7388
Fixed documentation
2021-03-06 14:37:56 +03:00
Maksim Kita
aa85194bb0
Fix race
2021-03-06 14:37:56 +03:00
Maksim Kita
252f7604ee
Fixed minor issues
2021-03-06 14:37:56 +03:00
Maksim Kita
8ea6c4b852
Updated Dictionaries default value handling
2021-03-06 14:37:56 +03:00
Maksim Kita
717a9b048a
Fixed tests
2021-03-06 14:37:36 +03:00
Maksim Kita
a6534c3b42
Fix update position of duplicated keys in memory partition buffer
2021-03-06 14:36:37 +03:00
Maksim Kita
7602c6c6cb
Fixed sanitizers errors
2021-03-06 14:36:37 +03:00
Maksim Kita
6ab451d41d
Updated tests
2021-03-06 14:36:37 +03:00
Maksim Kita
92b79420a4
Fixed ubsan test
2021-03-06 14:36:37 +03:00
Maksim Kita
67edeadcc3
Fix dictionaries cmake test
2021-03-06 14:36:37 +03:00
Maksim Kita
ae88bbda5a
Updated CacheDictionary
2021-03-06 14:36:37 +03:00
Maksim Kita
ef1645b546
Fix test
2021-03-06 14:36:37 +03:00
Maksim Kita
2a79d77c1b
Fixed style check
2021-03-06 14:36:37 +03:00
Maksim Kita
e64b18fbac
Added dictGet with multiple requested attributes
2021-03-06 14:36:37 +03:00
Maksim Kita
ccb61064e1
Fix build issues
2021-03-06 14:36:37 +03:00
Maksim Kita
caea9ef734
Fix test
2021-03-06 14:36:37 +03:00
Maksim Kita
e830eb41b1
Fixed build
2021-03-06 14:36:37 +03:00
Maksim Kita
8ee89b59ec
Fixed build
2021-03-06 14:36:37 +03:00
Maksim Kita
d04e707567
Fixed special build
2021-03-06 14:36:37 +03:00
Maksim Kita
480beeda37
Fix gcc build
2021-03-06 14:36:37 +03:00
Maksim Kita
a22ec65e8a
Fixed minor issues
2021-03-06 14:36:37 +03:00
Maksim Kita
8138ced862
Fixed tests
2021-03-06 14:36:37 +03:00
Maksim Kita
2a5a9c6ca4
Fixed hierarchy tests
2021-03-06 14:36:37 +03:00
Maksim Kita
980d171207
Fixed typos
2021-03-06 14:36:37 +03:00
Maksim Kita
168741c67c
SSDCacheDictionaryFileBuffer create directory for file
2021-03-06 14:36:37 +03:00
Maksim Kita
1460d57f97
Fixed segfault because of member order of destruction
2021-03-06 14:36:37 +03:00
Maksim Kita
0edb9d8e3d
Added ICacheDictionaryStorage returnsFetchedColumnsInOrderOfRequestedKeys
2021-03-06 14:36:37 +03:00
Maksim Kita
c5fbe8793b
Added documentation
2021-03-06 14:36:37 +03:00
Maksim Kita
dc0bb7485d
Updated CacheDictionary
2021-03-06 14:36:37 +03:00
alexey-milovidov
2d8632e5a9
Update ExecutablePoolDictionarySource.cpp
2021-03-06 01:14:21 +03:00
alexey-milovidov
19e86f243e
Update src/Dictionaries/ExecutableDictionarySource.cpp
...
Co-authored-by: Nikita Mikhaylov <mikhaylovnikitka@gmail.com>
2021-03-06 01:06:40 +03:00
kssenii
2c080da51b
Better
2021-03-05 15:37:43 +00:00
kssenii
e0cda1033a
More methods
2021-03-05 10:43:47 +00:00
kssenii
dd4a7b6e3d
First version
2021-03-05 10:19:01 +00:00
Maksim Kita
9173544003
Added documentation
2021-03-05 13:17:46 +03:00
Maksim Kita
aa0778933c
Added BorrowedObjectPool
2021-03-05 13:17:46 +03:00
Maksim Kita
91e43a6b3b
Updated ExecutablePoolDictionarySource
2021-03-05 13:17:46 +03:00
Maksim Kita
fd4331083a
Removed debug log
2021-03-05 13:17:46 +03:00
Maksim Kita
c773afb659
Added documentation
2021-03-05 13:17:46 +03:00
Maksim Kita
6b69d859c1
Added ExecutablePool dictionary source
2021-03-05 13:17:45 +03:00
Alexander Kazakov
63b95c7451
MySQL dictionary source: A mechanism for retrying unexpected connection loss during communication with mysql server ( #21237 )
...
* Added a new type of Exception
for better recognition of connection failures
* Added more logging for mysql communication
* Retries on connection loss during query.
Make MySQL dictionary source resilient to unexpected loss of connection
during querying MySQL. This behavior is controlled with
".fail_on_connection_loss" config parameter, which defaults to false.
* Stripped some debugging leftover garbage
* Minor followup corrections
* Corrections after PR comments
* Yet more fixes
2021-02-27 11:18:28 +03:00
Maksim Kita
50e135db0f
Added comment
2021-02-17 19:24:04 +03:00
Maksim Kita
b2c09f002f
Dictionary create source with functions crash fix
2021-02-17 15:26:00 +03:00
Azat Khuzhin
2907385400
Avoid invalid dereference in RANGE_HASHED() dictionary
...
UBsan report the following [1], when query does not contains any columns
from the dictionary:
```sql
SELECT
toUInt32(toUInt32(NULL, toUInt32(NULL, inf, NULL), NULL)),
toUInt32(toUInt32(toUInt32(toUInt32(toUInt32(NULL, 1., NULL)), toUInt32(toUInt32(NULL, 0.5, NULL)), toUInt32(NULL, NULL)), toUInt32(toUInt32(NULL, 1., NULL)), toUInt32(NULL, NULL)), toUInt32(toUInt32(toUInt32(toUInt32(NULL, 1000.0001220703125, NULL)), toUInt32(toUInt32(NULL, 10.000100135803223, NULL)), toUInt32(NULL, NULL)), NULL, NULL, NULL))
FROM somedict
```
```
std::__1::vector<DB::ColumnWithTypeAndName, std::__1::allocator<DB::ColumnWithTypeAndName> >::back() @ 0x128c07a6 in /workspace/clickhouse
./obj-x86_64-linux-gnu/../src/Dictionaries/RangeDictionaryBlockInputStream.h:0: DB::RangeDictionaryBlockInputStream<DB::RangeHashedDictionary, unsigned short, unsigned long>::fillBlock(DB::PODArray<unsigned long, 4096ul, Allocator<false, false>, 15ul, 16ul> const&, DB::PODArray<unsigned short, 4096ul, Allocator<false, false>, 15ul, 16ul> const&, DB::PODArray<unsigned short, 4096ul, Allocator<false, false>, 15ul, 16ul> const&) const @ 0x1692335e in /workspace/clickhouse
./obj-x86_64-linux-gnu/../src/Dictionaries/RangeDictionaryBlockInputStream.h:0: DB::RangeDictionaryBlockInputStream<DB::RangeHashedDictionary, unsigned short, unsigned long>::getBlock(unsigned long, unsigned long) const @ 0x16922f96 in /workspace/clickhouse
./obj-x86_64-linux-gnu/../src/Dictionaries/DictionaryBlockInputStreamBase.cpp:23: DB::DictionaryBlockInputStreamBase::getHeader() const @ 0x166ab57c in /workspace/clickhouse
```
[1]: https://clickhouse-test-reports.s3.yandex.net/19451/64c0bf98290362fa216c05b070aa122a12af3c25/fuzzer_ubsan/report.html#fail1
2021-02-11 21:07:37 +03:00
Alexey Milovidov
40939ff6ba
Fix data race in executable dictionary
2021-02-03 20:45:50 +03:00
Vitaly Baranov
9427d5d94b
Merge pull request #19805 from vitlibar/allow-getting-return-type-of-dictget-without-loading-dictionary
...
Fix starting the server with tables having default expressions containing dictGet()
2021-02-02 18:19:55 +03:00
Maksim Kita
d9d206af92
Fixed typo
2021-02-01 12:35:47 +03:00
Maksim Kita
d3f299269f
Fixed code review issues
2021-02-01 12:35:47 +03:00
alexey-milovidov
e5b89f24b5
Update ExecutableDictionarySource.cpp
2021-02-01 12:35:47 +03:00
alexey-milovidov
77a8ef24de
Update ExecutableDictionarySource.cpp
2021-02-01 12:35:47 +03:00
alexey-milovidov
ecd6e10e22
Update ExecutableDictionarySource.cpp
2021-02-01 12:35:47 +03:00
alexey-milovidov
b83b8c56da
Update ExecutableDictionarySource.cpp
2021-02-01 12:35:47 +03:00
Maksim Kita
a0755e439c
Fixed typo
2021-02-01 12:35:47 +03:00
Maksim Kita
a9ecb6bf78
Fixed clang-tidy
2021-02-01 12:35:47 +03:00
Maksim Kita
d194294d0b
Fixed tests
2021-02-01 12:35:47 +03:00
Maksim Kita
dafb0ef4e9
ExecutableDictionarySource added implicit_key option
2021-02-01 12:35:47 +03:00
Vitaly Baranov
95177dc0de
Fix access to the key as an attribute in IPAddressDictionary.
2021-01-30 19:06:54 +03:00
Vitaly Baranov
7c8deae0e1
Fix starting the server with tables having columns' default expressions containing dictGet().
...
Allow getting return type of dictGet() without loading dictionary.
2021-01-30 19:06:48 +03:00
Ilya Yatsishin
a353020c54
Merge pull request #19804 from davenger/odbc_build_fix
...
Fix dependency on ODBC for Yandex internal build
2021-01-29 16:50:59 +03:00
Alexander Gololobov
0ee05d34fc
Fix dependency on ODBC for Yandex internal build
2021-01-29 14:54:54 +03:00
Maksim Kita
f0b1bc88c7
Fixed style issues
2021-01-27 16:25:27 +03:00
Maksim Kita
67ffa4189e
Fixed clang build
2021-01-27 16:25:27 +03:00
Maksim Kita
31881d24ad
Fixed clang errors
2021-01-27 16:25:27 +03:00
Maksim Kita
8e8d6f36ac
Fixed DictionaryDefaultValueExtractor
2021-01-27 16:25:27 +03:00
Maksim Kita
6653e356a3
Fixed build issues
2021-01-27 16:25:27 +03:00
Maksim Kita
b7a150cc63
Updated DictionaryDefaultValueExtractor interface
2021-01-27 16:25:27 +03:00
Maksim Kita
c4ffa2160f
Updated interfaces. Added documentation.
2021-01-27 16:25:27 +03:00
Maksim Kita
b0d3f32a36
Added DefaultValueExtractor
2021-01-27 16:25:27 +03:00
Maksim Kita
b11905f493
Fixed tests
2021-01-27 16:25:27 +03:00
Maksim Kita
7cb7d4dbce
Fixed dicitionaries todo
2021-01-27 16:25:27 +03:00
Maksim Kita
498df53ebf
Fixed style issues
2021-01-27 16:25:27 +03:00
Maksim Kita
77d2e00dd8
Updated DictionaryStructure
2021-01-27 16:25:27 +03:00
Maksim Kita
42d4fc1bbd
Updated FlatDictionary
2021-01-27 16:25:27 +03:00
Maksim Kita
a45459e095
Fixed tests
2021-01-27 16:25:27 +03:00
Maksim Kita
357b0b95a9
Added Nullable support for ComplexDirectDictionary
2021-01-27 16:25:27 +03:00
Maksim Kita
25d6e18ec0
Added Nullable support for ComplexKeyHashedDictionary
2021-01-27 16:25:27 +03:00
Maksim Kita
6e51b2f60a
Added Nullable support for RangeHashedDictionary
2021-01-27 16:25:27 +03:00
Maksim Kita
b745c64459
Added Nullable support for DirectDictionary
2021-01-27 16:25:27 +03:00
Maksim Kita
3e2d615e62
Added Nullable support for HashedDictionary
2021-01-27 16:25:27 +03:00
Maksim Kita
7ded8be0d5
Added Nullable support for FlatDictionary
2021-01-27 16:25:27 +03:00
Maksim Kita
b01027787e
Fixed tests
2021-01-27 16:25:27 +03:00
Maksim Kita
164e55972b
Fix style issue
2021-01-27 16:25:27 +03:00
Maksim Kita
791c7204d7
Fix style issues
2021-01-27 16:25:27 +03:00
Maksim Kita
8fdbde8642
Updated PolygonDictionary to new interface
2021-01-27 16:25:27 +03:00
Maksim Kita
0ed64d8ab0
Simplified getColumn implementation
2021-01-27 16:25:27 +03:00
Maksim Kita
6f7ad82160
Updated IPAddressDictionary to new interface
2021-01-27 16:25:26 +03:00
Maksim Kita
07fab85cc4
Updated SSDComplexKeyCacheDictionary to new interface
2021-01-27 16:25:26 +03:00
Maksim Kita
0d2e498ed4
Updated ComplexKeyCacheDictionary to new interface
2021-01-27 16:25:26 +03:00
Maksim Kita
b4896ee82b
Updated ComplexKeyDirectDictionary to new interface
2021-01-27 16:25:26 +03:00
Maksim Kita
81f4bc7b4c
Updated SSDCacheDictionary to new interface
2021-01-27 16:25:26 +03:00
Maksim Kita
6017d1a034
Updated CachedDictionary to new interface
2021-01-27 16:25:26 +03:00
Maksim Kita
cd6ec3234e
Updated DirectDictionary to new interface
2021-01-27 16:25:26 +03:00
Maksim Kita
cc767d4f2e
Updated HashedDictionary to new interface
2021-01-27 16:25:26 +03:00
Maksim Kita
d61e8c083b
Updated RangeHashedDictionary to new interface
2021-01-27 16:25:26 +03:00
Maksim Kita
d92d843e20
Fixed compile issue
2021-01-27 16:25:26 +03:00
Maksim Kita
8bd98ae432
Remove previous interface enum
2021-01-27 16:25:26 +03:00
Maksim Kita
f24a8eadb2
Updated ComplexKeyHashed dictionary to new interface
2021-01-27 16:25:26 +03:00
Maksim Kita
d16a572eee
Updated IDictionaryBase interface
2021-01-27 16:25:26 +03:00
Maksim Kita
7a2f6cd5b9
Dictionaries refactoring to new interface
2021-01-27 16:25:26 +03:00
Maksim Kita
e0dc6f9417
Dictionary better error message during attribute parsing
2021-01-27 00:50:23 +03:00
Maksim Kita
16eb7b01b6
Merge pull request #19571 from kitaisreal/create-simple-dictionary-id-expression-fix
...
Query CREATE DICTIONARY id expression fix
2021-01-26 12:43:49 +03:00
Maksim Kita
ab7f15c77e
Query CREATE DICTIONARY id expression fix
2021-01-25 15:43:35 +03:00
kssenii
daab2c91bb
Better
2021-01-21 21:15:11 +00:00
kssenii
c1702f34ee
Add factories info into system.query_log
2021-01-21 15:46:37 +00:00
alexey-milovidov
7de745ce77
Merge pull request #18554 from kssenii/pg2ch
...
Add PostgreSQL table function, dictionary source, database engine
2021-01-16 23:55:05 +03:00
Azat Khuzhin
1b901b368f
Add missing type check in dictHas for COMPLEX_KEY_SSD_CACHE layout
2021-01-16 12:33:36 +03:00
Alexey Milovidov
67f207d8ca
More safe connection string
2021-01-16 00:18:51 +03:00
Alexey Milovidov
ba1921f380
Minor changes
2021-01-15 22:59:49 +03:00
Alexey Milovidov
a19e7edd14
Merge branch 'master' into kssenii-pg2ch
2021-01-15 17:33:19 +03:00
kssenii
38a9cba850
Fix
2021-01-11 10:55:38 +00:00
Alexey Milovidov
6eb5a5f4d9
Remove useless code
2021-01-10 03:28:59 +03:00
kssenii
0088d66d59
Hopefully better array conversions for insert query
2021-01-09 22:42:42 +00:00
Alexey Milovidov
e7a7f557d1
Fix Arcadia
2021-01-07 18:40:54 +03:00
Alexey Milovidov
8af19c3251
Fix Arcadia
2021-01-07 15:29:02 +03:00
Alexey Milovidov
60d4db421c
Fix Arcadia
2021-01-07 06:45:12 +03:00
alexey-milovidov
72b142a00a
Merge branch 'master' into pg2ch
2021-01-06 23:18:59 +03:00
Nikita Mikhailov
cc794b7a83
Merge branch 'master' of github.com:ClickHouse/ClickHouse into parallel-parsing-input-format
2020-12-30 16:55:15 +03:00
Nikita Mikhailov
c5f92e5096
better formatfactory
2020-12-30 06:07:30 +03:00
Nikita Mikhailov
2b90b4e01d
Merge branch 'master' of github.com:ClickHouse/ClickHouse into parallel-parsing-input-format
2020-12-29 22:47:06 +03:00
kssenii
c1eced8993
Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into pg2ch
2020-12-29 15:09:53 +00:00
Yatsishin Ilya
011d2b4631
disable couple checks for now
2020-12-29 17:57:12 +03:00
Nikita Mikhaylov
6863dbd6a8
Merge pull request #18480 from vdimir/ip-dict-key-access
...
IP dict key access
2020-12-28 16:15:40 +03:00
kssenii
9b25890674
Generate ya.make, fix fast test
2020-12-28 12:54:52 +00:00
Nikita Mikhailov
c3288c3fbf
Merge branch 'master' of github.com:ClickHouse/ClickHouse into parallel-parsing-input-format
2020-12-28 15:09:37 +03:00
kssenii
8f8920a7ee
Add table cache, better drop table
2020-12-27 15:52:15 +00:00
kssenii
00a37404ca
Add postgresql database engine
2020-12-27 12:26:29 +00:00
kssenii
d95e8e2d74
Better
2020-12-27 12:18:59 +00:00
kssenii
375e8e9736
Add postgres dictionary source
2020-12-27 12:18:09 +00:00
alexey-milovidov
5c459e74c9
Update IPAddressDictionary.cpp
2020-12-27 11:43:27 +03:00
vdimir
46791d4908
Do not throw logical error from IPAddressDictionary ctor
2020-12-26 19:16:57 +00:00
vdimir
1e3bd37380
Add option access_to_key_from_attributes to ip dictionary
2020-12-24 19:13:49 +00:00
alexey-milovidov
30e3900235
Merge pull request #18435 from vdimir/ip-dict-minor-fix
...
Raise an error if more than one key is provided to ip_dictionary
2020-12-24 20:16:07 +03:00
Yatsishin Ilya
ce1e2b18a3
Fix codespell warnings. Split style checks. Update style checks docker
2020-12-24 13:17:52 +03:00
vdimir
54448ad4ce
Remove unnecessary IPAddressDictionary::has overload
2020-12-24 07:38:10 +00:00
vdimir
05d45fcf61
Raise an error if more than one key is provided to ip_dictionary
2020-12-23 16:58:54 +00:00
Nikita Mikhailov
dcfbe782c6
Merge branch 'master' of github.com:ClickHouse/ClickHouse into parallel-parsing-input-format
2020-12-23 05:20:22 +03:00
Denis Glazachev
da7aa25e01
Store copies instead of refs in ExternalQueryBuilder instances
2020-12-21 03:27:35 +04:00
Nikita Mikhaylov
e0addac6fc
save changes
2020-12-15 00:56:46 +03:00
Azat Khuzhin
5b3ab48861
More forward declaration for generic headers
...
The following headers are pretty generic, so use forward declaration as
much as possible:
- Context.h
- Settings.h
- ConnectionTimeouts.h
(Also this shows that some missing some includes -- this has been fixed)
And split ConnectionTimeouts.h into ConnectionTimeoutsContext.h (since
module part cannot be added for it, due to recursive build dependencies
that will be introduced)
Also remove Settings from the RemoteBlockInputStream/RemoteQueryExecutor
and just pass the context, since settings was passed only in speicifc
places, that can allow making a copy of Context (i.e. Copier).
Approx results (How much units will be recompiled after changing file X?):
- ConnectionTimeouts.h
- mainline: 100
- Context.h:
- mainline: ~800
- patched: 415
- Settings.h:
- mainline: 900-1K
- patched: 440 (most of them because of the Context.h)
2020-12-12 17:43:10 +03:00
Alexey Milovidov
4ecfe8fef4
Remove unused headers
2020-12-08 02:10:22 +03:00
alexey-milovidov
4df1983d64
Merge pull request #17571 from vdimir/ip-dict-accept-alias
...
IP dictionary works with aliased types `IPv4` and `IPv6` (close #6804 )
2020-12-07 02:19:32 +03:00
Ivan
315ff4f0d9
ANTLR4 Grammar for ClickHouse and new parser ( #11298 )
2020-12-04 05:15:44 +03:00
vdimir
5f330a9366
IP dictionary works with aliased types IPv4
and IPv6
( close #6804 )
2020-11-28 23:12:19 +03:00
Nikolai Kochetov
729272391f
Merge branch 'master' into ip-dict-no-trie
2020-11-25 23:07:19 +03:00
Nikolai Kochetov
eec131df86
Update registerDictionaries.cpp
2020-11-25 16:27:10 +03:00
Nikita Mikhaylov
6787f98476
Merge pull request #14958 from nikitamikhaylov/refactor_cache_dictionary
...
Refactor cache dictionary
2020-11-24 14:55:02 +03:00
vdimir
52bc290616
Regenerate ya.make, add format null to ip_trie.xml
2020-11-24 11:20:11 +03:00
tavplubix
5cc9cb01cd
Merge pull request #16751 from amosbird/globalcontext
...
Make global_context consistent.
2020-11-22 18:46:17 +03:00
vdimir
a277a5bb16
Rename TrieDictionary -> IPAddressDictionary
2020-11-21 21:38:10 +03:00
vdimir
e2fac19686
Remove libbtrie
2020-11-21 21:31:15 +03:00
vdimir
7adbc5a0c6
Fix ip dict build
2020-11-21 20:39:16 +03:00
vdimir
77ffd25cc0
Fixes for IP dictionary
...
More meaningful parse errors
Code style fixes, more comments
Fix bytes_allocated calculation
2020-11-21 17:56:58 +03:00
Nikolai Kochetov
bac1def5f9
Merge pull request #17134 from abyss7/tcp-port
...
Implement tcpPort() function for tests
2020-11-20 20:32:55 +03:00
Amos Bird
1d9d586e20
Make global_context consistent.
2020-11-20 18:23:14 +08:00
vdimir
36544a45b7
Merge remote-tracking branch 'upstream/master' into ip-dict-no-trie
2020-11-19 18:56:24 +03:00
alexey-milovidov
29bfb5a518
Merge pull request #16997 from vdimir/source-clickhouse-usability
...
source(clickhouse(...)) usability
2020-11-19 07:37:00 +03:00
Ivan Lezhankin
17977e4c4b
Use global context for gtests
2020-11-18 21:24:58 +03:00
Ivan Lezhankin
f43f61a10b
Another gtest fix
2020-11-18 19:19:39 +03:00
Ivan Lezhankin
ca0740d333
Fix gtest for dictionaries
2020-11-18 17:58:55 +03:00
nikitamikhaylov
36a00ffb1e
fix build
2020-11-18 17:28:38 +03:00
nikitamikhaylov
9a0fd70edc
better code
2020-11-18 16:58:28 +03:00
nikitamikhaylov
13e711b27e
rename back config
2020-11-18 16:38:14 +03:00
Ivan Lezhankin
fdd1c182ab
Merge remote-tracking branch 'upstream/master' into tcp-port
2020-11-18 16:22:00 +03:00
nikitamikhaylov
9c6b896928
style + flaky test fix
2020-11-17 17:36:04 +03:00
nikitamikhaylov
4345f2987d
better
2020-11-17 16:59:13 +03:00
nikitamikhaylov
20ae82b24b
remote nolint
2020-11-17 16:59:13 +03:00
nikitamikhaylov
e604d37067
better
2020-11-17 16:59:13 +03:00
nikitamikhaylov
f596d95b4b
better states for cells
2020-11-17 16:59:13 +03:00
nikitamikhaylov
80e77b6a61
better
2020-11-17 16:59:13 +03:00
nikitamikhaylov
31b1f644c1
better
2020-11-17 16:59:13 +03:00
nikitamikhaylov
0f5e980d85
style
2020-11-17 16:59:12 +03:00
nikitamikhaylov
321fb090f1
return back to handwritten cache
2020-11-17 16:59:12 +03:00
nikitamikhaylov
fbd0d14dd6
save
2020-11-17 16:59:12 +03:00
nikitamikhaylov
10adac00f4
avoid race on read/write to the cache of defaults
2020-11-17 16:59:12 +03:00
nikitamikhaylov
9b46b53fa3
better defaults
2020-11-17 16:59:12 +03:00
nikitamikhaylov
028fc00166
fix tests
2020-11-17 16:59:12 +03:00
nikitamikhaylov
d52e72d66c
type_id cast
2020-11-17 16:59:12 +03:00
nikitamikhaylov
3df6e457f7
style
2020-11-17 16:59:12 +03:00
nikitamikhaylov
720d3a411f
skip unused keys
2020-11-17 16:59:12 +03:00
nikitamikhaylov
82c6467a5d
better
2020-11-17 16:59:12 +03:00
nikitamikhaylov
02b2b38716
add normal parent
2020-11-17 16:59:12 +03:00
nikitamikhaylov
0d1a8ea2a1
first try
2020-11-17 16:59:12 +03:00
Ivan Lezhankin
f897f7c93f
Refactor IFunction to execute with const arguments
2020-11-17 16:24:45 +03:00
Ivan Lezhankin
1787cd89a7
Implement tcpPort() function literal
2020-11-17 16:24:13 +03:00
Alexey Milovidov
24f4fa6edf
Follow Arcadia ya.make rules
2020-11-17 00:16:50 +03:00
vdimir
428f42053b
Merge remote-tracking branch 'upstream/master' into source-clickhouse-usability
2020-11-16 22:34:28 +03:00
Alexey Milovidov
3df04ce0c2
Follow Arcadia ya.make rules
2020-11-16 21:24:58 +03:00
vdimir
6dcb38db3f
Minor changes in IP dictionary
2020-11-16 21:08:31 +03:00
vdimir
608adc77ca
Remove non-unique entries in ip_dict
2020-11-16 10:43:55 +03:00
vdimir
9eb3a0140d
Add 96 bits to mapped IPv4 in ip_dict loading procedure
2020-11-15 20:09:28 +03:00
vdimir
5e0e22301b
Slightly improve ip_dict loading performance, handle v4 to v6 masks in prepossessing, add more tests
2020-11-15 18:55:34 +03:00
vdimir
8b91e0984c
SSE version of matchIPv6Subnet for ip_dict
2020-11-14 23:38:34 +03:00
vdimir
3c6104855d
Fix mask comparison for ip dict, add tests
2020-11-14 23:29:58 +03:00
vdimir
ca8e4b1607
Minor fixes of ip dict
2020-11-14 20:03:13 +03:00
vdimir
cd3cc329a1
Remove redundant anon namespace in ClickHouseDictionarySource.cpp
2020-11-14 18:23:48 +03:00
vdimir
1dce20e5da
Default host, port and user parameters for source(clickhouse(...))
2020-11-14 16:44:45 +03:00
vdimir
7c19ad5ac7
Fix mappedIPv4ToBinary, add test reference for ip_dict
2020-11-12 10:37:27 +03:00
vdimir
dbec289c9a
[wip] rewrite ip_dict data struct, fix bugs, add tests
2020-11-12 00:58:30 +03:00
Alexander Tokmakov
5cdfcfb307
remove other stringstreams
2020-11-09 22:12:44 +03:00
vdimir
13685e83df
Exact ip records comparison for getBlockInputStream
2020-11-08 23:50:49 +03:00
vdimir
c306902fdf
Fix ip subnet comparison
2020-11-08 23:21:13 +03:00
vdimir
a67f5b780f
Use sorted ip array instead of trie in TrieDictionary
2020-11-08 19:19:04 +03:00
Alexey Milovidov
dba57529f8
Merge branch 'master' of github.com:yandex/ClickHouse into fix-stringstream
2020-11-07 22:03:38 +03:00
Alexey Milovidov
fd84d16387
Fix "server failed to start" error
2020-11-07 03:14:53 +03:00
Alexey Milovidov
c4398952da
Addition to prev. revision
2020-11-06 20:40:11 +03:00
Alexey Milovidov
b56486510f
Improve Arcadia
2020-11-05 12:55:01 +03:00
alesapin
94ae5aed73
Merge pull request #16550 from ClickHouse/remove_wrong_assertion
...
Remove wrong assertion from SSDComplexKeyCacheDictionary
2020-10-30 22:45:48 +03:00
alesapin
182f9fbdca
Remove wrong assertion from SSDComplexKeyCacheDictionary
2020-10-30 12:36:46 +03:00
Maxim Akhmedov
3627fabfb9
Remove -g0 form Arcadia build settings.
2020-10-29 17:37:23 +03:00
Ivan
1d170f5745
ASTTableIdentifier Part #1 : improve internal representation of ASTIdentifier name ( #16149 )
...
* Use only |name_parts| as primary name source
* Restore legacy logic for table restoration
* Fix build
* Fix tests
* Add pytest server config
* Fix tests
* Fixes due to review
2020-10-24 21:46:10 +03:00
alesapin
76a501d7c5
Merge branch 'master' into simplify-init-script
2020-10-19 10:56:40 +03:00
alesapin
07c12116e2
Merge pull request #16007 from CurtizJ/fix-complex-key-direct
...
Allow to use direct layout for dictionaries with complex keys
2020-10-16 10:03:10 +03:00
Nikita Mikhaylov
6512d84b31
Merge pull request #15985 from CurtizJ/redis-cached-dict
...
Add support of cache layout for Redis dictionaries with complex key
2020-10-15 22:35:36 +03:00
Anton Popov
9c9ad2cc85
Merge branch 'master' into fix-complex-key-direct
2020-10-15 18:53:59 +03:00
Nikolai Kochetov
963ce315b2
Merge pull request #15454 from azat/dict-prealloc
...
Speedup hashed/sparse_hashed dictionary loading by preallocating the hash table
2020-10-15 15:03:53 +03:00
Anton Popov
424dd3147c
allow to use direct layout for dictionaries with complex keys
2020-10-15 14:59:41 +03:00
Anton Popov
3050b2e67b
add support of cache layout for redis dictionaries with complex key
2020-10-14 22:57:07 +03:00
Alexey Milovidov
269b6383f5
Check for #pragma once in headers
2020-10-10 21:37:02 +03:00
Alexey Milovidov
bd805300bb
Whitespace
2020-10-09 22:33:23 +03:00
Azat Khuzhin
064f901ea8
Add ability to preallocate hashtables for hashed/sparsehashed dictionaries
...
preallocation can be used only when we know number of rows, and for this
we need:
- source clickhouse
- no filtering (i.e. lack of <where>), since filtering can filter
too much rows and eventually it may allocate memory that will
never be used.
For sparse_hash the difference is quite significant, preallocated
sparse_hash hashtable allocates ~33% faster (7.5 seconds vs 5 seconds
for insert, and the difference is more significant for higher number of
elements):
$ ninja bench-sparse_hash-run
[1/1] cd /src/ch/hashtable-bench/.cmake && ...ch/hashtable-bench/.cmake/bench-sparse_hash
sparse_hash/insert: 7.574 <!--
sparse_hash/find : 2.14426
sparse_hash/maxrss: 174MiB
sparse_hash/time: 9710.51 msec (user+sys)
$ time ninja bench-sparse_hash-preallocate-run
[1/1] cd /src/ch/hashtable-bench/.cmake && ...-bench/.cmake/bench-sparse_hash-preallocate
sparse_hash/insert: 5.0522 <!--
sparse_hash/find : 2.14024
sparse_hash/maxrss: 174MiB
sparse_hash/time: 7192.06 msec (user+sys)
P.S. the difference for sparse_hashed dictionary with 4e9 elements
(uint64, uint16) is ~18% (4975.905 vs 4103.569 sec)
v2: do not reallocate the dictionary from the progress callback
Since this will access hashtable in parallel.
v3: drop PREALLOCATE() and do this only for source=clickhouse and empty
<where>
2020-10-09 22:28:14 +03:00
Nikita Mikhaylov
788b62b931
Merge pull request #14879 from nikitamikhaylov/yet_another_dictionary_bugfix
...
Segfault in CacheDictionary
2020-09-24 20:23:42 +03:00
Alexander Kuzmenkov
0752fa0137
Rethrow copy of exception in SSD dictionaries
...
A follow-up to https://github.com/ClickHouse/ClickHouse/pull/14689 ,
that should fix asan reports in stress test in master.
2020-09-22 18:54:11 +03:00
Nikita Mikhaylov
123f389f1a
Merge pull request #14689 from ClickHouse/aku/broken-perf
...
Add context to errors in ExpressionAction
2020-09-21 23:33:42 +03:00
nikitamikhaylov
2530b71aa6
style
2020-09-18 17:48:05 +03:00
nikitamikhaylov
822a78fa58
call under mutex
2020-09-18 17:25:45 +03:00
Vitaly Baranov
3356d75b23
Merge pull request #13156 from azat/cluster-secure
...
Secure inter-cluster query execution (with initial_user as current query user) [v3]
2020-09-17 17:11:00 +03:00
nikitamikhaylov
b33a5e0d14
done
2020-09-16 15:32:33 +03:00
Alexander Kuzmenkov
da2a3fffe8
fixup
2020-09-16 13:00:15 +03:00
Artem Zuikov
51ba12c2c3
Try speedup build ( #14809 )
2020-09-15 12:55:57 +03:00
Azat Khuzhin
0159c74f21
Secure inter-cluster query execution (with initial_user as current query user) [v3]
...
Add inter-server cluster secret, it is used for Distributed queries
inside cluster, you can configure in the configuration file:
<remote_servers>
<logs>
<shard>
<secret>foobar</secret> <!-- empty -- works as before -->
...
</shard>
</logs>
</remote_servers>
And this will allow clickhouse to make sure that the query was not
faked, and was issued from the node that knows the secret. And since
trust appeared it can use initial_user for query execution, this will
apply correct *_for_user (since with inter-server secret enabled, the
query will be executed from the same user on the shards as on initator,
unlike "default" user w/o it).
v2: Change user to the initial_user for Distributed queries if secret match
v3: Add Protocol::Cluster package
v4: Drop Protocol::Cluster and use plain Protocol::Hello + user marker
v5: Do not use user from Hello for cluster-secure (superfluous)
2020-09-15 01:36:28 +03:00
Nikita Mikhaylov
44726c37c3
Merge branch 'master' into fix-executable-dictionary-source-hangup
2020-09-09 23:01:41 +04:00
Vasily Nemkov
3973a17530
MySql datatypes dateTime64 and decimal ( #11512 )
2020-09-09 15:18:02 +03:00
Ilya Yatsishin
11a247d2f4
Merge pull request #14556 from ClickHouse/fix-arcadia-2
...
Lower binary size in "Arcadia" build
2020-09-08 12:08:35 +03:00
Alexey Milovidov
e3924b8057
Fix "Arcadia"
2020-09-08 01:14:13 +03:00
alexey-milovidov
3903794386
Update ExecutableDictionarySource.cpp
2020-09-07 09:45:01 +03:00
alexey-milovidov
1f0d2be17a
Update ExecutableDictionarySource.h
2020-09-07 09:44:32 +03:00
Alexey Milovidov
8dd98f74a5
Remove debug output
2020-09-07 09:43:28 +03:00
Alexey Milovidov
04a6965006
Fix error with executable dictionary source
2020-09-07 09:40:01 +03:00
Alexey Milovidov
4a336e3814
More consistent invocation of skipBOMIfExists
2020-09-07 07:21:55 +03:00
alexey-milovidov
4b1b744644
Revert "Less number of threads in builder"
2020-09-03 01:00:41 +03:00
alexey-milovidov
7bd31fb3d3
Merge pull request #14313 from ClickHouse/fix-fuzz-test6
...
Better check for tuple size in SSD cache complex key external dictionaries
2020-09-03 00:50:24 +03:00
Alexey Milovidov
deb483eee5
Merge branch 'master' into fix-fuzz-test6
2020-09-02 04:40:42 +03:00
Alexey Milovidov
56bbac1569
Trigger CI
2020-09-02 04:28:52 +03:00
Anton Popov
7c3712c121
Merge pull request #13688 from it1804/master
...
Redis dictionary support for simple Redis requirepass authorization
2020-09-02 01:43:02 +03:00
Alexey Milovidov
142a5bcede
Added validation of key types to SSD Cache dictionary
2020-09-01 02:10:04 +03:00
Alexey Milovidov
8fa61f785f
Better check for tuple size in complex key external dictionaries
2020-09-01 01:55:52 +03:00
alexey-milovidov
bce8166420
Update FileDictionarySource.cpp
2020-08-27 21:51:19 +03:00
Alexey Milovidov
a4a6128431
Trigger CI
2020-08-26 23:45:24 +03:00
Nikita Mikhaylov
d05230c55a
Update CacheDictionary.cpp
2020-08-26 17:04:05 +03:00
Nikita Mikhaylov
da16f234cc
Update CacheDictionary.cpp
2020-08-26 14:06:32 +03:00
alexey-milovidov
f40b80ed45
Merge pull request #12756 from sundy-li/hotfix/dict-access
...
Fix ClickHouseDictionarySource wrong access check
2020-08-26 03:33:42 +03:00
Nikita Mikhaylov
21a50aab30
Merge branch 'master' into cache-dictionary-bugfix
2020-08-19 15:53:23 +04:00
Artem Zuikov
becc186c91
Add support for extended precision integers and decimals ( #13097 )
2020-08-19 14:52:17 +03:00
Alexey Milovidov
eeb769d2d4
Remove useless code around zkutil
2020-08-18 22:02:07 +03:00
Alexey Milovidov
0c75ebcba3
Fix typo
2020-08-15 06:28:48 +03:00
Alexey Milovidov
c260ecb58e
Remove debug output
2020-08-15 06:27:36 +03:00
Alexey Milovidov
52c3857225
Fix server restart after stress test
2020-08-15 06:10:57 +03:00
it1804
a1c0c52c5b
Allow authenticate Redis with requirepass option
2020-08-14 02:01:25 +05:00
it1804
a79c3175a7
Allow authenticate Redis with requirepass option
2020-08-14 02:00:12 +05:00
Nikita Mikhaylov
9765588b9f
better
2020-08-13 14:12:16 +03:00
Nikita Mikhaylov
7082baa96c
add locks to fix datarace
2020-08-13 14:12:16 +03:00
Nikita Mikhaylov
4c89fb8f84
better
2020-08-11 22:50:48 +03:00
Nikita Mikhaylov
519c5c500e
first attempt
2020-08-11 22:39:48 +03:00
alexey-milovidov
8912a1cda3
Merge pull request #13082 from CurtizJ/fix-redis
...
Fix access to redis dictionary after connection was dropped once
2020-08-10 03:29:17 +03:00
Alexey Milovidov
edd89a8610
Fix half of typos
2020-08-08 03:47:03 +03:00
Alexander Kuzmenkov
45b57f2df5
fixes
2020-08-06 00:53:35 +03:00
Alexander Kuzmenkov
d205b20c04
wip
2020-08-05 05:21:33 +03:00
Alexander Tokmakov
5b92f43f12
Merge branch 'master' into database_atomic_improvements
2020-08-03 14:35:40 +03:00
alexey-milovidov
56a974049e
Merge pull request #13158 from ClickHouse/amosbird-fm
...
Merge #12574
2020-08-02 01:48:57 +03:00
Alexey Milovidov
07f3662f6d
Merge remote-tracking branch 'origin/master' into deprecate-special-zero-datetime
2020-07-31 23:49:06 +03:00
Alexey Milovidov
6d5590a4b4
Merge with master
2020-07-31 15:25:17 +03:00
alexey-milovidov
9c9ef0db9b
Merge branch 'master' into database_atomic_improvements
2020-07-31 14:56:49 +03:00
Alexey Milovidov
bf4e74375e
generate ya.make
2020-07-31 02:43:55 +03:00
alexey-milovidov
74edcfb87e
Merge pull request #13073 from nikitamikhaylov/rewrite-tests
...
BayesAB test
2020-07-31 02:30:07 +03:00
Anton Popov
37499f2fe1
bump CI
2020-07-31 02:06:01 +03:00
Alexey Milovidov
83c9d9ef45
Merge branch 'master' into deprecate-special-zero-datetime
2020-07-31 00:17:04 +03:00
Nikita Mikhaylov
4d49d2c671
another removes
2020-07-30 13:31:14 +03:00
Nikita Mikhaylov
1d6c2ba689
rewrite other test + remove useless includes
2020-07-29 20:37:57 +03:00