Vitaly Baranov
aee67a6693
Merge pull request #31484 from eungenue/Implement-SSL-X509-certificate-authentication
...
Implement ssl x509 certificate authentication
2022-02-21 11:30:52 +03:00
Maksim Kita
13cbf79ecb
Improve performance of insert into table functions URL, S3, File, HDFS
2022-02-10 20:06:23 +00:00
Anton Popov
298838f891
avoid unnecessary copying of Settings
2022-02-10 12:13:51 +03:00
Azat Khuzhin
bedf208cbd
Use fmt::runtime() for LOG_* for non constexpr
...
Here is oneliner:
$ gg 'LOG_\(DEBUG\|TRACE\|INFO\|TEST\|WARNING\|ERROR\|FATAL\)([^,]*, [a-zA-Z]' -- :*.cpp :*.h | cut -d: -f1 | sort -u | xargs -r sed -E -i 's#(LOG_[A-Z]*)\(([^,]*), ([A-Za-z][^,)]*)#\1(\2, fmt::runtime(\3)#'
Note, that I tried to do this with coccinelle (tool for semantic
patchin), but it cannot parse C++:
$ cat fmt.cocci
@@
expression log;
expression var;
@@
-LOG_DEBUG(log, var)
+LOG_DEBUG(log, fmt::runtime(var))
I've also tried to use some macros/templates magic to do this implicitly
in logger_useful.h, but I failed to do so, and apparently it is not
possible for now.
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
v2: manual fixes
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-02-01 14:30:03 +03:00
Maksim Kita
5ef83deaa6
Update sort to pdqsort
2022-01-30 19:49:48 +00:00
Maksim Kita
43604a2e8f
Fixed tests
2022-01-25 21:56:29 +00:00
Maksim Kita
ca77f652e2
Fixed style check
2022-01-25 11:13:37 +00:00
Maksim Kita
e27332ce10
RangeHashedDictionary added options range_lookup_strategy, convert_null_range_bound_to_open
2022-01-25 11:13:37 +00:00
Maksim Kita
4e7e67e330
Fixed tests
2022-01-25 11:13:37 +00:00
Maksim Kita
c72f7f2147
RangeHashedDictionary added support for range values that extend Int64 type
2022-01-25 11:13:37 +00:00
Maksim Kita
bcbd956b83
RangeHashedDictionary change layout structure
2022-01-25 11:13:37 +00:00
Maksim Kita
f76536c079
Merge pull request #33914 from kitaisreal/dictionaries-added-support-for-date-time-64
...
Dictionaries added support for DateTime64
2022-01-23 13:21:22 +01:00
Maksim Kita
bceb2d598f
Fixed style check
2022-01-22 20:34:42 +00:00
Maksim Kita
3e30641fc8
Dictionaries updated support for empty attributes
2022-01-22 20:01:45 +00:00
Maksim Kita
fd87d81108
Dictionaries added support for DateTime64
2022-01-22 18:03:45 +00:00
alexey-milovidov
2e7a1fe229
Merge pull request #33871 from kitaisreal/flat-dictionary-improve-data-load-performance
...
FlatDictionary improve data load performance
2022-01-22 13:07:05 +03:00
alexey-milovidov
eb6849f7c7
Merge pull request #33842 from azat/cmake-contrib-fixes
...
More cmake external modules cleanups
2022-01-22 10:34:54 +03:00
Maksim Kita
b130a2b1ed
Fixed tests
2022-01-21 19:22:55 +00:00
Maksim Kita
2d712b1d26
FlatDictionary improve data load performance
2022-01-21 15:01:55 +00:00
Maksim Kita
548a7bccee
Merge pull request #33804 from CurtizJ/redis-pool
...
Use connection pool for redis dictionary
2022-01-21 11:40:35 +01:00
Maksim Kita
c68fe35b2f
Merge pull request #33832 from kitaisreal/type-id-name-fix
...
TypeId better naming
2022-01-21 11:36:02 +01:00
Azat Khuzhin
d25b59803e
contrib/abseil: add cmake ALIAS library
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-01-21 10:11:06 +03:00
Maksim Kita
32ecf374bf
Fixed style check
2022-01-20 22:36:42 +00:00
Maksim Kita
b2d95f6750
Merge pull request #33831 from kitaisreal/dictionaries-added-date32-type-support
...
Dictionaries added Date32 type support
2022-01-20 19:04:46 +01:00
Maksim Kita
4d41c6a2ac
Fixed build
2022-01-20 17:08:55 +00:00
Maksim Kita
502c1637d5
Merge pull request #33827 from kitaisreal/range-hashed-dictionary-handle-invalid-intervals
...
RangeHashedDictionary handle invalid intervals
2022-01-20 17:16:49 +01:00
Anton Popov
84da87e4f1
minor fixes in redis dictionary
2022-01-20 17:55:56 +03:00
Maksim Kita
115ecb09a8
Dictionaries added Date32 type support
2022-01-20 13:48:33 +00:00
Maksim Kita
97605b7c9c
Fixed tests
2022-01-20 13:36:12 +00:00
Anton Popov
6015d86dee
handle exception while getting connection from pool
2022-01-20 16:31:00 +03:00
Maksim Kita
844eb4ccdc
RangeHashedDictionary handle invalid intervals
2022-01-20 11:16:18 +00:00
Kruglov Pavel
dd2971791c
Merge pull request #33791 from kitaisreal/dictionaries-read-keys-array-copy-fix
...
Dictionaries remove unnecessary copy of keys during read
2022-01-20 13:59:41 +03:00
Azat Khuzhin
e0e81b340d
Fix w/o ODBC build
2022-01-20 10:02:02 +03:00
Azat Khuzhin
a75b748fee
Remove unbundled mysql support
2022-01-20 10:02:01 +03:00
Azat Khuzhin
16adb8c4d6
Remove unbundled cassandra support
2022-01-20 10:01:13 +03:00
Azat Khuzhin
8ede97925e
Remove unbundled sparsehash support
2022-01-20 10:01:11 +03:00
Anton Popov
4810d13aff
use connection pool for redis dictionary
2022-01-20 03:12:28 +03:00
Maksim Kita
fd6a728953
Dictionaries read keys array copy fix
2022-01-19 16:08:56 +00:00
Maksim Kita
41a6cd54aa
Merge pull request #33516 from kitaisreal/range-hashed-dictionary-interval-tree
...
RangeHashedDictionary use interval tree
2022-01-19 16:30:31 +01:00
Kruglov Pavel
2295a07066
Merge pull request #33534 from azat/fwd-decl
...
RFC: Split headers, move SystemLog into module, more forward declarations
2022-01-18 17:22:49 +03:00
Maksim Kita
60bcf88228
Added IntervalTree documentation
2022-01-18 13:20:43 +00:00
Maksim Kita
30dab61f97
Merge pull request #33526 from kitaisreal/dictionary-rename-fix
...
Dictionary rename fix
2022-01-18 13:11:34 +01:00
Maksim Kita
3ca17afa00
Fixed build
2022-01-17 20:35:52 +00:00
Maksim Kita
42ce3f2ae8
Fixed tests
2022-01-17 14:37:23 +00:00
Eugene Galkin
f46dca4793
support x509 ssl certificate authentication
2022-01-17 15:01:38 +03:00
alexey-milovidov
16feccbb34
Merge pull request #33672 from kitaisreal/functions-dict-get-has-implicit-key-cast
...
Functions dictGet, dictHas implicit key cast
2022-01-17 07:38:36 +03:00
Maksim Kita
ea78c0b33c
Fixed style
2022-01-16 16:45:33 +00:00
Maksim Kita
39ddd48435
Fix style check
2022-01-16 15:33:03 +00:00
Maksim Kita
746c2a1306
Fix style check
2022-01-16 15:29:46 +00:00
Maksim Kita
0e6b90f513
Fix tests
2022-01-16 12:31:51 +00:00
Maksim Kita
12f352305a
Fix tests
2022-01-16 12:23:40 +00:00
Maksim Kita
9c3cc7adab
RangeHashedDictionary use IntervalTree
2022-01-16 12:23:40 +00:00
Maksim Kita
dd62c3c93e
DictionarySourceCoordinator update interface
2022-01-16 12:22:22 +00:00
Maksim Kita
ff15e5af1d
Fixed tests
2022-01-16 11:45:36 +00:00
Maksim Kita
a0ad7a1014
Update IExternalLoadable interface
2022-01-16 00:06:10 +00:00
Maksim Kita
0df98140af
Functions dictGet, dictHas implicit key cast
2022-01-15 23:25:05 +00:00
Maksim Kita
47d8b07681
Dictionary rename fix
2022-01-11 18:53:45 +03:00
Kseniia Sumarokova
6587cd0ec6
Merge pull request #33231 from kssenii/settings-changes-with-named-conf
...
Pass settings as key value or config for storage with settings
2022-01-11 12:30:41 +03:00
Azat Khuzhin
aee034a597
Use explicit template instantiation for SystemLog
...
- Move some code into module part to avoid dependency from IStorage in SystemLog
- Remove extra headers from SystemLog.h
- Rewrite some code that was relying on headers that was included by SystemLog.h
v2: rebase
v3: squash move into module part with explicit template instantiation
(to make each commit self compilable after rebase)
2022-01-10 22:01:41 +03:00
kssenii
21c34ad59b
Add support for dictionary source
2022-01-10 14:00:03 +03:00
Maksim Kita
ff53466db6
RangeHashedDictionary ddl expression fix
2022-01-09 00:15:29 +03:00
Maksim Kita
4b4468b34a
Dictionaries use single arena for multiple string attributes
2022-01-08 13:26:11 +03:00
alesapin
b1d2bdf569
Merge pull request #33130 from kssenii/validate-config
...
Validate config keys for external dictionaries
2022-01-07 12:59:02 +03:00
Maksim Kita
c84193ac67
DictionaryStructure fixes
2022-01-04 14:02:46 +03:00
kssenii
bfc705c098
Better
2021-12-30 15:19:17 +03:00
Maksim Kita
49d4619890
Updated docs
2021-12-28 22:55:31 +03:00
Maksim Kita
d1db3c9f42
Updated ShellCommandSource
2021-12-28 22:55:31 +03:00
Maksim Kita
de49a25185
Fixed build
2021-12-28 22:55:30 +03:00
Maksim Kita
cda8bd7f44
Added test_executable_dictionary source tests
2021-12-28 22:55:30 +03:00
Maksim Kita
04f5763f69
Added test_executable_dictionary tests
2021-12-28 22:55:30 +03:00
Maksim Kita
5590cfa3aa
Updated executable function integration tests
2021-12-28 22:55:30 +03:00
Maksim Kita
d3e507b9ef
Added executable function integrations tests
2021-12-28 22:55:30 +03:00
Maksim Kita
2ffd83ee83
Fix shell command source start
2021-12-28 22:55:30 +03:00
Maksim Kita
eb4e400c54
Executable refactoring
2021-12-28 22:55:30 +03:00
Alexey Milovidov
29d28c531f
Move code around to avoid dlsym on Musl
2021-12-24 12:25:27 +03:00
tavplubix
c297c2c4c3
Revert "Dictionaries added Date32 type support"
2021-12-22 19:41:52 +03:00
Maksim Kita
97b0a343f8
Merge pull request #32971 from kitaisreal/dictionaries-added-date32-type-support
...
Dictionaries added Date32 type support
2021-12-22 19:22:01 +03:00
Maksim Kita
3e388db839
Dictionaries fix Date32 attribute underlying type
2021-12-22 13:21:59 +03:00
Maksim Kita
dd0d3de050
Merge pull request #32970 from kitaisreal/loops-remove-postfix-increment
...
Loops remove postfix increment
2021-12-20 19:51:07 +03:00
Maksim Kita
51477adf1b
Updated additional cases
2021-12-20 15:55:07 +03:00
Maksim Kita
51826c14a0
Dictionaries added Date32 type support
2021-12-20 13:39:07 +03:00
Maksim Kita
2eb9b3118e
Merge pull request #32805 from kitaisreal/cache-dictionary-dictionary-source-access-race-fix
...
CacheDictionary dictionary source access race fix
2021-12-20 12:50:16 +03:00
alesapin
6bd7e425c6
Merge pull request #22535 from CurtizJ/sparse-serialization
...
Sparse serialization and ColumnSparse
2021-12-17 15:26:17 +03:00
Kseniia Sumarokova
77b3ebe44e
Merge pull request #32734 from kssenii/mysql-fix-timeouts
...
Allow to control connection timeouts for mysql
2021-12-17 10:13:33 +03:00
Maksim Kita
ac3cb8c12b
CacheDictionary dictionary source access race fix
2021-12-15 15:55:28 +03:00
kssenii
2e813fe3cd
Update defaults
2021-12-15 08:18:43 +00:00
Anton Popov
16312e7e4a
Merge remote-tracking branch 'upstream/master' into HEAD
2021-12-14 18:58:17 +03:00
Azat Khuzhin
a7dc6f309f
Remove SparseHashMap.h
...
It was added only for arcadia build, and used only in one place, no need
to have a separate typedef for it.
2021-12-14 10:07:14 +03:00
Azat Khuzhin
e16891713d
Fix sparse_hashed dict performance with sequential keys (wrong hash function)
...
In #27152 the hash function for sparse_hash_map had been changed to
std::hash<> switch it back to DefaultHash<> (ClickHouse builtin), since
std::hash<> for numeric keys returns itself and this does not works
great with sparse_hash_map.
I've tried the example from #32480 and using some hash fixes the
performance of sparse_hashed layout.
Fixes : #32480
v2: Add comments for SparseHashMap
2021-12-14 10:07:14 +03:00
kssenii
f0d0714e47
Pass timeouts for mysql
2021-12-13 22:12:33 +00:00
Anton Popov
d8367334a3
Merge remote-tracking branch 'upstream/master' into HEAD
2021-12-08 18:26:19 +03:00
Vladimir C
0c5079bf16
Merge pull request #32117 from kitaisreal/dictionaries-custom-query-condition-fix
2021-12-06 10:59:56 +03:00
Maksim Kita
8e37281a7f
RangeHashedDictionary fix bytes_allocated with update_field
2021-12-03 14:10:47 +03:00
Maksim Kita
4bbb02bbae
RangeHashedDictionary added update_field support
2021-12-03 14:06:58 +03:00
Maksim Kita
0491bf791b
Dictionaries custom query condition fix
2021-12-02 12:44:54 +03:00
Anton Popov
54f51444c0
Merge remote-tracking branch 'upstream/master' into HEAD
2021-12-01 15:49:02 +03:00
Raúl Marín
91bf938075
Reduce dependencies on ASTLiteral.h
...
590 -> 537
2021-11-26 17:54:57 +01:00
kssenii
20c59b66f9
ClickHouse dictionary support named collections
2021-11-25 01:51:38 +03:00
Nikolay Degterinsky
ba50e8387d
Merge branch 'master' into query_parameters
2021-11-15 19:55:54 +00:00
alexey-milovidov
cb6342025d
Merge pull request #31229 from zhanglistar/fsync
...
Change all fsync to fdatasync
2021-11-14 05:16:01 +03:00
zhanglistar
8bcef97e11
1. style check fix.
2021-11-12 17:23:22 +08:00
Nikolai Kochetov
6623c609cf
Merge pull request #19587 from ClickHouse/refactor-pipeline-executor
...
Refactor pipeline executor
2021-11-12 11:49:05 +03:00
zhanglistar
d13256242a
1. fix sytle check
2021-11-12 16:15:39 +08:00
zhanglistar
4e7823ade7
1. add macosx fix
2021-11-12 15:49:21 +08:00
Kseniia Sumarokova
2313981fd7
Merge pull request #31260 from azat/external-cleanup
...
Cleanup extern ProfileEvents/CurrentMetrics and add a style check
2021-11-12 00:02:57 +03:00
mergify[bot]
58c5981cab
Merge branch 'master' into refactor-pipeline-executor
2021-11-11 16:16:52 +00:00
Nikolay Degterinsky
7b5954b736
Merge branch 'master' into query_parameters
2021-11-11 11:43:00 +00:00
Nikolai Kochetov
90cf835277
A little bit more refactoring.
2021-11-11 14:41:15 +03:00
kssenii
62c70ce5cf
Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into retriable-http
2021-11-10 21:16:11 +00:00
Azat Khuzhin
baf14444e6
Cleanup ProfileEvents and CurrentMetrics
2021-11-10 21:15:27 +03:00
zhanglistar
aaad3f84da
Merge branch 'ClickHouse:master' into fsync
2021-11-10 17:44:08 +08:00
zhanglistar
96b8df5899
1. chagne all fsync to fdatasync
2021-11-10 17:40:16 +08:00
Anton Popov
66973a2a28
Merge remote-tracking branch 'upstream/master' into HEAD
2021-11-08 21:27:45 +03:00
Vitaly Baranov
bdf640326b
Clickhouse dictionary source no longer keep a session after creation.
...
This fixes tsan alert on shutdown.
2021-11-03 16:12:39 +03:00
Anton Popov
d50137013c
Merge remote-tracking branch 'upstream/master' into HEAD
2021-11-01 16:55:53 +03:00
kssenii
12a27d445b
Adjutments after merge with master
2021-10-29 09:29:35 +00:00
kssenii
f17e321a73
Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into retriable-http
2021-10-29 08:03:25 +00:00
alesapin
1869d094b2
Merge pull request #29205 from kssenii/disk-async-read
...
Try async read for remote fs disks
2021-10-29 10:17:17 +03:00
alesapin
8dfbb43059
Merge pull request #30800 from kitaisreal/dictionary-source-unknown-column-name-in-dictionary-fix
...
DictionarySource unknown column name fix
2021-10-29 10:14:26 +03:00
Maksim Kita
08af73c8f4
DictionarySource fixed exception
2021-10-29 00:30:09 +03:00
kssenii
7e2ea97e3c
Merge branch 'master' of github.com:ClickHouse/ClickHouse into disk-async-read
2021-10-28 18:46:21 +03:00
Maksim Kita
b3598cd154
DictionarySource updated
2021-10-28 13:41:33 +03:00
kssenii
aeba8104d1
Some more fixes
2021-10-28 10:28:05 +00:00
Alexey Milovidov
8b4a6a2416
Remove cruft
2021-10-28 02:10:39 +03:00
kssenii
9461e225bb
Merge branch 'master' of github.com:ClickHouse/ClickHouse into disk-async-read
2021-10-27 22:47:47 +03:00
kssenii
2647b88a66
Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into retriable-http
2021-10-27 19:38:19 +00:00
Maksim Kita
a332a4d15f
Merge pull request #30501 from kitaisreal/hashed-array-dictionary-optimize-read-multiple-attributes
...
HashedArrayDictionary optimize read multiple attributes
2021-10-27 18:45:07 +03:00
Maksim Kita
9e5337b5d4
DictionarySource unknown column name in dictionary fix
2021-10-27 11:51:47 +03:00
Maksim Kita
fd002e327c
Updated HashedArrayDictionary
2021-10-27 11:26:42 +03:00
Maksim Kita
6cf16862ab
Fixed style check
2021-10-26 12:57:49 +03:00
Maksim Kita
73bbf7549a
HashedArrayDictionary optimize read multiple attributes
2021-10-26 12:57:49 +03:00
kssenii
7de5fca075
Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into retriable-http
2021-10-24 17:04:24 +00:00
Maksim Kita
4ccc619bd5
Added performance tests
2021-10-23 15:01:30 +03:00
kssenii
39b9e9c258
Merge branch 'master' of github.com:ClickHouse/ClickHouse into disk-async-read
2021-10-22 15:40:41 +03:00
Maksim Kita
3a6f55607d
Fixed IPAddressDictionary tests
2021-10-22 14:18:45 +03:00
Maksim Kita
117cb6c614
Fixed RangeHashedDictionary tests
2021-10-22 00:22:32 +03:00
Maksim Kita
a3a780bbf5
Dictionaries read support multiple threads
2021-10-21 17:17:53 +03:00
Kseniia Sumarokova
c692155c7e
Merge pull request #30309 from kssenii/fix-file-symlinks
...
Fix symlinks in file table function
2021-10-20 11:09:51 +03:00
Maksim Kita
3ffca6e138
ExecutablePool dictionary source fix borrow timeout milliseconds
2021-10-18 21:04:40 +03:00
Nikolay Degterinsky
d76976e272
Merge branch 'master' into query_parameters
2021-10-18 17:34:20 +03:00
Anton Popov
d71ffc355a
Merge remote-tracking branch 'upstream/master' into HEAD
2021-10-18 15:18:22 +03:00
kssenii
710ee96878
Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into retriable-http
2021-10-18 08:31:25 +00:00
kssenii
059fc1de69
Allow symlinks in file storage
2021-10-17 09:11:06 +00:00
Nikolai Kochetov
bfcbf5abe0
Merge branch 'master' into removing-data-streams-folder
2021-10-17 10:42:37 +03:00
Maksim Kita
0dd8c70d28
Merge pull request #30242 from kitaisreal/added-hashed-array-dictionary
...
Added HashedArray dictionary
2021-10-17 01:18:43 +03:00
Maksim Kita
de36038733
Merge pull request #30276 from azat/buffer-fwd-decl
...
Use forward declaration for Buffer<> in generic headers
2021-10-16 19:21:38 +03:00
kssenii
4a0bdd296d
Merge branch 'master' of github.com:ClickHouse/ClickHouse into disk-async-read
2021-10-16 18:35:48 +03:00
Nikolai Kochetov
a08c98d760
Move some files.
2021-10-16 17:03:50 +03:00
Maksim Kita
1b50d26c51
Added documentation
2021-10-16 13:41:56 +03:00
Maksim Kita
4d46f5a2ea
Merge pull request #30246 from kitaisreal/complex-key-hashed-dictionary-fix-config-parsing
...
ComplexKeyHashedDictionary fix config parsing
2021-10-16 12:10:03 +03:00