Nikita Mikhailov
557fa7c5c8
fix ubsan
2021-03-11 15:08:18 +03:00
Nikita Mikhailov
e78fc3109c
better ubsan testing
2021-03-11 15:08:18 +03:00
Nikita Mikhailov
05cf1b5bc5
better
2021-03-11 15:08:18 +03:00
Nikita Mikhailov
2cce75808b
fix build
2021-03-11 15:08:18 +03:00
Nikita Mikhailov
bf07c098a6
more checks of input type
2021-03-11 15:08:18 +03:00
Nikita Mikhailov
79b76d428f
fix
2021-03-11 15:08:18 +03:00
Nikita Mikhailov
6a51ad425e
add tests + improvements
2021-03-11 15:08:18 +03:00
Nikita Mikhailov
adfb2885c9
better
2021-03-11 15:08:18 +03:00
Nikita Mikhailov
a596227a02
tidy fix
2021-03-11 15:08:18 +03:00
Nikita Mikhailov
10d22e9db1
fix empty polygon
2021-03-11 15:08:17 +03:00
Nikita Mikhailov
be0ab21bb1
better
2021-03-11 15:08:17 +03:00
Nikita Mikhailov
41d006d493
try fix stress
2021-03-11 15:08:17 +03:00
Nikita Mikhailov
2475143ed3
fix style
2021-03-11 15:08:17 +03:00
Nikita Mikhailov
cdbdcbf793
update ya.make
2021-03-11 15:08:17 +03:00
Nikita Mikhailov
cfee417ce0
better
2021-03-11 15:08:17 +03:00
Nikita Mikhailov
3e36fae3df
fix test
2021-03-11 15:08:17 +03:00
Nikita Mikhailov
0425d566d3
better
2021-03-11 15:08:17 +03:00
DoomzD
23616c773a
fix polygonDistance
2021-03-11 15:08:17 +03:00
DoomzD
147c759ea4
fix polygonConvexHull
2021-03-11 15:08:17 +03:00
DoomzD
b26022d044
Add polygonPerimeter
2021-03-11 15:08:17 +03:00
DoomzD
153e35a33c
Add polygonPerimeter, polygonsWithin and polygonsDistance
2021-03-11 15:08:17 +03:00
DoomzD
317cbdee2b
Add polygonsEquals and polygonsSymDifference
2021-03-11 15:08:17 +03:00
DoomzD
c0c8e20c4d
Add polygonArea and polygonConvexHull functions
2021-03-11 15:08:17 +03:00
Alexey Ilyukhov
05953f4cfa
Add readWkt, svg
2021-03-11 15:08:17 +03:00
Alexey Ilyukhov
938ca6866d
Fix less outstanding but still wrong code again
2021-03-11 15:08:17 +03:00
DoomzD
32f67a0fe5
Fix polygonsUnion first output polygon
2021-03-11 15:08:17 +03:00
DoomzD
bc1566b1f1
Add polygonsUnion function
2021-03-11 15:08:17 +03:00
DoomzD
aafceae019
Working version of polygonsIntersection
2021-03-11 15:08:17 +03:00
Alexey Ilyukhov
31f8e6330c
Fix less outstanding but still wrong code
2021-03-11 15:08:16 +03:00
Alexey Ilyukhov
97a9110ad9
Fix outstandingly wrong code
2021-03-11 15:08:16 +03:00
DoomzD
50c59cc922
debug polygons intersection
2021-03-11 15:08:16 +03:00
DoomzD
249b94a7cd
register function polygons intersection
2021-03-11 15:08:16 +03:00
DoomzD
13b841f6de
Add polygons intersection function
2021-03-11 15:08:16 +03:00
Alexey Ilyukhov
d46998e114
Add remaining geo -> col
2021-03-11 15:08:16 +03:00
Alexey Ilyukhov
1259457695
Start adding geo -> col
2021-03-11 15:08:16 +03:00
Alexey Ilyukhov
e3290ecc78
help
2021-03-11 15:08:16 +03:00
Alexey Ilyukhov
afad9bf4d0
Trying to fix wkt
2021-03-11 15:08:16 +03:00
Alexey Ilyukhov
3be3d5cde8
Move all data types to header
2021-03-11 15:08:16 +03:00
Alexey Ilyukhov
e6f18d564d
Add missing header
2021-03-11 15:08:16 +03:00
Alexey Ilyukhov
fe83825211
Plz hekb
2021-03-11 15:08:16 +03:00
Alexey Ilyukhov
d0d6e6953c
Fix build; add wkt
2021-03-11 15:08:16 +03:00
Alexey Ilyukhov
14a891057d
Add other parsers
2021-03-11 15:08:16 +03:00
Alexey Ilyukhov
78e0db268c
Add ring parser
2021-03-11 15:08:16 +03:00
Alexey Ilyukhov
33acc2aa5d
fix
2021-03-11 15:08:16 +03:00
Alexey Ilyukhov
6d59be5ea4
Rewrite interface
2021-03-11 15:08:16 +03:00
Alexey Ilyukhov
9376b676e9
Add parseGeometry interface
2021-03-11 15:08:16 +03:00
Nikolai Kochetov
7a4dafe106
Fix filter push down columns order.
2021-03-11 13:34:15 +03:00
alesapin
5704405f8c
Disable new setting by default
2021-03-11 12:29:27 +03:00
Anton Ivashkin
109cb634e1
Remove debug lines
2021-03-11 12:08:19 +03:00
Yatsishin Ilya
abbf4b01c2
Merge remote-tracking branch 'origin/master' into fixes-clang-12-cmake-3.19
2021-03-11 09:44:30 +03:00
alexey-milovidov
647246006a
Merge pull request #21533 from ClickHouse/podarray-cleanup
...
Cleanup PODArray
2021-03-11 04:34:25 +03:00
Maksim Kita
583b25b68e
Merge pull request #21513 from kitaisreal/direct-dictionary-fix
...
DirectDictionary updated
2021-03-11 00:01:01 +03:00
Nikolai Kochetov
3ee771c600
Remove debug output.
2021-03-10 21:50:34 +03:00
tavplubix
26ebd54eaf
Merge pull request #20961 from havardk/reconnect
...
MaterializeMySQL: Attempt to reconnect to MySQL if the connection is lost
2021-03-10 20:07:11 +03:00
Nikolai Kochetov
7b341c3749
Remove debug output.
2021-03-10 19:05:37 +03:00
Nikolai Kochetov
3a050286f7
Try fix other tests.
2021-03-10 18:12:34 +03:00
Yatsishin Ilya
7b69ef92be
gcc old cast check failed
2021-03-10 18:04:34 +03:00
Anton Ivashkin
6f7800ecb4
Fix PVS detected errors
2021-03-10 16:27:08 +03:00
Nikolai Kochetov
7eb6b87415
Added comments.
2021-03-10 14:50:51 +03:00
Anton Ivashkin
cef0dda933
Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into s3_zero_copy_replication
2021-03-10 14:10:29 +03:00
Anton Ivashkin
deb0b83a12
Fix refreshState logic
2021-03-10 14:08:49 +03:00
Nikolai Kochetov
4c8c45b163
Refactor
2021-03-10 14:00:24 +03:00
Nikolai Kochetov
5ef5ec4e05
Fix build.
2021-03-10 13:48:08 +03:00
Alexander Kuzmenkov
b399f80b7e
Merge pull request #21572 from ClickHouse/aku/frame-typo
...
fix a typo in window functions frame
2021-03-10 13:38:39 +03:00
Pervakov Grigorii
eb87afc4d4
recreate S3 client if credentials changed
2021-03-10 13:36:57 +03:00
Nikolai Kochetov
4f133ae036
Merge branch 'master' into refactor-actions-dag
2021-03-10 12:40:55 +03:00
Nikolai Kochetov
3dbd351c9e
Fix style
2021-03-10 12:33:23 +03:00
Nikolai Kochetov
5ef9d87790
Fix some other tests.
2021-03-10 11:41:24 +03:00
Vladimir
33dce1296b
Merge pull request #20392 from vdimir/cross-to-inner-join-rewrite
2021-03-10 09:53:55 +03:00
alexey-milovidov
f4db00bdb2
Merge pull request #21546 from kitaisreal/shell-command-wait-pid-signal-eintr-fix
...
ShellCommand waitpid eintr signal fix
2021-03-10 09:12:53 +03:00
Azat Khuzhin
61d40c3600
Fix optimize_skip_unused_shards for zero shards case
...
v2: move check to the beginning of the StorageDistributed::read()
2021-03-10 09:05:14 +03:00
alexey-milovidov
2159fb8481
Merge branch 'master' into governance/query_log
2021-03-10 05:29:56 +03:00
fuwhu
69f516cd47
Refine MergeTreeData::loadDataParts to not parse format version file and detached directory
2021-03-10 10:10:25 +08:00
Maksim Kita
9509516e3c
Fixed tests
2021-03-10 01:26:06 +03:00
Alexander Kuzmenkov
8c5240e3a0
fix a typo in window functions frame
2021-03-10 01:24:46 +03:00
Nikolai Kochetov
f3cfc67fa3
Fix other tests.
2021-03-10 00:41:10 +03:00
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
Amos Bird
e52b2fb8ae
update
2021-03-10 02:56:46 +08:00
Anton Ivashkin
aff13c0c52
Make method StorageReplicatedMergeTree::fetchExistsPart
2021-03-09 20:49:50 +03:00
Anton Ivashkin
265d293934
Use 'merge on single replica' option instead of zookeeper lock
2021-03-09 20:39:55 +03:00
tavplubix
5a6cc876e4
Merge pull request #20626 from ClickHouse/fix_force_drop_materialized_view
...
Make force_drop_table work with MaterializedView
2021-03-09 20:05:51 +03:00
Nikolai Kochetov
4d697c27e4
Fix some tests.
2021-03-09 19:54:06 +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
alesapin
bcd073278d
Merge pull request #21425 from ClickHouse/persistent_nukeeper_snapshot_storage
...
Persistent nukeeper snapshot storage
2021-03-09 18:37:23 +03:00
alesapin
bbfb6c385d
Merge pull request #21544 from nicelulu/fix_fd_ready
...
Fix incorrect fd_ready assignment in NuKeeperTCPHandler.
2021-03-09 18:23:24 +03:00
Yatsishin Ilya
71d745b4ec
implicit const conversion
2021-03-09 17:31:54 +03:00
Alexander Kuzmenkov
0de89e2925
Merge pull request #19401 from CurtizJ/aggregating-in-order
...
Try improve performance of aggregation in order of sorting key
2021-03-09 16:53:32 +03:00
Maksim Kita
289712f19d
Merge pull request #21532 from kitaisreal/pod-array-left-pad-not-multiple-of-element-crash-fix
...
Pod array left pad not multiple of element crash fix
2021-03-09 14:14:52 +03:00
Maksim Kita
8dd52f087e
Fixed PODArray
2021-03-09 14:14:31 +03:00
Amos Bird
e9f8dd645e
Shard pruning via literals
2021-03-09 18:58:03 +08:00
Alexander Kuzmenkov
4b0cbb6ed7
Update FinishAggregatingInOrderAlgorithm.h
2021-03-09 13:43:06 +03:00
Maksim Kita
882dde56ea
ShellCommand waitpid eintr signal fix
2021-03-09 13:13:19 +03:00
zhangxiao871
846f5a93a9
Fix incorrect fd_ready assignment in NuKeeperTCPHandler.
2021-03-09 17:42:27 +08:00
alesapin
d80c2cef06
Slightly better
2021-03-09 11:45:41 +03:00
alesapin
c00c8c36b7
Merge branch 'master' into ianton-ru-s3_zero_copy_replication
2021-03-09 10:59:11 +03:00
Azat Khuzhin
3474ea044e
Avoid processing optimize_skip_unused_shards twice
2021-03-09 10:05:56 +03:00
vdimir
36006a7e96
Merge branch 'master' into cross-to-inner-join-rewrite
2021-03-09 09:36:15 +03:00
Vladimir
6ec19b2632
Merge pull request #19885 from ClickHouse/vdimir/join-cast-types-v2
2021-03-09 09:30:50 +03:00
alexey-milovidov
0a3275e169
Merge pull request #21496 from Felixoid/rollup_grow
...
Add check for growing age AND precision in rollup config
2021-03-09 07:31:07 +03:00
Kruglov Pavel
c464e3c57b
Merge pull request #21311 from ucasFL/fix-format
...
improve clickhouse-format
2021-03-09 02:16:05 +03:00
Alexey Milovidov
1b3043a583
Fix error (found by @kitaisreal)
2021-03-09 02:15:33 +03:00
Alexey Milovidov
d3aeb30cc0
Remove unused method
2021-03-09 02:10:26 +03:00
Alexey Milovidov
9e23d16739
Cleanup PODArray
2021-03-09 02:03:46 +03:00
Maksim Kita
9ed791fd30
Updated style check
2021-03-09 01:33:16 +03:00
Maksim Kita
642c45d769
PODArray left pad not multiple of element crash fix
2021-03-09 01:32:31 +03:00
Maksim Kita
edb673af56
Fixed tests
2021-03-09 01:03:25 +03:00
alesapin
f555e65cc8
Merge branch 'master' into persistent_nukeeper_snapshot_storage
2021-03-08 22:30:17 +03:00
vdimir
cc770ad441
Fixes for join key inferring
...
Fix error with wrong right column type in aggregate with nulls
Add logging inferred type for join keys
Add test for join_use_nulls
2021-03-08 17:21:50 +03:00
Amos Bird
2ec20c5d23
update and add tests
2021-03-08 17:38:07 +08:00
alesapin
94248dd205
Fix one more nasty bug
2021-03-08 11:53:52 +03:00
Vasily Nemkov
1711761459
Merge branch 'master' into governance/query_log
2021-03-08 10:52:27 +03:00
vdimir
354757d94d
Add logging for need_analyze_again in InterpreterSelectQuery
2021-03-08 09:33:30 +03:00
Amos Bird
2b11a2a855
Fix build
2021-03-08 11:10:35 +08:00
Amos Bird
e6522e1ebe
JBOD data balancer
2021-03-08 11:10:35 +08:00
Slach
5791cf5f2b
fix review comments https://github.com/ClickHouse/ClickHouse/pull/21078#discussion_r580413875 and https://github.com/ClickHouse/ClickHouse/pull/21078#discussion_r580410204
...
Signed-off-by: Slach <bloodjazman@gmail.com>
2021-03-08 03:39:24 +03:00
Alexey Milovidov
460658aeab
Update tests
2021-03-08 03:18:55 +03:00
Alexey Milovidov
019ed517bc
Fix gcc warning
2021-03-08 03:05:06 +03:00
Alexey Milovidov
355411dfa8
Merge branch 'master' into DateTime64_extended_range
2021-03-08 02:55:14 +03:00
Maksim Kita
492c3d0899
Merge pull request #21321 from kitaisreal/dictionary-source-executable-pool
...
Added ExecutablePool dictionary source
2021-03-08 01:36:33 +03:00
alesapin
fb264c12d3
Blind fix
2021-03-08 00:40:32 +03:00
Maksim Kita
b789f80838
Fixed style check
2021-03-07 14:45:12 +03:00
Maksim Kita
92107a6ded
Fixed documentation message
2021-03-07 14:43:08 +03:00
Maksim Kita
9512bfd6d7
Fixed broken pipe exception handling
2021-03-07 14:41:53 +03:00
alesapin
ef192ec310
Merge branch 'master' into persistent_nukeeper_snapshot_storage
2021-03-07 10:31:06 +03:00
alesapin
0ee7425b16
Remove redundant methods
2021-03-07 10:30:50 +03:00
Alexey Milovidov
1bb62f578b
Unit tests passing
2021-03-07 04:10:38 +03:00
Maksim Kita
cb5a93bcec
Updated exception handling
2021-03-07 02:39:19 +03:00
Alexey Milovidov
8271cec093
Fix error
2021-03-07 02:36:24 +03:00
Alexey Milovidov
e33fae7625
Improve test
2021-03-07 01:35:49 +03:00
Alexey Milovidov
db63668d03
Merge branch 'master' into DateTime64_extended_range
2021-03-06 23:51:27 +03:00
Maksim Kita
6414da73bf
Fixed code review issues
2021-03-06 21:45:51 +03:00
Mikhail f. Shiryaev
efc04b29a6
Add check for growing age AND precision in rollup config
2021-03-06 18:35:53 +01:00
alesapin
a8b7469857
Fix session timeout update
2021-03-06 17:14:38 +03:00
robot-clickhouse
4e61f45dbb
Auto version update to [21.4.1.1] [54449]
2021-03-06 14:43:30 +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
Maksim Kita
b6e72334ef
Fixed DefaultHash for StringRef
2021-03-06 14:36:37 +03:00
Maksim Kita
9763c4a4fb
IColumn added skipSerializedInArena method
2021-03-06 14:36:37 +03:00
Azat Khuzhin
9c35e49878
Fix heap-buffer-overflow in highlighting multi-line comments
...
Not closed multi-line comment returns the whole query, so it should not
be processed further with the lexer.
ASan report:
:) /*=================================================================
==14889==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60400006ebc0 at pc 0x00000a8148ea bp 0x7fffffff8610 sp 0x7fffffff7dd8
WRITE of size 16 at 0x60400006ebc0 thread T0
0 0xa8148e9 in __asan_memcpy (/src/ch/tmp/upstream/clickhouse-asan+0xa8148e9)
1 0xaa8a3a4 in DB::Client::highlight(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::vector<replxx::Replxx::Color, std::__1::allocator<replxx::Replxx::Color> >&) obj-x86_64-linux-gnu/../programs/client/Client.cpp:464:52
2 0x25f7b6d8 in std::__1::__function::__policy_func<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::vector<replxx::Replxx::Color, std::__1::allocator<replxx::Replxx::Color> >&)>::operator()(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::vector<replxx::Replxx::Color, std::__1::allocator<replxx::Replxx::Color> >&) const obj-x86_64-linux-gnu/../contrib/libcxx/include/functional:2221:16
3 0x25f7b6d8 in std::__1::function<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::vector<replxx::Replxx::Color, std::__1::allocator<replxx::Replxx::Color> >&)>::operator()(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::vector<replxx::Replxx::Color, std::__1::allocator<replxx::Replxx::Color> >&) const obj-x86_64-linux-gnu/../contrib/libcxx/include/functional:2560:12
4 0x25f7b6d8 in replxx::Replxx::ReplxxImpl::render(replxx::Replxx::ReplxxImpl::HINT_ACTION) obj-x86_64-linux-gnu/../contrib/replxx/src/replxx_impl.cxx:546:3
5 0x25f74059 in replxx::Replxx::ReplxxImpl::refresh_line(replxx::Replxx::ReplxxImpl::HINT_ACTION) obj-x86_64-linux-gnu/../contrib/replxx/src/replxx_impl.cxx:729:2
6 0x25f6bc8f in replxx::Replxx::ReplxxImpl::insert_character(char32_t) obj-x86_64-linux-gnu/../contrib/replxx/src/replxx_impl.cxx:1197:3
7 0x25f79347 in replxx::Replxx::ReplxxImpl::action(unsigned long long, replxx::Replxx::ACTION_RESULT (replxx::Replxx::ReplxxImpl::* const&)(char32_t), char32_t) obj-x86_64-linux-gnu/../contrib/replxx/src/replxx_impl.cxx:1130:29
8 0x25f79347 in replxx::Replxx::ReplxxImpl::get_input_line() obj-x86_64-linux-gnu/../contrib/replxx/src/replxx_impl.cxx:1123:11
9 0x25f7844c in replxx::Replxx::ReplxxImpl::input(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) obj-x86_64-linux-gnu/../contrib/replxx/src/replxx_impl.cxx:455:8
10 0x25af5693 in ReplxxLineReader::readOneLine(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) obj-x86_64-linux-gnu/../base/common/ReplxxLineReader.cpp:108:29
11 0x25aed149 in LineReader::readLine(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) obj-x86_64-linux-gnu/../base/common/LineReader.cpp:81:26
12 0xaa80ba2 in DB::Client::mainImpl() obj-x86_64-linux-gnu/../programs/client/Client.cpp:654:33
13 0xaa756f5 in DB::Client::main(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) obj-x86_64-linux-gnu/../programs/client/Client.cpp:280:20
14 0x25c0c8b5 in Poco::Util::Application::run() obj-x86_64-linux-gnu/../contrib/poco/Util/src/Application.cpp:334:8
15 0xaa4d050 in mainEntryClickHouseClient(int, char**) obj-x86_64-linux-gnu/../programs/client/Client.cpp:2724:23
16 0xa848c3a in main obj-x86_64-linux-gnu/../programs/main.cpp:368:12
17 0x7ffff7dcab24 in __libc_start_main (/usr/lib/libc.so.6+0x27b24)
18 0xa79b36d in _start (/src/ch/tmp/upstream/clickhouse-asan+0xa79b36d)
0x60400006ebc0 is located 0 bytes to the right of 48-byte region [0x60400006eb90,0x60400006ebc0)
allocated by thread T0 here:
0 0xa84509d in operator new(unsigned long) (/src/ch/tmp/upstream/clickhouse-asan+0xa84509d)
1 0x25f7af76 in void* std::__1::__libcpp_operator_new<unsigned long>(unsigned long) obj-x86_64-linux-gnu/../contrib/libcxx/include/new:235:10
2 0x25f7af76 in std::__1::__libcpp_allocate(unsigned long, unsigned long) obj-x86_64-linux-gnu/../contrib/libcxx/include/new:261:10
3 0x25f7af76 in std::__1::allocator<replxx::Replxx::Color>::allocate(unsigned long) obj-x86_64-linux-gnu/../contrib/libcxx/include/memory:840:38
4 0x25f7af76 in std::__1::allocator_traits<std::__1::allocator<replxx::Replxx::Color> >::allocate(std::__1::allocator<replxx::Replxx::Color>&, unsigned long) obj-x86_64-linux-gnu/../contrib/libcxx/include/__memory/allocator_traits.h:468:21
5 0x25f7af76 in std::__1::vector<replxx::Replxx::Color, std::__1::allocator<replxx::Replxx::Color> >::__vallocate(unsigned long) obj-x86_64-linux-gnu/../contrib/libcxx/include/vector:993:37
6 0x25f7af76 in std::__1::vector<replxx::Replxx::Color, std::__1::allocator<replxx::Replxx::Color> >::vector(unsigned long, replxx::Replxx::Color const&) obj-x86_64-linux-gnu/../contrib/libcxx/include/vector:1155:9
7 0x25f7af76 in replxx::Replxx::ReplxxImpl::render(replxx::Replxx::ReplxxImpl::HINT_ACTION) obj-x86_64-linux-gnu/../contrib/replxx/src/replxx_impl.cxx:543:19
8 0x25f74059 in replxx::Replxx::ReplxxImpl::refresh_line(replxx::Replxx::ReplxxImpl::HINT_ACTION) obj-x86_64-linux-gnu/../contrib/replxx/src/replxx_impl.cxx:729:2
9 0x25f6bc8f in replxx::Replxx::ReplxxImpl::insert_character(char32_t) obj-x86_64-linux-gnu/../contrib/replxx/src/replxx_impl.cxx:1197:3
10 0x25f79347 in replxx::Replxx::ReplxxImpl::action(unsigned long long, replxx::Replxx::ACTION_RESULT (replxx::Replxx::ReplxxImpl::* const&)(char32_t), char32_t) obj-x86_64-linux-gnu/../contrib/replxx/src/replxx_impl.cxx:1130:29
11 0x25f79347 in replxx::Replxx::ReplxxImpl::get_input_line() obj-x86_64-linux-gnu/../contrib/replxx/src/replxx_impl.cxx:1123:11
12 0x25f7844c in replxx::Replxx::ReplxxImpl::input(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) obj-x86_64-linux-gnu/../contrib/replxx/src/replxx_impl.cxx:455:8
13 0x25af5693 in ReplxxLineReader::readOneLine(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) obj-x86_64-linux-gnu/../base/common/ReplxxLineReader.cpp:108:29
14 0x25aed149 in LineReader::readLine(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) obj-x86_64-linux-gnu/../base/common/LineReader.cpp:81:26
15 0xaa80ba2 in DB::Client::mainImpl() obj-x86_64-linux-gnu/../programs/client/Client.cpp:654:33
16 0xaa756f5 in DB::Client::main(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) obj-x86_64-linux-gnu/../programs/client/Client.cpp:280:20
17 0x25c0c8b5 in Poco::Util::Application::run() obj-x86_64-linux-gnu/../contrib/poco/Util/src/Application.cpp:334:8
18 0xaa4d050 in mainEntryClickHouseClient(int, char**) obj-x86_64-linux-gnu/../programs/client/Client.cpp:2724:23
19 0xa848c3a in main obj-x86_64-linux-gnu/../programs/main.cpp:368:12
20 0x7ffff7dcab24 in __libc_start_main (/usr/lib/libc.so.6+0x27b24)
SUMMARY: AddressSanitizer: heap-buffer-overflow (/src/ch/tmp/upstream/clickhouse-asan+0xa8148e9) in __asan_memcpy
v2: fix lexer instead of client quirk
2021-03-06 12:23:41 +03:00
Pavel Kruglov
dbae58f30b
Add slowdown_count and show actual information in system.clusters
2021-03-06 02:45:17 +03:00
Alexey Milovidov
2b1ab0f927
Merge branch 'master' into DateTime64_extended_range
2021-03-06 02:25:43 +03:00
alexey-milovidov
af2135ef9d
Merge pull request #21477 from ClickHouse/fix_mutation_deadlock
...
Fix deadlock in delete mutations when predicate contains table itself
2021-03-06 02:08:00 +03:00
alexey-milovidov
35b304bdb1
Merge pull request #21393 from ClickHouse/dict-name-dot
...
Add a test for #15469
2021-03-06 01:47:17 +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
alesapin
5b3161e0b5
Get rid of const_cast
2021-03-05 20:24:06 +03:00
tavplubix
9f04683923
Merge pull request #21461 from ClickHouse/just_another_fix_for_ddl_worker
...
Just another fix for DDLWorker
2021-03-05 19:44:59 +03:00
Anton Ivashkin
d08b481660
Fixes by review responces
2021-03-05 19:20:38 +03:00
Nikolai Kochetov
a669f7d641
Merge branch 'master' into refactor-actions-dag
2021-03-05 18:21:14 +03:00
vdimir
4a8708fbb2
Clean subqueries_for_sets before second analyze in InterpreterSelectQuery
2021-03-05 17:43:26 +03:00
vdimir
5c18bbeb43
Clean converting-related fields in TableJoin::resetCollected
2021-03-05 17:41:39 +03:00
vdimir
b0f6f30298
Revert "Refactor join: make IJoin implementations independent from TableJoin"
...
This reverts commit e6406c3f4c
.
2021-03-05 17:34:43 +03:00
feng lv
1438fd20cb
Merge branch 'master' of github.com:ClickHouse/ClickHouse into fix-format
2021-03-05 14:33:26 +00:00
Anton Popov
562065732d
Merge remote-tracking branch 'upstream/master' into HEAD
2021-03-05 17:30:05 +03:00
Nikolai Kochetov
fc415952ce
Try fix test.
2021-03-05 16:56:44 +03:00
vdimir
e6406c3f4c
Refactor join: make IJoin implementations independent from TableJoin
2021-03-05 16:38:49 +03:00
Pavel Kruglov
c113af39f4
Merge branch 'master' of github.com:ClickHouse/ClickHouse into secure-socket
2021-03-05 16:18:45 +03:00
alesapin
1bfc27ab6f
Fix shutdown
2021-03-05 16:06:47 +03:00
tavplubix
35a770a7f6
add comment
2021-03-05 15:50:10 +03:00
alesapin
aff86b1da2
Fix deadlock in delete mutations when predicate contains table itself
2021-03-05 15:32:55 +03:00
alesapin
ce047b4fe1
Remove unused method
2021-03-05 14:06:37 +03:00
alesapin
15ea9a9c0c
Async version
2021-03-05 13:40:24 +03:00
Maksim Kita
cdee265378
Fix typos
2021-03-05 13:27:24 +03:00
Maksim Kita
175c485fcb
Fix style check
2021-03-05 13:17:46 +03: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
d3615aca67
Added tests
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
Nikolai Kochetov
c481401b0b
Fix build.
2021-03-05 12:54:17 +03:00
Anton Popov
87da7f0589
Update FinishAggregatingInOrderAlgorithm.h
2021-03-05 12:50:28 +03:00
alesapin
c9c301e10c
Merge branch 'master' into persistent_nukeeper_snapshot_storage
2021-03-05 10:12:09 +03:00
alesapin
9a9d5a74ba
Merge pull request #21439 from ClickHouse/fix_nukeeper_default_path
...
Use path as default prefix for coordination logs
2021-03-05 10:11:44 +03:00
Alexander Kuzmenkov
6b9d1f67a3
make NULL case consistent w/FieldVisitorToString
2021-03-05 10:05:27 +03:00
Alexander Kuzmenkov
7c8d17045c
fix frame formatting error
2021-03-05 06:15:20 +03:00
alexey-milovidov
777731562d
Merge pull request #21458 from amosbird/trivialfix
...
Tiny fix
2021-03-05 05:21:52 +03:00
Alexey Milovidov
dce79d928f
Merge branch 'dict-name-dot' of github.com:yandex/ClickHouse into dict-name-dot
2021-03-05 05:07:36 +03:00
Alexander Tokmakov
614e0d9ba0
just another fix for ddl worker
2021-03-05 04:17:51 +03:00
Alexey Milovidov
3e77c9b1c5
Merge branch 'master' into DateTime64_extended_range
2021-03-05 03:07:19 +03:00
Nikita Mikhaylov
37d4c69d3a
Merge pull request #21433 from azat/parsing-exception-message-fix
...
Fix ParsingException::displayText()
2021-03-05 01:59:06 +03:00
Nikolai Kochetov
9a39459888
Refactor ActionsDAG
2021-03-04 20:38:12 +03:00
Amos Bird
de94f33b05
Tiny fix
2021-03-05 00:21:52 +08:00
Kseniia Sumarokova
08cb02c872
Merge pull request #21416 from excitoon-favorites/caseinsensitivecompression
...
Case-insensitive compression methods for table functions
2021-03-04 17:37:28 +03:00
Maksim Kita
1eb1f3028c
FunctionsExternalDictionaries safe case to ColumnTuple
2021-03-04 16:55:05 +03:00
alesapin
aa754a3ca8
Test restore from snapshot
2021-03-04 16:40:43 +03:00
alesapin
77dbe3fee8
Get rid of network order
2021-03-04 16:02:30 +03:00
alesapin
27011f086e
More style
2021-03-04 15:31:05 +03:00
alesapin
42c1a65b0f
Style
2021-03-04 15:30:26 +03:00
alesapin
c8423249db
Less strict checks
2021-03-04 15:01:56 +03:00
alesapin
aa1312ac79
Merge with master
2021-03-04 14:43:12 +03:00
alesapin
ff67860770
Merge branch 'master' into persistent_nukeeper_snapshot_storage
2021-03-04 14:30:51 +03:00
alesapin
5565c37b4f
tests and fixes for off by one error
2021-03-04 14:22:59 +03:00
Anton Ivashkin
bec9de7161
Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into s3_zero_copy_replication
2021-03-04 13:29:45 +03:00
Ivan
218542589a
Merge pull request #19673 from azat/distributed-bytes_to_throw_insert
...
Add ability to throttle INSERT into Distributed
2021-03-04 13:28:23 +03:00
Anton Ivashkin
e69124a0a6
Merge master
2021-03-04 13:26:40 +03:00
alesapin
3a0b9102d8
Merge branch 'fix_nukeeper_default_path' into persistent_nukeeper_snapshot_storage
2021-03-04 11:30:54 +03:00
alesapin
d28463d70b
Use path as default prefix for coordination logs
2021-03-04 11:29:24 +03:00
alesapin
7556a3d723
Enable snapshots
2021-03-04 11:00:26 +03:00
Haavard Kvaalen
641b1b249e
Attempt to reconnect to MySQL
...
For MaterializeMySQL databases, attempt to reconnect if the connection
to MySQL is lost. The existing setting
`max_wait_time_when_mysql_unavailable` is used to control how often we
attempt to reconnect. This setting can now be set to a negative value
to disable reconnects.
2021-03-04 08:49:06 +01:00
Haavard Kvaalen
11c9c8cb10
Reset sequence number on disconnect
...
Reestablishing the connection for an existing MySQLClient object would
never work because the sequence number would be wrong on the new
connection.
2021-03-04 08:49:06 +01:00
Haavard Kvaalen
8e95d6e174
Add method to metadata class to start replication
...
Previously this was done by the constructor. This makes it
possible to restart replication with an existing metadata object.
2021-03-04 08:49:06 +01:00
Haavard Kvaalen
e6711675a1
Make handling of unavailable MySQL consistent
...
If MySQL was unavailable when loading an existing database on startup,
we would previously load the database, fail to start synchronization,
but allow queries to the database. Change this to only allow queries
if the `allows_queries_when_mysql_lost` setting is on, so that the
behavior is consistent with what happens if the connection to MySQL is
lost while ClickHouse is running.
Also retry connection to MySQL if MySQL is unavailable when ClickHouse
is started (we would previously reconnect only if the connection was
lost during the initial dump of existing data).
2021-03-04 08:49:06 +01:00
Azat Khuzhin
45ca803973
Fix logging for optimize_aggregation_in_order=1 (with small max_block_size)
2021-03-04 10:34:41 +03:00
Alexey Milovidov
9416f59014
Some progress on tests
2021-03-04 06:48:24 +03:00
Alexey Milovidov
b9a8509f79
Adjustments
2021-03-04 05:18:17 +03:00
Alexey Milovidov
6dc21cd098
Remove discrepances
2021-03-04 03:48:37 +03:00
Alexey Milovidov
9f3760e1e3
Bad filename
2021-03-04 03:18:48 +03:00
Alexey Milovidov
7f1ae506fc
The code is too complicated
2021-03-04 03:11:40 +03:00
Alexey Milovidov
3eb3830dd8
Remove trash
2021-03-04 02:13:49 +03:00
Alexey Milovidov
1096fc328a
Make some tests automated
2021-03-04 02:11:27 +03:00
Alexey Milovidov
329074bd02
Fix test
2021-03-04 01:55:56 +03:00
Alexey Milovidov
2632b568ae
Move tests to appropriate place
2021-03-04 01:34:30 +03:00
Azat Khuzhin
e858dae187
Fix SIGSEGV for distributed queries on failures
...
Since after pull(), cancel() will be called, and this will lead to
SIGSEGV, since there is no exception, but has_exception was not reseted
in pull()
2021-03-04 00:42:49 +03:00
Azat Khuzhin
e7948819f9
Fix ParsingException::displayText()
...
Before it was silently try-catched for messages with additional {}, and
it is very easy to trigger, i.e.:
SELECT toDateTime(format('{}-{}-01 00:00:00', '2021', '1'))
Will print:
Code: 41. DB::Exception: Received from localhost:9000. DB::Exception: Cannot parse datetime 2021-1-01 00:00:00{}: Cannot parse DateTime from String: while executing 'FUNCTION toDateTime(format('{}-{}-01 00:00:00', '2021', '1') :: 3) -> toDateTime(format('{}-{}-01 00:00:00', '2021', '1')) DateTime : 2'.
2021-03-03 23:44:51 +03:00
Alexey Milovidov
4e8239e098
Merge branch 'master' into DateTime64_extended_range
2021-03-03 23:43:20 +03:00
Azat Khuzhin
79ed35876e
DirectoryMonitor: Remove const qualifier and lots of mutable qualifiers
2021-03-03 23:30:24 +03:00
Azat Khuzhin
45ee650e26
Distributed: check for bytes_to_throw/delay_insert only before INSERT
...
Before it was checked for each block.
2021-03-03 23:30:24 +03:00
Azat Khuzhin
6965ac26c3
Distributed: Add ability to delay/throttle INSERT until pending data will be reduced
...
Add two new settings for the Distributed engine:
- bytes_to_delay_insert
- max_delay_to_insert
If at the beginning of INSERT there will be too much pending data, more
then bytes_to_delay_insert, then the INSERT will wait until it will be
shrinked, and not more then max_delay_to_insert seconds.
If after this there will be still too much pending, it will throw an
exception.
Also new profile events were added (by analogy to the MergeTree):
- DistributedDelayedInserts (although you can use system.errors instead
of this, but still)
- DistributedRejectedInserts
- DistributedDelayedInsertsMilliseconds
2021-03-03 23:30:23 +03:00
Azat Khuzhin
15f7459cae
Distributed/DirectoryMonitor: protect metric_pending_files with metrics_lock
...
Since there is local value, that is not atomic, anyway we already have
lock for metrics, so it is fine.
2021-03-03 23:30:03 +03:00
Azat Khuzhin
70049db143
CurrentMetrics/Increment: Introduce add()
2021-03-03 23:30:03 +03:00
Azat Khuzhin
017c054a35
Distributed/DirectoryMonitor: Use std::lock_guard over std::unique_lock
...
It is more natural, since we do not need lazy locking.
2021-03-03 23:30:03 +03:00
Azat Khuzhin
fcf49a4914
Distributed: Calculate counters for async INSERT at INSERT time
...
Previous patch fixes the inaccuracy, but it's done using iterating over
directory on each request (to system.distribution_queue or to check
bytes_to_throw_insert), and like previous patch alredy stated, it may
have pretty huge overhead (especially when you have lots of distributed
files pending).
This patch remove that recalculation (but it will still be done, and
if there is different, there will be a log message), and replace it with
proper account at INSERT time (and after file has been sent, or marked
as broken).
2021-03-03 23:30:03 +03:00
Azat Khuzhin
b43046ba06
Distributed: More accurate distribution_queue counters
...
So now system.distribution_queue will show accurate statistics, so tests
does not requires sleep anymore.
But note that with too much distributed pending this will iterate over
all directories.
2021-03-03 23:30:03 +03:00
Azat Khuzhin
b5a5778589
Distributed: Add ability to limit amount of pending bytes for async INSERT
...
Right now with distributed_directory_monitor_batch_inserts=1 and
insert_distributed_sync=0 INSERT into Distributed table will store
blocks that should be sent to remote (and in case of
prefer_localhost_replica=0 to the localhost too) on the local
filesystem, and sent it in background.
However there is no limit for this storage, and if the remote is
unavailable (or some other error), these pending blocks may take
significant space, and this is not always desired behaviour.
Add new Distributed setting - bytes_to_throw_insert, that will set the
limit for how much pending bytes is allowed, if the limit will be
reached an exception will be throw.
By default was set to 0, to avoid surprises.
2021-03-03 23:30:00 +03:00
Azat Khuzhin
ce09b7ff89
Distributed: Implement totalBytes() (system.tables.total_bytes)
2021-03-03 23:29:11 +03:00
Azat Khuzhin
456cbaf747
Distributed: Hide private part of the interface
2021-03-03 23:29:11 +03:00
Azat Khuzhin
8531431bbc
getClusterName: Use std::string over String (since it includes only <string>)
2021-03-03 23:29:11 +03:00
Nikolai Kochetov
15921fbfcb
Remove index by name from ActionsDAG
2021-03-03 23:01:07 +03:00
Pavel Kruglov
1c7f16e0ff
Add test and move TimeoutSetter in IO/
2021-03-03 20:47:27 +03:00
alesapin
4e175bd988
Useful comments
2021-03-03 19:27:08 +03:00
alesapin
e6083c4dc4
Fix style
2021-03-03 19:25:47 +03:00
alesapin
eb5e416fd5
Merge branch 'master' into persistent_nukeeper_snapshot_storage
2021-03-03 19:19:02 +03:00
alesapin
7e28bfeb9e
Fix log store start
2021-03-03 18:37:31 +03:00
Pavel Kruglov
dc9dd8ccdc
Fix typo
2021-03-03 16:16:17 +03:00
Pavel Kruglov
eef7d8c0bc
Fix blocking mode and timeouts in SecureStreamSocket
2021-03-03 16:10:15 +03:00
alesapin
186b39f0d5
Followup fix
2021-03-03 15:31:21 +03:00
alesapin
0136d7d51a
Get rid of unused field
2021-03-03 15:29:00 +03:00
alesapin
37fc5faa6f
Fix nasty serialization bug
2021-03-03 15:21:21 +03:00
Vladimir Chebotarev
4022418ff3
Case-insensitive compression methods.
2021-03-03 14:51:09 +03:00
alesapin
1707e7f1c3
Rename file
2021-03-03 14:22:38 +03:00
alesapin
e615299ae6
Fix some bugs and add snapshots validation
2021-03-03 14:10:24 +03:00
Nikolai Kochetov
cb122160ae
Merge pull request #19291 from Avogar/hedged-requests
...
Implementation of HedgedRequests
2021-03-03 12:58:37 +03:00
feng lv
742e5a05ff
fix conflict
2021-03-03 09:38:30 +00:00
alesapin
07e39ef47a
Merge branch 'master' into persistent_nukeeper_snapshot_storage
2021-03-03 11:12:01 +03:00
Pavel Kovalenko
c4523ec74c
Add 'const auto' for variable.
2021-03-03 10:49:23 +03:00
Pavel Kovalenko
182ba7b5b4
Fixed argument name.
2021-03-03 10:35:31 +03:00
alesapin
6b1005aea5
Merge pull request #21334 from ClickHouse/fix_alter_partition_key
...
Fix alter modify query for partition key and other metadata fields
2021-03-03 10:15:11 +03:00
alexey-milovidov
bd7b540b82
Merge pull request #21307 from amosbird/moduleopt
...
Specialize intDiv/module
2021-03-03 04:49:29 +03:00
Anton Popov
a4c00ab5dc
Merge pull request #21303 from ucasFL/forbid
...
Forbid to drop a column if it's referenced by materialized view
2021-03-03 02:55:06 +03:00
alexey-milovidov
33bb77f777
Merge pull request #21367 from amosbird/mysqlfix
...
mysql client compatibility
2021-03-03 02:13:58 +03:00
alexey-milovidov
6e5638cee8
Merge pull request #21366 from songenjie/shutdown_timeout_log
...
[ClickHouse][LOG]correct shutdown timeout log
2021-03-03 01:55:15 +03:00
alexey-milovidov
c78256ad65
Merge pull request #21327 from amosbird/hasequalvalue
...
IColunm::hasEqualValues()
2021-03-03 01:19:26 +03:00
Pavel Kruglov
82a6be44cf
Disable changing replica when we have made progress
2021-03-03 01:03:03 +03:00
Kruglov Pavel
fbe0a14a2f
Merge pull request #21035 from anmolarora/system-parts-requested-columns-fill
...
Fill only requested columns when querying system.parts & system.parts…
2021-03-03 00:39:45 +03:00
Pavel Kovalenko
483e63ca45
ALTER TABLE UNFREEZE rework.
2021-03-03 00:10:09 +03:00
Pavel Kovalenko
a3c0c35dff
ALTER TABLE UNFREEZE rework.
2021-03-02 23:28:42 +03:00
Nikolai Kochetov
8e6fa404c4
Merge pull request #21246 from ucasFL/union-distinct-improve
...
Improve Normalization of ASTSelectWithUnionQuery
2021-03-02 21:37:07 +03:00
Nikolai Kochetov
4775ea305e
Remove index by name from ActionsDAG
2021-03-02 20:51:54 +03:00
Nikolai Kochetov
ffaf9da2db
Remove index by name from ActionsDAG
2021-03-02 20:08:59 +03:00
alesapin
c29d7c7f49
Shutup clang tidy
2021-03-02 19:13:36 +03:00
alesapin
ee185bc536
Start from committed plus 1
2021-03-02 18:58:02 +03:00
alesapin
346d2b1d27
Deepbugging
2021-03-02 18:19:05 +03:00
Amos Bird
9411d496d9
Fix build
2021-03-02 23:17:02 +08:00
alesapin
8e6252b25f
Use snapshot object in serialization
2021-03-02 17:30:56 +03:00
Amos Bird
134216dc4a
Specialize intDiv/module
2021-03-02 16:27:28 +03:00
alesapin
10e16e39ea
Written synchronous snapshots
2021-03-02 16:18:04 +03:00
Pavel Kruglov
4166ae1f45
Restart timeout when we make progress
2021-03-02 15:40:24 +03:00
alesapin
48bf55aef9
Even better tests
2021-03-02 15:37:00 +03:00
alesapin
08ccae32f3
Fix nasty bug
2021-03-02 15:34:18 +03:00
Amos Bird
494c2dba6c
Fix error
2021-03-02 19:12:51 +08:00
alesapin
e7399bf66f
Merge branch 'master' into persistent_nukeeper_snapshot_storage
2021-03-02 14:03:42 +03:00
alesapin
4e33587043
Comments
2021-03-02 13:57:09 +03:00
Amos Bird
ad4fd75fb4
mycli compatibility
2021-03-02 18:53:06 +08:00
Nikolai Kochetov
ffbea93b10
Merge pull request #19576 from traceon/row-policy-with-prewhere
...
Allow row policies with PREWHERE
2021-03-02 13:51:37 +03:00
alesapin
06678d650d
Merge branch 'master' into fix_alter_partition_key
2021-03-02 13:43:41 +03:00
alesapin
9ebf1b4fad
Get rid of separate minmax index fields
2021-03-02 13:33:54 +03:00
Vasily Nemkov
6af4d06dff
Added Grant, Revoke and System query_kind for system.query_log
...
Also some tests to ensure that all queries are logged
2021-03-02 12:27:39 +02:00
tavplubix
ee22eeea6c
Merge pull request #21357 from ClickHouse/fix-21140
...
Fix inconsistent column type for Values input format.
2021-03-02 13:12:12 +03:00
Nikolai Kochetov
59a2c45555
Update executeQuery.cpp
2021-03-02 13:09:29 +03:00
Amos Bird
3df57da2d8
mysql client compatibility
2021-03-02 17:06:40 +08:00
Pavel Kruglov
153bfbfc28
Merge branch 'master' of github.com:ClickHouse/ClickHouse into hedged-requests
2021-03-02 11:59:32 +03:00
tavplubix
d305b23338
Merge pull request #21079 from azat/distributed_ddl_pool_size-zk-fix
...
Fix various issues in DDLWorker (SIGSEGV and others)
2021-03-02 11:59:30 +03:00
Pavel Kruglov
780a65e3a0
Merge branch 'master' of github.com:ClickHouse/ClickHouse into system-parts-requested-columns-fill
2021-03-02 10:29:26 +03:00
turbo jason
3a6307a990
[ClickHouse][LOG]correct shutdown timeout log
2021-03-02 15:13:54 +08:00
Amos Bird
c41dedc922
optimize for ColumnLowCardinality
2021-03-02 11:55:58 +08:00
alexey-milovidov
32c011052f
Update IColumnImpl.h
2021-03-02 11:55:58 +08:00
alexey-milovidov
220d3cae7f
Update IColumn.h
2021-03-02 11:55:58 +08:00
Amos Bird
62e8684ad1
IColunm::hasEqualValues()
2021-03-02 11:55:58 +08:00
feng lv
a26c9e64a9
fix
...
fix
2021-03-02 03:20:03 +00:00
Nikolai Kochetov
f82e00ff3c
Fix inconsistent column type for Values input format.
2021-03-01 23:10:50 +03:00
Maksim Kita
ca98bb68d4
Merge pull request #21353 from kitaisreal/aggregate-function-sum-map-better-comment
...
AggregateFunctionSumMap better comment message
2021-03-01 19:19:07 +03:00
Maksim Kita
7ed5900251
Updated style
2021-03-01 19:18:56 +03:00
Maksim Kita
019a2090c7
Fix unused variable
2021-03-01 19:18:14 +03:00
Maksim Kita
3764a2a2be
AggregateFunctionSumMap better comment message
2021-03-01 19:15:59 +03:00
alesapin
40c7455d33
Test for snapshot removal
2021-03-01 19:02:15 +03:00
alesapin
321dd3e76b
Fix bug
2021-03-01 18:32:27 +03:00
alesapin
b7b6fd7cb3
Max snapshots on disk
2021-03-01 17:54:08 +03:00
alesapin
73d3c20554
Test simple serde
2021-03-01 17:40:32 +03:00
tavplubix
10aa26576c
Update DatabaseReplicatedWorker.cpp
2021-03-01 17:11:45 +03:00
alesapin
03960b1eed
Some compileable code
2021-03-01 16:33:34 +03:00
Anton Popov
c98e6bb1ad
Merge pull request #20550 from ClickHouse/fix-number-of-threads-in-subqueries
...
Fix number of threads in subqueries
2021-03-01 15:49:38 +03:00
Anton Ivashkin
98065ec56e
Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into s3_zero_copy_replication
2021-03-01 13:33:40 +03:00
Anton Ivashkin
3c11d44494
Add description for getUniqueId method, fix typos
2021-03-01 13:31:36 +03:00
Kruglov Pavel
caaa0c5e86
Restart tests.
2021-03-01 13:25:20 +03:00
alesapin
91bc4478d7
Merge branch 'master' into persistent_nukeeper_snapshot_storage
2021-03-01 13:18:35 +03:00
alesapin
9c8afbeb53
Fix alter modify query for partition key and other metadata fields
2021-03-01 12:59:19 +03:00
Nikolai Kochetov
976dbe8077
Merge pull request #20341 from ClickHouse/filter-push-down
...
Filter push down
2021-03-01 12:35:06 +03:00
vdimir
b7c7c97d10
Merge branch 'master' into join-cast-types-v2
2021-03-01 11:42:21 +03:00
Nikolai Kochetov
eb42896e26
Merge branch 'master' into ucasFL-union-distinct-improve
2021-03-01 10:43:39 +03:00
alesapin
11f2a271a2
Remove useless unit test
2021-03-01 10:40:00 +03:00
alexey-milovidov
174f49a9f1
Merge pull request #21308 from fuwhu/refine-wal-restore-code
...
remove unused code in MergeTreeWriteAheadLog::restore
2021-03-01 01:44:23 +03:00
alexey-milovidov
81be2d1ed9
Merge pull request #21305 from azat/terminate-nested-writers
...
Fix abnormal server termination for nested writers
2021-02-28 21:54:13 +03:00
alexey-milovidov
b924b28c57
Merge pull request #21306 from azat/unused-writers
...
[RFC] Remove unused writers
2021-02-28 21:47:01 +03:00
Denis Glazachev
eb80c189e4
Merge branch 'master' into row-policy-with-prewhere
2021-02-28 20:14:31 +04:00
fuwhu
2df33be7c2
Remove unused code in MergeTreeWriteAheadLog::restore
2021-02-28 23:17:31 +08:00
Azat Khuzhin
eb0387c5a9
Fix abnormal server termination for nested writers
...
Writers with nested writer can call next() from the dtor for nested
writer and this will cause exception again, so the buffer position
should be updated on exceptions.
Found by stress test (thread) here [1] and here [2]:
2021.02.27 19:27:53.498977 [ 302 ] {} <Fatal> BaseDaemon: (version 21.3.1.6130, build id: 2DAEC5DEBF03C5A1C3BF66B7779C886F16239345) (from thread 1614) Terminate called for uncaught exception:
Code: 24, e.displayText() = DB::Exception: Cannot write to ostream at offset 2097498, Stack trace (when copying this message, always include the lines below):
0. ./obj-x86_64-linux-gnu/../contrib/libcxx/include/exception:0: Poco::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) @ 0x15bef2ab in /usr/bin/clickhouse
1. ./obj-x86_64-linux-gnu/../src/Common/Exception.cpp:56: DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, bool) @ 0x8aea92e in /usr/bin/clickhouse
2. ./obj-x86_64-linux-gnu/../src/IO/WriteBufferFromOStream.cpp:0: DB::WriteBufferFromOStream::nextImpl() @ 0x8bbbc45 in /usr/bin/clickhouse
3. ./obj-x86_64-linux-gnu/../src/IO/BufferBase.h:39: DB::WriteBufferFromOStream::~WriteBufferFromOStream() @ 0x8bbc077 in /usr/bin/clickhouse
4. ./obj-x86_64-linux-gnu/../src/IO/WriteBufferFromOStream.cpp:44: DB::WriteBufferFromOStream::~WriteBufferFromOStream() @ 0x8bbc18a in /usr/bin/clickhouse
5. ./obj-x86_64-linux-gnu/../src/IO/BufferWithOwnMemory.h:137: DB::ZstdDeflatingWriteBuffer::~ZstdDeflatingWriteBuffer() @ 0x118bdc29 in /usr/bin/clickhouse
6. ./obj-x86_64-linux-gnu/../src/IO/ZstdDeflatingWriteBuffer.cpp:32: DB::ZstdDeflatingWriteBuffer::~ZstdDeflatingWriteBuffer() @ 0x118be3ea in /usr/bin/clickhouse
7. ./obj-x86_64-linux-gnu/../contrib/libcxx/include/memory:0: DB::WriteBufferFromHTTPServerResponse::finalize() @ 0x12f1dceb in /usr/bin/clickhouse
8. ./obj-x86_64-linux-gnu/../src/Server/HTTPHandler.cpp:703: DB::HTTPHandler::trySendExceptionToClient(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, DB::HTTPServerRequest&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&) @ 0x12e9fecc in /usr/bin/clickhouse
9. ./obj-x86_64-linux-gnu/../contrib/libcxx/include/string:1444: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x12ea0d60 in /usr/bin/clickhouse
10. ./obj-x86_64-linux-gnu/../src/Server/HTTP/HTTPServerConnection.cpp:0: DB::HTTPServerConnection::run() @ 0x12f16db1 in /usr/bin/clickhouse
11. ./obj-x86_64-linux-gnu/../contrib/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x15b184f3 in /usr/bin/clickhouse
12. ./obj-x86_64-linux-gnu/../contrib/poco/Net/src/TCPServerDispatcher.cpp:0: Poco::Net::TCPServerDispatcher::run() @ 0x15b18c1f in /usr/bin/clickhouse
13. ./obj-x86_64-linux-gnu/../contrib/poco/Foundation/include/Poco/ScopedLock.h:36: Poco::PooledThread::run() @ 0x15c7fdb2 in /usr/bin/clickhouse
14. ./obj-x86_64-linux-gnu/../contrib/poco/Foundation/src/Thread.cpp:56: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x15c7e350 in /usr/bin/clickhouse
15. ./obj-x86_64-linux-gnu/../contrib/poco/Foundation/include/Poco/SharedPtr.h:277: Poco::ThreadImpl::runnableEntry(void*) @ 0x15c7cb58 in /usr/bin/clickhouse
16. __tsan_thread_start_func @ 0x8a04ced in /usr/bin/clickhouse
17. start_thread @ 0x9609 in /usr/lib/x86_64-linux-gnu/libpthread-2.31.so
18. __clone @ 0x122293 in /usr/lib/x86_64-linux-gnu/libc-2.31.so
(version 21.3.1.6130)
[1]: https://clickhouse-test-reports.s3.yandex.net/21279/4f61ef3099f42f17b496a0b0424773978d9a32dc/stress_test_(thread).html#fail1
[2]: https://clickhouse-test-reports.s3.yandex.net/21292/ae9fea1d0af118a8f87b224d194d61da1567188b/stress_test_(thread).html#fail1
v2: https://clickhouse-test-reports.s3.yandex.net/21305/e969daa6e86c5e09cfef08cfde19712982b64e59/stress_test_(thread).html#fail1
2021-02-28 15:13:42 +03:00
feng lv
cbeb2853fb
improve clickhouse-format
...
fix
fix error word
2021-02-28 11:34:25 +00:00
Azat Khuzhin
568a49dad5
Remove unused AsynchronousWriteBuffer
2021-02-28 11:19:56 +03:00
Azat Khuzhin
8b58dba094
Drop unused HexWriteBuffer
2021-02-28 10:52:09 +03:00
feng lv
51021c1164
forbid to drop a column if it's referenced by materialized view
2021-02-28 05:24:39 +00:00
Azat Khuzhin
7d51ae3212
DDLWorker: Fix processing of tasks in parallel (correct queue begin)
...
Otherwise it will:
- start from incorrect task and bail because finished node already
exists
- and also process alreayd processed items
2021-02-28 05:45:12 +03:00
Azat Khuzhin
955974a8b5
DDLWorker: avoid NULL dereference on termination and failed zookeeper initialization
...
Log snipped shows the problem:
2021.02.24 04:40:29.349181 [ 39 ] {} <Warning> DDLWorker: DDLWorker is configured to use multiple threads. It's not recommended because queries can be reordered. Also it may cause some unknown issues to appear.
2021.02.24 04:40:29.349516 [ 39 ] {} <Information> Application: Ready for connections.
2021.02.24 04:40:29.349602 [ 74 ] {} <Debug> DDLWorker: Started DDLWorker cleanup thread
2021.02.24 04:40:29.349639 [ 73 ] {} <Debug> DDLWorker: Starting DDLWorker thread
2021.02.24 04:40:29.349698 [ 73 ] {} <Debug> DDLWorker: Started DDLWorker thread
2021.02.24 04:40:29.352548 [ 73 ] {} <Error> virtual void DB::DDLWorker::initializeMainThread(): Code: 999, e.displayText() = Coordination::Exception: All connection tries failed while connecting to ZooKeeper. nodes: 192.168.112.3:2181
Poco::Exception. Code: 1000, e.code() = 111, e.displayText() = Connection refused (version 21.3.1.1), 192.168.112.3:2181
Poco::Exception. Code: 1000, e.code() = 111, e.displayText() = Connection refused (version 21.3.1.1), 192.168.112.3:2181
Poco::Exception. Code: 1000, e.code() = 111, e.displayText() = Connection refused (version 21.3.1.1), 192.168.112.3:2181
(Connection loss), Stack trace (when copying this message, always include the lines below):
0. Coordination::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Coordination::Error, int) @ 0xfe93923 in /usr/bin/clickhouse
1. Coordination::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Coordination::Error) @ 0xfe93ba2 in /usr/bin/clickhouse
2. Coordination::ZooKeeper::connect(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, Poco::Timespan) @ 0xfed3a01 in /usr/bin/clickhouse
3. Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan) @ 0xfed2222 in /usr/bin/clickhouse
4. zkutil::ZooKeeper::init(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) @ 0xfe961cd in /usr/bin/clickhouse
5. zkutil::ZooKeeper::ZooKeeper(Poco::Util::AbstractConfiguration const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) @ 0xfe97a96 in /usr/bin/clickhouse
6. void std::__1::allocator_traits<std::__1::allocator<zkutil::ZooKeeper> >::__construct<zkutil::ZooKeeper, Poco::Util::AbstractConfiguration const&, char const (&) [10]>(std::__1::integral_constant<bool, true>, std::__1::allocator<zkutil::ZooKeeper>&, zkutil::ZooKeeper*, Poco::Util::AbstractConfiguration const&, char const (&) [10]) @ 0xed98387 in /usr/bin/clickhouse
7. DB::Context::getZooKeeper() const @ 0xed75190 in /usr/bin/clickhouse
8. DB::DDLWorker::getAndSetZooKeeper() @ 0xedb81c9 in /usr/bin/clickhouse
9. DB::DDLWorker::initializeMainThread() @ 0xedc9eb0 in /usr/bin/clickhouse
10. DB::DDLWorker::runMainThread() @ 0xedb5d01 in /usr/bin/clickhouse
11. ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()::operator()() @ 0xedcafa1 in /usr/bin/clickhouse
12. ThreadPoolImpl<std::__1::thread>::worker(std::__1::__list_iterator<std::__1::thread, void*>) @ 0x892651f in /usr/bin/clickhouse
13. ? @ 0x8929fb3 in /usr/bin/clickhouse
14. start_thread @ 0x8ea7 in /lib/x86_64-linux-gnu/libpthread-2.31.so
15. __clone @ 0xfddef in /lib/x86_64-linux-gnu/libc-2.31.so
(version 21.3.1.1)
...
2021.02.24 04:40:30.025278 [ 41 ] {} <Trace> BaseDaemon: Received signal 15
2021.02.24 04:40:30.025336 [ 41 ] {} <Information> Application: Received termination signal (Terminated)
...
2021.02.24 04:40:30.582078 [ 39 ] {} <Information> Application: Closed all listening sockets.
2021.02.24 04:40:30.582124 [ 39 ] {} <Information> Application: Closed connections.
2021.02.24 04:40:30.583770 [ 39 ] {} <Information> Application: Shutting down storages.
2021.02.24 04:40:30.583932 [ 39 ] {} <Information> Context: Shutdown disk data
2021.02.24 04:40:30.583951 [ 39 ] {} <Information> Context: Shutdown disk default
2021.02.24 04:40:30.584163 [ 46 ] {} <Trace> SystemLog (system.query_log): Terminating
2021.02.24 04:40:30.586025 [ 39 ] {} <Trace> BackgroundSchedulePool/BgSchPool: Waiting for threads to finish.
2021.02.24 04:40:34.352701 [ 73 ] {} <Debug> DDLWorker: Initialized DDLWorker thread
2021.02.24 04:40:34.352758 [ 73 ] {} <Debug> DDLWorker: Scheduling tasks
2021-02-28 05:45:12 +03:00
Azat Khuzhin
3c7e765b27
DDLWorker: process unfinished tasks only after reinitialization
2021-02-28 05:45:12 +03:00
Azat Khuzhin
54b1496408
DDLWorker: optimize processing of unfinished tasks
...
Do not look at zookeeper if was_executed is false
2021-02-28 05:45:12 +03:00
Azat Khuzhin
eeda1fe756
DDLWorker: wait for pending async tasks
2021-02-28 05:45:12 +03:00
Azat Khuzhin
0cd67ed051
DDLWorker: remove only completed tasks (significant for distributed_ddl.pool_size > 1)
...
Otherwise it will SIGSEGV due to invalid-read (UAF).
2021-02-28 05:45:12 +03:00
Azat Khuzhin
7481b05d27
DDLWorker: avoid comparing pointers for getting min element
...
The current_tasks always updated with emplace_back, so front() is ok.
2021-02-28 05:45:11 +03:00
Azat Khuzhin
78c6e0527d
DDLWorker: Fix reference to zookeeper with distributed_ddl.pool_size > 1 (thread pool)
2021-02-28 05:45:11 +03:00
Azat Khuzhin
f7dbcfc12a
DDLTask: Use std::uncaught_exceptions() over deprecated std::uncaught_exception()
2021-02-28 05:45:11 +03:00
Anmol Arora
2d9b524bdd
Fill only requested columns when querying system.parts & system.parts_columns
2021-02-28 01:58:38 +00:00
Alexey Milovidov
ae9fea1d0a
Fix gcc and clang-tidy
2021-02-28 04:05:04 +03:00
Alexey Milovidov
107d8ec811
Merge branch 'master' into extract-text-from-html
2021-02-28 04:03:32 +03:00
Alexey Milovidov
e5ae9cbb63
Fix Arcadia
2021-02-28 04:03:22 +03:00
alexey-milovidov
b8fba768e5
Merge pull request #21264 from ClickHouse/fix_zookeeper_update
...
Fix several bugs with ZooKeeper client
2021-02-28 01:57:04 +03:00
Alexey Milovidov
4ab18cdcd8
Tests and documentation
2021-02-28 00:59:27 +03:00
Alexey Milovidov
2ac673b12a
Update logic and tests
2021-02-27 22:33:55 +03:00
Alexey Milovidov
fd1cf49e92
Rewrite extractTextFromHTML function
2021-02-27 22:22:38 +03:00
Maksim Kita
315824978d
CheckConstraintsBlockOutputStream optimize nullable column case
2021-02-27 19:19:21 +03:00
alexey-milovidov
56af09891b
Merge pull request #20991 from kssenii/brotli
...
Fix Brotli http compression issue
2021-02-27 16:39:49 +03:00
alesapin
9dc3952ff3
Fix typo
2021-02-27 16:30:43 +03:00
Maksim Kita
9996f68160
Merge pull request #20990 from kitaisreal/constraints-complex-type-support
...
Constraints complex types support
2021-02-27 13:16:29 +03:00
Pavel Kruglov
1b1f50e324
Update comment
2021-02-27 11:45:32 +03:00
Pavel Kruglov
4d7ba0443f
Add checking pending data
2021-02-27 11:40:03 +03:00
Vladimir
df728dc4ba
Merge pull request #21248 from vdimir/fix-join-totals-nullable
...
Convert columns to nullable for totals in join
2021-02-27 11:31:02 +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
alesapin
9e93d7f507
Fix tidy and add comments
2021-02-27 11:07:14 +03:00
feng lv
4ac5b62f19
Merge branch 'master' of github.com:ClickHouse/ClickHouse into union-distinct-improve
2021-02-27 08:02:41 +00:00
Pavel Kruglov
197058dc12
Merge branch 'master' of github.com:ClickHouse/ClickHouse into hedged-requests
2021-02-27 00:36:33 +03:00
alesapin
184e9b9424
Merge pull request #21207 from ClickHouse/better_nukeeper_for_tests
...
Trying to make nukeeper better in single server mode
2021-02-26 23:59:41 +03:00
alesapin
a48bb7e3a0
Fix redundant zookeeper reconnect and possibility of multiple zookeeper session for a single ClickHouse server
2021-02-26 22:05:25 +03:00
Kruglov Pavel
cb638e0f87
Fix style
2021-02-26 21:06:17 +03:00
Nikolai Kochetov
d91b8a3acb
Merge branch 'master' into filter-push-down
2021-02-26 19:33:27 +03:00
Nikolai Kochetov
b082b661f7
Fix ya.make
2021-02-26 19:32:12 +03:00
Nikolai Kochetov
d328bfa41f
Review fixes. Add setting max_optimizations_to_apply.
2021-02-26 19:29:56 +03:00
Pavel Kruglov
91f6f9227b
Small fixes and tests updates
2021-02-26 18:55:58 +03:00
alesapin
83e2f1ca64
More fixes
2021-02-26 17:54:59 +03:00
kssenii
991718d459
Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into brotli
2021-02-26 14:31:24 +00:00
tavplubix
09f62447af
Merge pull request #21060 from mxzlxy/fix-bug-for-replicated-engine-parameter
...
fix default_replica_path and default_replica_name values are useless …
2021-02-26 17:18:56 +03:00
alesapin
12f74d4e4a
Fix build
2021-02-26 16:56:57 +03:00
alesapin
8130726794
Move storage to new map
2021-02-26 16:53:34 +03:00
vdimir
932286df1f
Convert columns to nullable for totals in join
2021-02-26 16:32:34 +03:00
feng lv
4c30c10092
add test
...
fix
2021-02-26 12:14:57 +00:00
Anton Popov
6ed3cf5511
Merge remote-tracking branch 'upstream/master' into HEAD
2021-02-26 15:10:52 +03:00
Vladimir
78024ae2d6
Merge pull request #21009 from vdimir/fix-race-storage-join
2021-02-26 14:26:10 +03:00
Nikolai Kochetov
545528917f
Fix tests.
2021-02-26 13:17:00 +03:00
Anton Ivashkin
5b267b7eec
Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into s3_zero_copy_replication
2021-02-26 13:15:18 +03:00
Anton Ivashkin
c891cf4557
Fixes by review response
2021-02-26 12:48:57 +03:00
Nikolai Kochetov
ce365e2c19
Fix tests.
2021-02-26 11:52:50 +03:00
Nikolai Kochetov
f63d7b45ce
Merge branch 'master' into fix-number-of-threads-in-subqueries
2021-02-26 11:15:03 +03:00
Maksim Kita
749dd8d555
Merge pull request #21193 from kitaisreal/storage-rabbit-mq-added-uvloop
...
StorageRabbitMQ added UVLoop
2021-02-26 11:04:02 +03:00
alesapin
56d9d99d1c
Fix style and bayan
2021-02-26 09:59:40 +03:00
alesapin
5b72cd231f
Merge pull request #21183 from ClickHouse/fix_mutation_for_storages
...
Restrict mutations for engines which doesn't support them
2021-02-26 09:54:09 +03:00
alesapin
84102a22e7
Trying to make testkeeper better in single server mode
2021-02-25 23:30:55 +03:00
alesapin
15face72c5
Stl containers
2021-02-25 22:52:22 +03:00
Pavel Kovalenko
ed44845f2c
Fixed backup_path for unfreeze
2021-02-25 22:21:22 +03:00
Nikolai Kochetov
2bf533630c
Fix tests.
2021-02-25 22:02:58 +03:00
kssenii
1247c0f36c
Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into rabbit-fix
2021-02-25 16:49:29 +00:00
alexey-milovidov
6a5ab40988
Merge pull request #21119 from fastio/bugfix_drop_metadata_from_auxiliary
...
fix the metadata leak when the Replicated*MergeTree with custom ZooKeeper cluster is dropped
2021-02-25 19:24:58 +03:00
vdimir
9c1ba71416
Merge remote-tracking branch 'upstream/master' into fix-race-storage-join
2021-02-25 19:13:49 +03:00
alexey-milovidov
0067a3beac
Merge pull request #19801 from ucasFL/ms
...
continue of #19487
2021-02-25 19:12:47 +03:00
Nikolai Kochetov
64ea1f8298
Save packet keys.
2021-02-25 18:51:01 +03:00
Maksim Kita
63173eebdb
Merge pull request #21088 from azat/__has_feature-gcc-fix
...
Fix __has_feature macros under gcc
2021-02-25 18:34:14 +03:00
alesapin
653d962cdd
Fix style and add low-level check
2021-02-25 17:43:58 +03:00
Maksim Kita
29e783999c
Fixed typo
2021-02-25 17:43:32 +03:00
alesapin
356e548267
Experimenting
2021-02-25 17:23:12 +03:00
alesapin
cf42824756
Experimenting
2021-02-25 17:22:51 +03:00
Maksim Kita
f077a25a7a
StorageRabbitMQ added UVLoop
2021-02-25 17:02:34 +03:00
vdimir
4c6cde4d53
Merge remote-tracking branch 'upstream/master' into join-cast-types-v2
2021-02-25 16:24:28 +03:00
Maksim Kita
da321c2bfe
Fixed check for null value in null map
2021-02-25 16:08:04 +03:00
Pavel Kovalenko
cf8b105d42
Merge remote-tracking branch 'origin/master' into unfreeze-partitions
2021-02-25 15:24:43 +03:00
Maksim Kita
23af53067d
Updated support for Nullable column
2021-02-25 14:27:46 +03:00
Maksim Kita
2eec1d021b
Fixed unused code
2021-02-25 14:27:46 +03:00
Maksim Kita
8fec34af12
Constraints complex types support
2021-02-25 14:27:46 +03:00
vdimir
6f864ddb42
Minor changes in Hash/StorageJoin, add TableLockHolder to ExecutableFunctionJoinGet
2021-02-25 14:21:06 +03:00
Nikolai Kochetov
33364f6bdf
Remove debug output
2021-02-25 13:50:35 +03:00
alesapin
5c6c318737
Restrict mutations for engines which doesn't support them
2021-02-25 13:07:48 +03:00
vdimir
f1c60109f6
Add static_assert to joinGet to keep information about current locking logic
2021-02-25 12:42:20 +03:00
vdimir
2f70e895fc
Update StorageJoin locking
...
Move joinGet into StorageJoin
Protect JoinSource with lock, add test
Add comments about locking logic
2021-02-25 12:31:22 +03:00
alesapin
c4a6289a9b
Merge branch 'master' into persistent_nukeeper_snapshot_storage
2021-02-25 11:39:52 +03:00
alesapin
f8b81eeeb0
Get rid of own zxid
2021-02-25 11:34:05 +03:00
feng lv
731faeadbf
union distinct improve
2021-02-25 07:47:08 +00:00
Vladimir
36c178c023
Merge pull request #21117 from amosbird/joingetlc
2021-02-25 10:06:57 +03:00
alesapin
8f81dce32f
Merge pull request #20585 from ClickHouse/persistent_nukeeper_log_storage
...
Persistent coordination log storage
2021-02-25 10:06:03 +03:00
fastio
fea2836673
get zookeeper from global context
2021-02-25 14:19:58 +08:00
fastio
3ddb729e4a
fix metadata leak when drop Replicated*MergeTree
2021-02-25 14:19:58 +08:00
Vitaly Baranov
8601b2f3e7
Merge pull request #21148 from vitlibar/protobuf-format-better-tests-2
...
Better tests for protobuf format #2 .
2021-02-25 06:01:47 +03:00
Nikolai Kochetov
6f5d4ba8cd
Fix tests.
2021-02-25 00:31:15 +03:00
Nikolai Kochetov
aa8632a1bc
Fix tests.
2021-02-25 00:27:47 +03:00
Pavel Kovalenko
3663011f9d
Merge remote-tracking branch 'origin/master' into unfreeze-partitions
2021-02-24 22:34:25 +03:00
alexey-milovidov
b20efdcc01
Merge pull request #21020 from azat/trace-collector-non-recursive
...
Fix buffer size for trace collection
2021-02-24 21:57:30 +03:00
Anton Popov
9811fce5dc
Update convertFieldToType.cpp
2021-02-24 21:54:18 +03:00
alexey-milovidov
89884797ab
Merge pull request #20879 from vitlibar/reservoir-sample-deterministic-ubsan-fix
...
Fix undefined-behavior in ReservoirSamplerDeterministic.h
2021-02-24 21:46:42 +03:00