Commit Graph

73634 Commits

Author SHA1 Message Date
vdimir
81a051e3ee
Use dynamic_pointer_cast instead of dynamic_cast in StorageSystemRocksDB 2021-09-23 16:40:10 +03:00
vdimir
9af2e4891d
Cleanup test rocksdb_race_long.sh 2021-09-23 16:19:39 +03:00
Anton Popov
0390035963 fix unit test 2021-09-23 16:11:31 +03:00
Maksim Kita
23f865c722
Merge pull request #29282 from azat/fix-connection-timeout
Fix connection timeouts (send_timeout/receive_timeout)
2021-09-23 15:30:53 +03:00
Nikita Mikhaylov
e8ab9feb94
Merge pull request #29265 from ClickHouse/fix_yaml_test
Fix YAML integration tests
2021-09-23 15:12:38 +03:00
Nikita Mikhaylov
e5431eb576
Merge pull request #29042 from bbkas/patch-1
Alignment with the russian version: Manipulating Key Expressions
2021-09-23 15:05:27 +03:00
Mark Andreev
155c9773a6
Fix table schema for hits_100m_obfuscated
Add schema for hits_100m_obfuscated (copy from play.clickhouse.com instance)
2021-09-23 14:55:53 +03:00
vdimir
1bb48cbe72
Add test for segfault in StorageEmbeddedRocksDB, issue #29227 2021-09-23 13:54:12 +03:00
Nikolai Kochetov
28d1938ac4 Remote 01200_mutations_memory_consumption from fast 2021-09-23 13:44:00 +03:00
Kruglov Pavel
55553026ee
Merge pull request #29206 from azat/strict-external-queries
Add ability to disable converting expressions to local filter for external queries
2021-09-23 13:22:12 +03:00
Nikolai Kochetov
998d29ebc7 Merge branch 'master' into rewrite-pushing-to-views 2021-09-23 13:10:27 +03:00
Nikolai Kochetov
562ce8c7c2 Fix virtuals. 2021-09-23 13:01:52 +03:00
Kruglov Pavel
6461391387
Merge pull request #29077 from Avogar/fix-msgpack
Improve MsgPack input/output format
2021-09-23 12:46:36 +03:00
Maksim Kita
3d79812427 Merge branch 'master' into full-text-bloom-filter-index-map-data-type 2021-09-23 12:38:03 +03:00
Maksim Kita
0341b99c69
Merge pull request #29280 from kitaisreal/full-text-bloom-filter-added-support-for-array-data-type
FullText bloom filter index added support for Array data type
2021-09-23 12:34:06 +03:00
alesapin
941724bc11 Fix test rocksdb 2021-09-23 12:19:30 +03:00
Maksim Kita
1b99f43911
Merge pull request #29286 from kitaisreal/user-defined-executable-function-fix-debug-message
UserDefinedExecutableFunction fix debug message
2021-09-23 12:14:57 +03:00
Maksim Kita
313f967204 UserDefinedExecutableFunction fix debug message 2021-09-23 12:14:21 +03:00
Maksim Kita
d9e265df2c Fixed debug message 2021-09-23 12:13:01 +03:00
Maksim Kita
d59986f224
Merge pull request #29278 from kitaisreal/bloom-filter-map-added-support-for-has-function
Bloom filter map added support for has function
2021-09-23 12:03:56 +03:00
alesapin
d1bb8d666e Move all yaml tests to clickhouse config 2021-09-23 11:08:40 +03:00
Kseniia Sumarokova
2c0b59576e
Merge pull request #29285 from kssenii/remove-debug
Remove debug stderr
2021-09-23 10:54:32 +03:00
kssenii
6c1312760f Remove debug 2021-09-23 07:52:52 +00:00
Vasily Nemkov
3b762f10a0 Fixed test 2021-09-23 10:31:59 +03:00
Kseniia Sumarokova
f7ff14b407
Merge pull request #28577 from kssenii/named-collections
Predefined connections and other parameters for external data sources
2021-09-23 10:25:23 +03:00
kssenii
d71b6ad657 Fix 2021-09-23 07:21:08 +00:00
Azat Khuzhin
015695b3bf Fix connection timeouts (send_timeout/receive_timeout)
Query is not executed within sendQuery() function.

INSERT query consist from multiple parts:
- sendQuery()
- write()/writePrepared() -- send Data blocks
- writeSuffix() -- send empty Data block and receive EndOfStream
(see RemoteBlockOutputStream for more info)
So as you can see it is not executed completely from the sendQuery() function.

SELECT query (and others) also send Data blocks to the client after.

And what this means that temporary timeout (via TimeoutSetter) is not
enough, since next query can use timeout from the previous query.

Usually you do not see it, because:
- You don't use custom send_timeout/receive_timeout
- SELECT is fast enough

However it is not the case with INSERT, especially with
insert_distributed_sync=1, since
DistributedBlockOutputStream::writeSuffix() may stack because remote
server still INSERT'ing the data (i.e. creating znodes in zookeeper for
ReplicatedMergeTree, syncing blocks, and similar) that was issued from
DistributedBlockOutputStream::write(), and it will lead to the following
exception:

    Code: 209, e.displayText() = DB::NetException: Timeout exceeded while reading from socket (127.1:9000): while receiving packet from ch-47-drt.dpa.semrush.net:9000: Insertion status:
    Wrote X blocks and Y rows on shard Z replica 0, 127.1:9000 (average 0 ms per block, the slowest block N ms)
    0. DB::Exception::Exception()
    1. DB::ReadBufferFromPocoSocket::nextImpl()
    2. void DB::readVarUIntImpl<false>(unsigned long&, DB::ReadBuffer&)
    3. DB::Connection::receivePacket()
    4. DB::RemoteBlockOutputStream::writeSuffix()
    ...
2021-09-23 09:03:13 +03:00
bharatnc
727182c3a4 Add review fixes 2021-09-22 22:50:33 -07:00
anneji-dev
34055d38c2
Update tests/queries/0_stateless/02028_add_default_database_for_alterquery_on_cluster.sql
Co-authored-by: Nikolay Degterinsky <43110995+evillique@users.noreply.github.com>
2021-09-23 11:23:55 +08:00
Maksim Kita
ebbefd49c3 FullText bloom filter index added support for Array data type 2021-09-23 02:06:54 +03:00
Vasily Nemkov
cb1ca9b33e Implemented modifying table comments with ALTER TABLE t MODIFY COMMENT 'value' 2021-09-23 01:14:00 +03:00
Maksim Kita
d5a7e92b97 Bloom filter map added support for has function 2021-09-23 01:10:14 +03:00
Maksim Kita
1bf375e2b7
Merge pull request #29254 from kitaisreal/map-bloom-filter-index-updated
Updated bloom filter index for map type to work with mapKeys, mapValues functions
2021-09-23 00:31:14 +03:00
Maksim Kita
2920e124f3
Merge pull request #29267 from kitaisreal/function-has-support-map-type
Function has support map type
2021-09-23 00:26:58 +03:00
Nikita Mikhaylov
32aa2ca939
Merge pull request #29257 from nikitamikhaylov/race-merge-task
Fix segfault in fast test
2021-09-23 00:12:31 +03:00
alexey-milovidov
0b0be96f43
Update github-events.md 2021-09-22 23:56:42 +03:00
mergify[bot]
d69fc35dd9
Merge branch 'master' into compressed_logs 2021-09-22 19:43:16 +00:00
alesapin
65f2395165
Merge pull request #29268 from ClickHouse/add_missed_test
Add missed keeper jepsen config
2021-09-22 22:41:58 +03:00
Nikolai Kochetov
4f802d1cea Fix test_executable_table_function 2021-09-22 22:31:12 +03:00
Maksim Kita
be256cc9ed
Merge pull request #29270 from hhell/patch-1
Fix typo in an error message
2021-09-22 21:36:04 +03:00
hhell
fc166570d8
Fix typo in an error message
Related: https://github.com/ClickHouse/ClickHouse/issues/20551
2021-09-22 21:33:15 +03:00
Maksim Kita
7eca0a1486
Merge pull request #29258 from vdimir/fuse-quantileBFloat16Weighted
Add NameQuantileBFloat16Weighted to GatherFunctionQuantileVisitor
2021-09-22 20:38:55 +03:00
Maksim Kita
6dc41ad653 Fixed tests 2021-09-22 20:31:49 +03:00
Maksim Kita
93208fca4b Bloom filter for map data type dded support for IN, mapContains functions 2021-09-22 20:25:10 +03:00
Kseniia Sumarokova
b41a446e8b
Delete getEngineConnectionArguments.h 2021-09-22 19:52:55 +03:00
alesapin
dbff8fd03b Add missed keeper jepsen config 2021-09-22 19:27:11 +03:00
Dmitriy
8f9a45ea05
DOCSUP-14458: Edit and translate to Russian (two settings and subBitmap function) (#28996)
* Edit and translate to Russian

Выполнил перевод на русский язык.

* Update settings.md

Поправил документацию.

* Update docs/ru/operations/settings/settings.md

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>

* Update docs/ru/operations/settings/settings.md

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>

* Update docs/ru/sql-reference/functions/bitmap-functions.md

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>

* Update docs/ru/sql-reference/functions/bitmap-functions.md

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>

* Update docs/ru/sql-reference/functions/bitmap-functions.md

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>

* Update bitmap-functions.md

Обновил описание.

* Update docs/ru/sql-reference/functions/bitmap-functions.md

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>

* Update docs/ru/sql-reference/functions/bitmap-functions.md

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>

* Update docs/en/sql-reference/functions/bitmap-functions.md

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>

* Update docs/ru/sql-reference/functions/bitmap-functions.md

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>

* Update docs/en/sql-reference/functions/bitmap-functions.md

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>

* Update subBitmap function

Поправил описание функции subBitmap.

Co-authored-by: Dmitriy <sevirov@yandex-team.ru>
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-09-22 19:12:31 +03:00
Dmitriy
9dad40af9a Merge remote-tracking branch 'remotes/clickhouse/master' into sevirov-DOCSUP-14537-document_the_log_queries_probability_setting 2021-09-22 19:08:33 +03:00
Maksim Kita
c73808615b Function has support map type 2021-09-22 19:08:08 +03:00
Anton Popov
8943389d03 normalize ASTs in ColumnsDescription 2021-09-22 18:55:20 +03:00