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
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
Denis Glazachev
da7aa25e01
Store copies instead of refs in ExternalQueryBuilder instances
2020-12-21 03:27:35 +04: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