Commit Graph

14663 Commits

Author SHA1 Message Date
alesapin
7e1767542c
Merge pull request #33249 from nicelulu/fix_acl
clickhouse-keeper acl consistent with zookeeper, accept generated digest
2021-12-29 13:21:10 +03:00
kssenii
2279dd0c7f Reuse check_rabbitmq_is_available 2021-12-29 13:14:21 +03:00
alesapin
24df9dedd3
Merge pull request #33272 from den-crane/test/26920
Test for #26920
2021-12-29 13:02:58 +03:00
alesapin
739297b169
Merge pull request #33268 from den-crane/patch-53
Mark max_alter_threads as obsolete
2021-12-29 13:01:57 +03:00
Kruglov Pavel
dd7f61b337
Merge branch 'master' into schema-inference 2021-12-29 12:59:05 +03:00
Maksim Kita
a5256e5b6e
Merge pull request #30957 from kitaisreal/executable-refactoring
Executable refactoring
2021-12-29 12:43:41 +03:00
Maksim Kita
c3c8af747d
Merge pull request #33261 from kitaisreal/dictionaries-fix-comment
Dictionaries fix comment
2021-12-29 12:43:24 +03:00
avogar
26abf7aa62 Remove code duplication, use simdjson and rapidjson instead of Poco 2021-12-29 12:21:01 +03:00
avogar
e3dbfe6bf6 Better test url engine 2021-12-29 12:18:56 +03:00
avogar
bc5f428f97 Fix tests 2021-12-29 12:18:56 +03:00
avogar
622a013b7b Fix tests 2021-12-29 12:18:56 +03:00
avogar
9f30c17777 Fix tests 2021-12-29 12:18:56 +03:00
avogar
8a65c265e9 Fix shellcheck 2021-12-29 12:18:56 +03:00
avogar
74f09d6476 Fix tests 2021-12-29 12:18:56 +03:00
avogar
3d38e466b1 Fix tests 2021-12-29 12:18:56 +03:00
avogar
aaf9f85c67 Add more tests and fixes 2021-12-29 12:18:56 +03:00
avogar
dd994aa761 Add some tests and some fixes 2021-12-29 12:18:56 +03:00
benbiti
a954de4560 fix missing ; in tests 2021-12-29 16:50:27 +08:00
Azat Khuzhin
c541ee386b Mark some expect tests as long
CI: https://s3.amazonaws.com/clickhouse-test-reports/33263/765c7980b84ef6a7851a5fe2846a06f08382f03a/stateless_tests_flaky_check__address__actions_.html
2021-12-29 10:02:38 +03:00
Azat Khuzhin
06ac2cd6cd tests: fix 02112_delayed_clickhouse_*_with_queries_file
- fix variables inside prepare.sh
- fix variables for invoking prepare.sh
- fix path to queries file
- wait for eof on client (exiting client is required to catch all
  possible issues, that can be reported by i.e. ASan on exit)
- fix spawning of clean.sh by replace with system

Cc: @kssenii
2021-12-29 10:02:38 +03:00
Azat Khuzhin
a424b4ad56 Do not ignore eof in expect tests
expect_after that adjusts default timeout handler, reseted eof handler,
and this tell expect that it can ignore eof from read, consider the
following example:

<details>

    ```expect
    #!/usr/bin/expect -f

    exp_internal 1
    log_user 1
    set timeout 4
    match_max 100000

    expect_after {
        # eof { exp_continue }
        timeout {
            exit 1
        }
    }

    spawn bash -c "sleep 1; echo ':) '"
    expect ":) "
    ```

    ```
    $ ./expect.expect < /dev/null
    spawn bash -c sleep 1; echo ':) '
    parent: waiting for sync byte
    parent: telling child to go ahead
    parent: now unsynchronized from child
    spawn: returns {6614}

    expect: does "" (spawn_id exp4) match glob pattern ":) "? no
    expect: read eof
                 ^^^
    expect: set expect_out(spawn_id) "exp0"
    expect: set expect_out(buffer) ""
    ```

And with uncommented eof handler:

    ```
    $ ./expect.expect < /dev/null
    spawn bash -c sleep 1; echo ':) '
    parent: waiting for sync byte
    parent: telling child to go ahead
    parent: now unsynchronized from child
    spawn: returns {17959}

    expect: does "" (spawn_id exp4) match glob pattern ":) "? no
    expect: read eof
    expect: set expect_out(spawn_id) "exp0"
    expect: set expect_out(buffer) ""
    expect: continuing expect after update

    expect: does "" (spawn_id exp4) match glob pattern ":) "? no

    expect: does ":) \r\n" (spawn_id exp4) match glob pattern ":) "? yes
    expect: set expect_out(0,string) ":) "
    expect: set expect_out(spawn_id) "exp4"
    expect: set expect_out(buffer) ":) "
    ```

</details>
2021-12-29 10:02:38 +03:00
Kseniia Sumarokova
004e199af0
Merge pull request #33269 from kssenii/azure-tests-improve
Fix azure tests flackyness because of azure server closing connection
2021-12-29 09:34:57 +03:00
Kseniia Sumarokova
9b63fa6949
Merge pull request #33239 from CurtizJ/async-insert-query-log
Add asynchronous inserts to query log
2021-12-29 09:34:08 +03:00
benbiti
9004e98992 parseDateTimeBestEffort support Unix Timestamp with Milliseconds 2021-12-29 13:43:54 +08:00
Denny Crane
464b30d954 test for csv strings started with slach #26920 2021-12-28 21:21:39 -04:00
Denny Crane
a4fe8e52ed test for csv strings started with slach #26920 2021-12-28 21:20:23 -04:00
Denny Crane
8b46053e8a
fix test. Output is in another order 2021-12-28 19:50:55 -04:00
Alexey Milovidov
422061ce71 Update tests 2021-12-29 01:43:43 +03:00
Anton Popov
8ca12bb2e8
fix style check 2021-12-29 00:43:33 +03:00
kssenii
c8dcde7843 Fix 2021-12-28 23:57:36 +03:00
Maksim Kita
df95a40bbf Fixed tests 2021-12-28 23:50:48 +03:00
Maksim Kita
9ef359ce2c Dictionaries fix comment 2021-12-28 23:50:48 +03:00
Denny Crane
031451ed17 replace obsolete max_alter_threads with max_final_threads in documentation examples 2021-12-28 16:48:34 -04:00
Maksim Kita
b5698ea134 Updated test_executable_table_function tests 2021-12-28 22:55:31 +03:00
Maksim Kita
41437b72f1 Fixed integration tests 2021-12-28 22:55:31 +03:00
Maksim Kita
3386378050 Updated test_executable_table_function tests 2021-12-28 22:55:31 +03:00
Maksim Kita
fbe65658a1 Fixed tests 2021-12-28 22:55:31 +03:00
Maksim Kita
c2977dbf58 Updated test_executable_table_function integration tests 2021-12-28 22:55:30 +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
72909c67c2 Fix executable function 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
kssenii
67c5b41a58 Fix 2021-12-28 22:16:16 +03:00
alexey-milovidov
0fe657e808
Merge pull request #33198 from azat/tests-event_date_time-today
Fix tests with event_time/event_date = today(), and add a style check
2021-12-28 20:34:33 +03:00
Amos Bird
a1dfebd728
More nullable primary key tests. 2021-12-29 01:11:13 +08:00
Amos Bird
b668691f6a
Fix broken tests 2021-12-29 01:06:21 +08:00
alesapin
66f6d8bcf5
Merge pull request #33256 from ClickHouse/add_retries_to_ast
Add retries to AST fuzzer download and fix flaky test.
2021-12-28 19:11:51 +03:00
Anton Popov
a6e90a046d add more info to query log in async inserts 2021-12-28 17:53:25 +03:00
alesapin
a2aa32877f
Update 02122_4letter_words_stress_zookeeper.sh 2021-12-28 16:40:34 +03:00
alesapin
5ae8188ab7 Fix flaky test 2021-12-28 16:26:47 +03:00
kssenii
e9b4439a47 Fix 2021-12-28 15:08:40 +03:00
alesapin
fcdbf8737a
Merge pull request #33250 from ClickHouse/fix_flaky_01650_drop_part
Fix flaky test 01650
2021-12-28 14:55:32 +03:00
alesapin
948fde52a7 Add retries for github api 2021-12-28 13:13:51 +03:00
alesapin
cb3c3970fe Fix flaky test 01650 2021-12-28 12:40:07 +03:00
zhangxiao871
daa4c9e33b clickhouse-keeper acl consistent with zookeeper, accept generated digest 2021-12-28 17:17:01 +08:00
kssenii
61a2516c8c Merge remote-tracking branch 'upstream/master' into validate-config 2021-12-28 11:30:30 +03:00
alesapin
90db762c87
Merge pull request #33215 from ClickHouse/fix_flaky_integration_tests
Fix some flaky integration tests
2021-12-28 11:27:46 +03:00
alesapin
875eb54754
Update test.py 2021-12-28 11:21:33 +03:00
Vladimir C
bb6fc853e3
Merge pull request #31442 from vdimir/cluster-discovery 2021-12-28 10:53:30 +03:00
Anton Popov
0e2d0d70ba add asynchronous inserts to query log 2021-12-27 23:16:53 +03:00
Kseniia Sumarokova
0178fb5e0b
Merge pull request #33214 from kssenii/external-database-fix-where-false
Fix WHERE 1=0 for external databases query
2021-12-27 18:53:52 +03:00
kssenii
55dfaef4de Settings changes as key value 2021-12-27 17:45:00 +03:00
Kruglov Pavel
3cb37a11ae
Merge pull request #33202 from azat/fix-client_autocomplete_word_break_characters
Fix 01370_client_autocomplete_word_break_characters test logic
2021-12-27 15:35:11 +03:00
vdimir
d3b1058c40
cluster discovery configuration, support shards 2021-12-27 15:26:11 +03:00
vdimir
fbdb5c60bd
initial initialization of cluster discovery in main thread 2021-12-27 15:26:10 +03:00
vdimir
57cbbd9fcf
global option allow_experimental_cluster_discovery 2021-12-27 15:26:09 +03:00
vdimir
96a0371eca
add option allow_experimental_cluster_discovery 2021-12-27 15:26:09 +03:00
vdimir
ceec643f90
update config structure: remote_servers_discovery -> remote_servers.discovery 2021-12-27 15:26:09 +03:00
vdimir
1f460f05fe
add retry for first check in test_cluster_discovery_startup_and_stop 2021-12-27 15:26:07 +03:00
vdimir
43bfcacd61
Add test_cluster_discovery 2021-12-27 15:26:06 +03:00
Vitaly Baranov
f80a3e3247
Merge pull request #30549 from aiven/kmichel-server-reload
Start/stop servers when `listen_host`/`*_port` changes
2021-12-27 14:51:00 +03:00
alesapin
48f0cee798 Merge branch 'master' into fix_flaky_integration_tests 2021-12-27 14:38:26 +03:00
alesapin
4eb8c11bb0
Merge pull request #33163 from azat/fix-test_input_format_parallel_parsing_memory_tracking
Make test_input_format_parallel_parsing_memory_tracking less flaky
2021-12-27 14:36:32 +03:00
alesapin
d188771c05
Merge pull request #33222 from ClickHouse/fix_cancell_lambda
Fix cancel lambda
2021-12-27 13:27:40 +03:00
alesapin
33fd1a44ac Fix cancel lambda 2021-12-27 13:26:16 +03:00
alesapin
caad89b7cf
Merge pull request #33207 from ClickHouse/more_debug
More debug in jepsen test
2021-12-27 12:46:04 +03:00
Amos Bird
1cbd05ae9e
Correctly prevent nullable primary keys if necessary. 2021-12-27 17:32:37 +08:00
alesapin
593dc6cf90 Fix some flaky integration tests 2021-12-27 12:24:19 +03:00
kssenii
a1aab3a82d Fix 2021-12-27 11:59:33 +03:00
Vladimir C
ea5f867289
Merge pull request #33179 from kssenii/materialized-postgresql-fix-detach-with-schema 2021-12-27 11:42:59 +03:00
Vladimir C
211a5a8d6b
Merge pull request #33159 from xuyatian/master 2021-12-27 11:40:59 +03:00
alesapin
342c8231fa Better 2021-12-27 10:33:44 +03:00
alesapin
e683fa146b More debug info in jepsen check 2021-12-27 10:33:25 +03:00
kssenii
568aeec0b3 Review fix 2021-12-27 09:51:29 +03:00
Azat Khuzhin
dc76817329 Fix 01370_client_autocomplete_word_break_characters test logic
AFAICS right now it works only because completion loaded too quickly,
since `expect "_"` will block for 60 seconds if completion is not
available.
2021-12-26 22:25:49 +03:00
Yatian Xu
8dc07dff4a add Clarification for test case 2021-12-26 11:24:47 -08:00
kssenii
5b15b2be2d Merge remote-tracking branch 'upstream/master' into materialized-postgresql-fix-detach-with-schema 2021-12-26 21:06:08 +03:00
kssenii
9f17e7bad0 Fix ddl validation 2021-12-26 20:56:31 +03:00
Azat Khuzhin
906ebc9fd4 test_input_format_parallel_parsing_memory_tracking: increase max_server_memory_usage
Even after disabling all system tables TSan build still not passed,
since it uses 2.8Gi of RAM just after start, so let's increase this
memory limit a little.
2021-12-26 16:50:35 +03:00
Azat Khuzhin
3f752c3acb Make test_input_format_parallel_parsing_memory_tracking less flaky
By disabling system tables, that may consume memory too.

Also note, that failures with "curl: (56) Recv failure: Connection reset
by peer" like [1] is due to memory, since the server was under memory
pressure, and was not able even to accept the connection:

<details>

    2021.12.25 00:22:02.957658 [ 54 ] {} <Error> ThreadStatus: Code: 241. DB::Exception: Memory limit (total) exceeded: would use 2.81 GiB (attempt to allocate chunk of 2097182 bytes), maximum: 2.79 GiB. (MEMORY_LIMIT_EXCEEDED), 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) @ 0x1addca1b in /usr/bin/clickhouse
    1. ./obj-x86_64-linux-gnu/../src/Common/Exception.cpp:57: DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, bool) @ 0xa0e993c in /usr/bin/clickhouse
    2. ./obj-x86_64-linux-gnu/../contrib/libcxx/include/string:1444: DB::Exception::Exception<char const*, char const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, long&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, char const*&&, char const*&&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&&, long&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&&) @ 0xa11344b in /usr/bin/clickhouse
    3. ./obj-x86_64-linux-gnu/../src/Common/MemoryTracker.cpp:226: MemoryTracker::allocImpl(long, bool) @ 0xa11220c in /usr/bin/clickhouse
    4. ./obj-x86_64-linux-gnu/../src/Common/MemoryTracker.cpp:258: MemoryTracker::allocImpl(long, bool) @ 0xa111faa in /usr/bin/clickhouse
    5. ./obj-x86_64-linux-gnu/../src/Common/MemoryTracker.cpp:264: MemoryTracker::alloc(long) @ 0xa112bc6 in /usr/bin/clickhouse
    6. ./obj-x86_64-linux-gnu/../src/Common/ThreadStatus.cpp:152: DB::ThreadStatus::~ThreadStatus() @ 0xa10e182 in /usr/bin/clickhouse
    7. ./obj-x86_64-linux-gnu/../src/Server/TCPHandler.cpp:518: DB::TCPHandler::runImpl() @ 0x17c4192d in /usr/bin/clickhouse
    8. ./obj-x86_64-linux-gnu/../src/Server/TCPHandler.cpp:1909: DB::TCPHandler::run() @ 0x17c55328 in /usr/bin/clickhouse
    9. ./obj-x86_64-linux-gnu/../contrib/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x1ac19f03 in /usr/bin/clickhouse
    10. ./obj-x86_64-linux-gnu/../contrib/libcxx/include/memory:1397: Poco::Net::TCPServerDispatcher::run() @ 0x1ac1a773 in /usr/bin/clickhouse
    11. ./obj-x86_64-linux-gnu/../contrib/poco/Foundation/src/ThreadPool.cpp:213: Poco::PooledThread::run() @ 0x1ae7e796 in /usr/bin/clickhouse
    12. ./obj-x86_64-linux-gnu/../contrib/poco/Foundation/src/Thread.cpp:56: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x1ae7c930 in /usr/bin/clickhouse
    13. ./obj-x86_64-linux-gnu/../contrib/poco/Foundation/include/Poco/SharedPtr.h:277: Poco::ThreadImpl::runnableEntry(void*) @ 0x1ae7afa8 in /usr/bin/clickhouse
    14. __tsan_thread_start_func @ 0xa039dfd in /usr/bin/clickhouse
    15. ? @ 0x7f4c565cf609 in ?
    16. clone @ 0x7f4c564f6293 in ?
     (version 21.13.1.1305)

</details>

  [1]: https://s3.amazonaws.com/clickhouse-test-reports/33140/b4420cfa3e834ab9026914978697ded3180122a0/integration_tests__thread__actions__[3/4].html
2021-12-26 16:50:34 +03:00
Azat Khuzhin
bcce1d70b2 tests: update tests with event_time/event_date = today() to >= yesterday()
This will fix failures like in [1], from query_log from artifacts:

    SELECT
        query,
        event_time
    FROM system.query_log
    WHERE (NOT is_initial_query) AND (query NOT LIKE '%system%query_log%') AND (query LIKE concat('WITH%', 'test_84qkvq', '%AS `id_no` %')) AND (type = 'QueryFinish')

    Query id: c5d70aba-b0aa-4f92-bdb3-29547b9aabb1

    ┌─query──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┬──────────event_time─┐
    │ WITH _CAST('test_84qkvq', 'Nullable(String)') AS `id_no` SELECT `one`.`dummy`, ignore(`id_no`) FROM `system`.`one` WHERE `dummy` IN (0, 2) │ 2021-12-25 23:59:59 │
    │ WITH _CAST('test_84qkvq', 'Nullable(String)') AS `id_no` SELECT `one`.`dummy`, ignore(`id_no`) FROM `system`.`one` WHERE `dummy` IN (0, 2) │ 2021-12-25 23:59:59 │
    └────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴─────────────────────┘

    2 rows in set. Elapsed: 0.032 sec.

  [1]: https://s3.amazonaws.com/clickhouse-test-reports/33175/465a9bf615e1b233606460f956c09f71931c99a2/stateless_tests__debug__actions__[2/3].html
2021-12-26 16:35:15 +03:00
alexey-milovidov
e05a0cf608
Merge pull request #33127 from freedomDR/fix_bitmap
fix AggregateFunctionGroupBitmapData function rb_contains rb_remove
2021-12-25 22:09:20 +03:00
alexey-milovidov
ff5c860f6e
Merge pull request #33169 from ClickHouse/fix-flaky-test-00646
Fix flaky test 01622_defaults_for_url_engine
2021-12-25 22:04:57 +03:00
alexey-milovidov
0a55fa3dc2
Revert "Grouping sets dev" 2021-12-25 20:30:31 +03:00
kssenii
e663cb4574 Fix detaching-attaching table with schema 2021-12-25 19:51:55 +03:00
freedomDR
1d8ddffa78 add test 2021-12-25 16:44:12 +00:00
alexey-milovidov
f9d961d46d
Merge pull request #33164 from azat/fix-test_async_drain_connection
Fix test_async_drain_connection flakiness
2021-12-25 16:23:17 +03:00
Kruglov Pavel
22dbaec11a
Merge pull request #33142 from Avogar/fix-s3-write
Don't allow to write into S3 if path contains globs
2021-12-25 16:07:38 +03:00
Alexey Milovidov
f78678dc3f Great simplification of test 01622_defaults_for_url_engine 2021-12-25 16:01:35 +03:00
kssenii
59dd5ba063 Validate config keys for external dictionaries 2021-12-25 14:26:35 +03:00
alexey-milovidov
795564ee1b
Merge pull request #33161 from ClickHouse/fix-test-02098
Fix Date32 test
2021-12-25 12:26:27 +03:00
Azat Khuzhin
42ab02a810 Fix test_async_drain_connection flakiness
Sometimes [1] 5 seconds is not enough, since drain_timeout is 3 seconds,
and 2 seconds sometimes is not enough to do other things, especially
under sanitizers:

    E           Code: 159. DB::Exception: Received from 172.16.1.2:9000. DB::Exception: Timeout exceeded: elapsed 5.019254094 seconds, maximum: 5. Stack trace:

  [1]: https://s3.amazonaws.com/clickhouse-test-reports/0/826f7cb0f53e20e67ef52800cb735bb88a6de658/integration_tests__thread__actions__[4/4].html
2021-12-25 11:55:57 +03:00
Azat Khuzhin
da211909e9 tests/integration: refactor test_async_drain_connection 2021-12-25 11:55:57 +03:00
Yatian Xu
3fa78c5642 test case for metrics: StorageBufferBytes 2021-12-25 00:43:45 -08:00
Yatian Xu
2e151a278d correct table name 2021-12-25 00:03:23 -08:00
Yatian Xu
02362a35b4 add test case for metrics: StorageBufferBytes 2021-12-25 00:02:02 -08:00
alexey-milovidov
c583ea7e6b
Merge pull request #32484 from Algunenano/libcxx13_take2
libc++ 13 compatibility
2021-12-25 10:14:12 +03:00
Alexey Milovidov
555ae50c4e Fix Date32 test 2021-12-25 10:11:31 +03:00
alexey-milovidov
4d99f1016d
Merge pull request #33146 from CurtizJ/fix-column-sparse
Fix functions with sparse arguments in case when result type doesn't support sparse serialization
2021-12-25 06:28:19 +03:00
alexey-milovidov
26a735c52f
Merge pull request #32984 from Avogar/bool-type
Improve Bool data type
2021-12-25 06:22:54 +03:00
alesapin
9687f1603a Better 2021-12-24 21:34:24 +03:00
alesapin
bd7f5ea50f Better 2021-12-24 21:22:29 +03:00
alesapin
46569e7a5b Better 2021-12-24 21:02:40 +03:00
alesapin
9d83b904de Add pretty print unknow event 2021-12-24 20:57:32 +03:00
alexey-milovidov
888a5532a6
Merge pull request #33134 from ClickHouse/musl-check-2
Prepare ClickHouse to be built with musl-libc
2021-12-24 19:44:47 +03:00
Anton Popov
c37f1c40be fix functions with sparse arguments 2021-12-24 19:39:50 +03:00
alesapin
00666a6a4c
Merge pull request #32998 from ClickHouse/add_jepsen_test
Add Keeper Jepsen check to new CI
2021-12-24 17:25:20 +03:00
avogar
58966e90e9 Don't allow to write into S3 if path contains globs 2021-12-24 17:13:35 +03:00
Nikita Mikhaylov
8707c35c26 Merge branch 'master' of github.com:ClickHouse/ClickHouse into merging-dev-sum-bug 2021-12-24 13:15:16 +00:00
Nikita Mikhaylov
29fdc422d0
Merge pull request #32974 from nikitamikhaylov/hdfsCluster
Merging #32400
2021-12-24 16:02:54 +03:00
alesapin
05648434b9 Fix label 2021-12-24 15:56:38 +03:00
alesapin
42461f453e Add a separate workflow 2021-12-24 15:56:03 +03:00
alesapin
119b8628e5
Merge pull request #33135 from ClickHouse/fix_pvs_studio
Fix PVS check
2021-12-24 15:34:24 +03:00
alesapin
2a402f7df1
Merge pull request #33136 from ClickHouse/fix_error_report_in_build_check
Upload build artifact in case of build failures
2021-12-24 15:00:50 +03:00
alesapin
3dbf7a9da9 More clear exception 2021-12-24 13:35:40 +03:00
alesapin
9461b7dba2 Finally fix jepsen 2021-12-24 13:32:32 +03:00
avogar
602578deab Update bool serialization/deserialization for Values format 2021-12-24 13:20:58 +03:00
alesapin
d68d26e4c1 Fix woboq codebrowser 2021-12-24 13:05:09 +03:00
alesapin
1a3cdc3388 Upload build artifact in case of build failures 2021-12-24 12:56:09 +03:00
alesapin
e3d8457a6f Fix PVS 2021-12-24 12:41:01 +03:00
Alexey Milovidov
d1df2af2df Move two tests out of fast test 2021-12-24 12:25:27 +03:00
Alexey Milovidov
f9d3e45e49 Remove strange whitespace 2021-12-24 12:25:27 +03:00
Alexey Milovidov
f6dc07b475 Update test 2021-12-24 12:25:27 +03:00
Alexey Milovidov
fb5b1c3d6a Make tests not depend on subtle changes in math functions 2021-12-24 12:25:27 +03:00
mergify[bot]
da4dc1680a
Merge branch 'master' into add_jepsen_test 2021-12-24 07:31:25 +00:00
Kevin Michel
ffc1fca296
Start/stop servers when listen_host/*_port changes
This allows starting and stopping separately each protocol server
without restarting ClickHouse.

This also allows adding or removing `listen_host` entries, which
start and stops servers for all enabled ports.

When stopping a server, the listening socket is immediately closed
(and available for another server).

Protocols with persistent connections try to wait for any currently
running query to finish before closing the connection, but idle
connection are closed quickly (depending on how often the protocol
is polled).

An extra ProfileEvent is added, `MainConfigLoads`, it is
incremented every time the configuration is reloaded. This helps
when trying to assess whether the new configuration was applied.
2021-12-24 08:26:02 +01:00
mergify[bot]
d4ec469ed1
Merge branch 'master' into query-kind-concurent_restriction 2021-12-24 07:02:00 +00:00
Alexey Milovidov
df8689ce22 Fix test that was dependent on time zone 2021-12-24 03:57:50 +03:00
alexey-milovidov
0e3af2f19a
Merge pull request #33097 from kssenii/clickhouse-local-send-profile-onfo
clickhouse-local send profile info
2021-12-24 02:29:36 +03:00
avogar
47ad4200c9 Fix test 2021-12-23 21:00:22 +03:00
avogar
ce68c54b03 Fix comments, reduce extra copying 2021-12-23 19:47:29 +03:00
avogar
5e5d6609ed Proper cast to bool 2021-12-23 19:47:29 +03:00
avogar
19faf46b68 Improve Bool data type 2021-12-23 19:47:29 +03:00
Raúl Marín
66c0735a38 Check that progress is sent while processing scalar subqueries 2021-12-23 16:14:10 +01:00
Raúl Marín
b71a71d7f5 Test that JSON output statistics include the rows read in scalar subqueries 2021-12-23 16:14:10 +01:00
Raúl Marín
cb22091b33 Merge remote-tracking branch 'blessed/master' into kill_scalar_github 2021-12-23 13:59:33 +01:00
Raúl Marín
d9bcb633de Change perf set_index test to check build index 2021-12-23 13:53:36 +01:00
Raúl Marín
77db850c0b Merge remote-tracking branch 'blessed/master' into libcxx13_take2 2021-12-23 12:42:39 +01:00
Nikolai Kochetov
b84591d17a
Merge pull request #32862 from ClickHouse/fix-mv-result-with-many-chunks
Fix MV query with multiple chunk result.
2021-12-23 14:37:17 +03:00
Kruglov Pavel
a1455c0f2a
Merge pull request #32981 from Avogar/fix-csv-tuples
Fix tuple output in CSV format
2021-12-23 13:27:34 +03:00
kssenii
8cf52918b9 clickhouse local send profile info 2021-12-23 12:37:29 +03:00
Nikolay Degterinsky
826f7cb0f5
Merge pull request #32240 from benbiti/master
Fix unix timestamp Millisecond convert to DateTime64, fractional part calc reversed
2021-12-23 12:11:53 +03:00
Nikita Mikhaylov
768c746fe4
Merge branch 'master' into merging-dev-sum-bug 2021-12-23 11:52:06 +03:00
Nikolay Degterinsky
6757afa052
Merge pull request #32843 from nkolotov/fix_echo_option_not_used_in_batch_mode
Fixed --echo option is not used by clickhouse-client in batch mode with single query
2021-12-23 11:37:02 +03:00
Raúl Marín
88b8fd8b60 Merge remote-tracking branch 'blessed/master' into libcxx13_take2 2021-12-23 09:16:19 +01:00
Kseniia Sumarokova
f0434f21ce
Merge pull request #33039 from kssenii/fix-azure-exception
Fix exception in azure write buffer desctructor
2021-12-23 10:26:40 +03:00
alexey-milovidov
0f8295de98
Merge pull request #33046 from ClickHouse/fix-prefetch-for-lc
Fix preferch for LowCardinality.
2021-12-23 08:56:16 +03:00
alexey-milovidov
26e651eaf4
Merge pull request #32916 from azat/jemalloc-percpu-fix
Disable percpu arena in jemalloc in case of non deterministic CPU count
2021-12-23 08:05:43 +03:00
alexey-milovidov
8c9843caf2
Merge pull request #32982 from azat/http-context-leak
Fix Context leak in case of cancel_http_readonly_queries_on_client_close
2021-12-23 07:58:18 +03:00
alexey-milovidov
476b8266a1
Merge pull request #33065 from ClickHouse/merge-33050
Merge #33050
2021-12-23 07:52:00 +03:00
alexey-milovidov
2a1099812e
Merge pull request #33062 from ClickHouse/merge-33022
Merge #33022
2021-12-23 07:51:26 +03:00
Vitaly Baranov
7660530fcc
Merge pull request #32955 from azat/read-fix
Fix UB in case of unexpected EOF during filling a set from HTTP query
2021-12-23 06:41:14 +03:00
Alexey Milovidov
10d48f1203 Add a test 2021-12-23 02:20:11 +03:00
Alexey Milovidov
5bceffaaef Adapt test 2021-12-23 01:30:56 +03:00
Harry-Lee
846c46ac4b Fix issue #80: union index out of boundary 2021-12-23 01:30:56 +03:00
Kseniia Sumarokova
639c2c1ce7
Merge pull request #32976 from Avogar/fix-hdfs-url-check
Fix hdfs url check
2021-12-22 23:57:49 +03:00
kssenii
182a065c9b Add test 2021-12-22 23:47:16 +03:00
Kseniia Sumarokova
764bb1181f
Merge pull request #33017 from stigsb/table-overrides-drop-add-column-support
Remove the possibility of adding columns with table overrides
2021-12-22 22:30:21 +03:00
Azat Khuzhin
c07012108e tests: fix 01502_jemalloc_percpu_arena with debug binary 2021-12-22 21:06:40 +03:00
Azat Khuzhin
b2d4520870 tests/integration/test_jemalloc_percpu_arena: cover explicit narenas 2021-12-22 21:06:21 +03:00
Azat Khuzhin
c82701b1ef tests/integration/test_jemalloc_percpu_arena: add support of fast-test binary 2021-12-22 21:05:11 +03:00
Azat Khuzhin
ba9588fc27 tests/stateless: add a test with explicit number of jemalloc narenas 2021-12-22 21:05:11 +03:00
Azat Khuzhin
b41db62621 tests: mark 01505_pipeline_executor_UAF as long 2021-12-22 21:05:11 +03:00
Azat Khuzhin
6efa3b3667 Add a test for jemalloc percpu arena with different number of online CPUs 2021-12-22 21:05:11 +03:00
Azat Khuzhin
b28e0dd689 01502_jemalloc_percpu_arena: add a test with MALLOC_CONF=abort_conf:true 2021-12-22 21:05:10 +03:00
Azat Khuzhin
6c7ec9c762 01502_jemalloc_percpu_arena: do not export MALLOC_CONF
Since after #15828 unbundled jemalloc support had been removed.
2021-12-22 21:05:10 +03:00
Azat Khuzhin
a43e423506 tests/01505_pipeline_executor_UAF: disable abort_conf for jemalloc 2021-12-22 21:05:10 +03:00
Raúl Marín
781fe36391 Add some basic tests to read rows with scalar subqueries 2021-12-22 18:55:16 +01:00
Raúl Marín
2470a8d380 Move tests 2021-12-22 18:26:50 +01:00
mergify[bot]
059cd1f708
Merge branch 'master' into add_jepsen_test 2021-12-22 17:04:09 +00:00
tavplubix
c297c2c4c3
Revert "Dictionaries added Date32 type support" 2021-12-22 19:41:52 +03:00
Dmitry Novik
1c83f31e51
Merge pull request #31885 from amosbird/optimizeprojectionmat
Optimize single part projection materialization
2021-12-22 19:36:40 +03:00
Dmitry Novik
5ae3764f4c
Merge pull request #32625 from azat/clickhouse-test-unknown
clickhouse-test: avoid failing with UNKNOWN status in some cases
2021-12-22 19:28:44 +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
alesapin
be8187df09 Fix report upload 2021-12-22 19:16:54 +03:00
Raúl Marín
1d9916eb25 Merge remote-tracking branch 'blessed/master' into kill_scalar_github 2021-12-22 16:42:10 +01:00
Dmitry Novik
d256c3a9ca
Merge pull request #29224 from ClickHouse/fix_IP_conversion
Merging #27914
2021-12-22 18:36:13 +03:00
Kseniia Sumarokova
01f2e4c00d
Merge pull request #33037 from kssenii/fix-s3-empty-file
Fix s3 table function reading empty file
2021-12-22 18:17:29 +03:00
tavplubix
85d49bf557
Merge pull request #33044 from ClickHouse/tavplubix-patch-5
Decrease default timeout for integration test
2021-12-22 17:26:23 +03:00
Nikolay Degterinsky
e1a58d0889
Merge pull request #33021 from DevTeamBK/Issue135
Fix null pointer dereference in low cardinality data
2021-12-22 17:03:23 +03:00
mergify[bot]
04f727e84c
Merge branch 'master' into read-fix 2021-12-22 13:49:04 +00:00
tavplubix
d8fb293d57
Merge pull request #32900 from zzsmdfj/issue/#15182_MaterializeMySQL_support_bit_type
Add support for BIT data type in MaterializedMySQL
2021-12-22 15:58:29 +03:00
Nikolai Kochetov
bb24a494ca Fix preferch for LowCardinality. 2021-12-22 15:26:16 +03:00
tavplubix
8775afc25e
Update pytest.ini 2021-12-22 14:53:40 +03:00
kssenii
11731cde92 Fix test 2021-12-22 13:57:08 +03:00
alesapin
7e714641ac Add newline 2021-12-22 13:46:41 +03:00
alesapin
e63b2f0de8 Merge branch 'master' into add_jepsen_test 2021-12-22 13:30:48 +03:00
alesapin
0a716b9d9a
Merge pull request #33036 from ClickHouse/fix_can_be_tested
Make `can be tested` great again
2021-12-22 13:26:56 +03:00