Commit Graph

23641 Commits

Author SHA1 Message Date
Alexey Milovidov
f7b2b961f7
Merge pull request #44667 from azat/tests/integration/dmesg-fix
Move dmesg dumping out from runner to ci-runner.py
2022-12-29 01:56:34 +03:00
Alexey Milovidov
e524d4bcb1
Merge pull request #44673 from ClickHouse/logical-error-with-join-subquery-union-and-totals
Fix LOGICAL_ERROR for JOIN with subquery, UNION and totals.
2022-12-29 01:56:15 +03:00
Alexey Milovidov
eb9cff33ca
Merge pull request #44669 from ClickHouse/remove-questdb
Remove questdb (it makes a little sense but the test was flaky)
2022-12-29 01:55:55 +03:00
Alexey Milovidov
9854c72e68
Merge pull request #44678 from evillique/fix_any
Fix parsing of ANY operator
2022-12-29 01:55:27 +03:00
Alexey Milovidov
4579067762
Merge pull request #44681 from Avogar/fix-std-exception
Avoid std::out_of_range exception in StorageExecutable
2022-12-29 01:54:51 +03:00
alesapin
94964c44b3 Fix 4 errors in 3 lines 2022-12-28 23:18:58 +01:00
Kruglov Pavel
4eb77efbfd
Skip fasttest 2022-12-28 22:29:36 +01:00
Raúl Marín
5de11979ce
Unify query elapsed time measurements (#43455)
* Unify query elapsed time reporting

* add-test: Make shell tests executable

* Add some tests around query elapsed time

* Style and ubsan
2022-12-28 21:01:41 +01:00
Alexey Milovidov
96b7bf5598 Fix flaky test "01502_long_log_tinylog_deadlock_race" 2022-12-28 20:32:29 +01:00
Raúl Marín
e915ce1e95 Merge remote-tracking branch 'blessed/master' into perf_experiment 2022-12-28 20:15:43 +01:00
alesapin
b0d6d8b904 Remove empty line 2022-12-28 19:50:18 +01:00
Alexey Milovidov
23ea273f73 Edit another test 2022-12-28 19:49:57 +01:00
alesapin
f962468404 Add retries to HTTP requests in ClickHouse test 2022-12-28 19:49:12 +01:00
Alexey Milovidov
edd78da0cb ODBC test: avoid poisoning other tests 2022-12-28 19:45:01 +01:00
alesapin
6d27e2ddbc
Merge pull request #44606 from ClickHouse/faster-startup-bc-check
Faster server startup after stress test
2022-12-28 19:41:45 +01:00
Alexey Milovidov
a9af75cdb2 Fix flaky test "git import" 2022-12-28 19:35:23 +01:00
alesapin
3ac0df9d7a Make test less stressful 2022-12-28 19:30:49 +01:00
Alexey Milovidov
0263499b0c
Merge pull request #44666 from azat/tests/integration/kazoo-stop
tests/integration: add missing kazoo client termination
2022-12-28 21:20:14 +03:00
avogar
f1191bbbc6 Input/ouptut avro bool type as ClickHouse bool type 2022-12-28 17:38:58 +00:00
Han Fei
cd0624e846
Merge pull request #44413 from save-my-heart/fix_explain_insert_query
fix explain ast insert with data
2022-12-28 18:08:49 +01:00
Nikolai Kochetov
f6a0d12567
Update 02516_join_with_totals_and_subquery_bug.sql 2022-12-28 18:08:03 +01:00
Alexander Gololobov
6ebac0e018 A test for non-bool column in prewhere 2022-12-28 18:07:36 +01:00
Alexander Gololobov
a6249a3d7a Check result size 2022-12-28 18:07:36 +01:00
Alexander Gololobov
b21e4de6fa Read _part_offset along with newly added column that has only default value 2022-12-28 18:07:35 +01:00
Alexander Gololobov
3d6aa4738f Test for proper filtering after intermediate PREWHERE steps 2022-12-28 18:07:35 +01:00
Alexander Gololobov
59a9fe0d92 Test specifically with wide parts 2022-12-28 18:07:35 +01:00
Alexander Gololobov
feb5c8f278 Fixed test where UInt8 column value was replaced with 0 or 1 because of filtering 2022-12-28 18:07:35 +01:00
Alexander Gololobov
8b1eb2d7e0 Test colum with default value 2022-12-28 18:07:35 +01:00
Alexander Gololobov
1eb24e13b3 Inrease step to speed up 02473_multistep_prewhere test 2022-12-28 18:07:35 +01:00
Alexander Gololobov
0379ab6a52 Cover more cases 02473_multistep_prewhere test 2022-12-28 18:07:35 +01:00
Alexander Gololobov
b75ea86583 Test various combinations of deleted and policy-filtered rows 2022-12-28 18:07:35 +01:00
Alexander Gololobov
36135ab552 Test different block sizes to trigger different prewhere filtering code paths 2022-12-28 18:07:35 +01:00
Azat Khuzhin
31a88d4eae Fix PREWHERE with row-level filters (when row filter is always true/false)
In case of row-level filters optimized out, i.e. converted to
always true/false, it is possible for MergeTreeRangeReader to reuse
incorrect statistics for the filter (countBytesInResultFilter()), and
because of this it simply does not apply other filters, since it assume
that this filter does not need to filter anything.

Fixes: #40956
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-12-28 18:07:35 +01:00
Alexander Gololobov
bf64e3eaca Test with different index_granularity to hit different PREWHERE code paths 2022-12-28 18:07:35 +01:00
Alexander Gololobov
6730ecc2a3 A test to repro "Invalid number of rows in Chunk" 2022-12-28 18:07:35 +01:00
Nikolay Degterinsky
a8c9851110
Merge pull request #44639 from evillique/fix_parser
Fix lambdas parsing
2022-12-28 17:39:22 +01:00
Nikolay Degterinsky
b9d377f7fc
Merge branch 'master' into fix_any 2022-12-28 17:33:44 +01:00
avogar
80ef2c6edc Avoid std::out_of_range exception in StorageExecutable 2022-12-28 16:21:58 +00:00
vdimir
82e664baad
Correct function result type in CustomizeFunctionsPass 2022-12-28 16:19:27 +00:00
Anton Popov
80a18df09f
Merge pull request #44642 from CurtizJ/fix-async-insert-test
Fix test `02015_async_inserts_2`
2022-12-28 16:11:38 +01:00
Azat Khuzhin
03f80bae90 Move dmesg dumping out from runner to ci-runner.py
runner is used by developers to run tests, while ci-runner.py is used
only by CI scripts, and to avoid requiring CAP_SYSLOG for manual dmesg
clear/dump had been moved.

Also for manual runs this can be done manually.

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-12-28 15:47:46 +01:00
Vitaly Baranov
8a2fbbe88c
Merge pull request #43947 from azat/backups/dedup
RFC: Add ability to disable deduplication for BACKUP
2022-12-28 15:24:53 +01:00
Alexey Milovidov
b327c6766a Fix test 2022-12-28 15:22:25 +01:00
Nikolay Degterinsky
50b0cb1015 Fix ANY parsing 2022-12-28 14:08:09 +00:00
Alexey Milovidov
a710c27cdf
Merge branch 'master' into fix-comp-setting 2022-12-28 16:44:16 +03:00
Alexey Milovidov
ab719f4432
Merge pull request #44358 from ClickHouse/fix-30975
Fix support for complex parameters of parametric aggregate functions, #30975
2022-12-28 16:38:41 +03:00
Alexey Milovidov
1b4121459d
Merge pull request #44645 from ClickHouse/keeper-test-fix
Fix flaky test `test_keeper_multinode_simple`
2022-12-28 16:38:17 +03:00
Alexey Milovidov
c055a48ea3 Merge branch 'master' into add-test-36038 2022-12-28 14:35:54 +01:00
Alexey Milovidov
9f74843b17
Merge pull request #44660 from vitlibar/fix-flaky-test_backup_restore_on_cluster
Fix flaky test test_backup_restore_on_cluster
2022-12-28 16:33:36 +03:00
alesapin
3eda778707 Better 2022-12-28 14:29:27 +01:00
Nikolai Kochetov
97700557e2 Update test. 2022-12-28 13:11:49 +00:00
Nikolai Kochetov
21e93cd41d Fix LOGICAL_ERROR for JOIN with subquery, UNION and totals. 2022-12-28 13:00:32 +00:00
Kruglov Pavel
d42d9f70c8
Merge pull request #44225 from Avogar/fix-datetime-timezone
Forbid paths in timezone names
2022-12-28 13:57:39 +01:00
Pradeep Chhetri
d36f2d7ad9 Fix minor typo: replace validate_bugix_check with validate_bugfix_check
Signed-off-by: Pradeep Chhetri <pradeepchhetri4444@gmail.com>
2022-12-28 20:53:32 +08:00
Alexey Milovidov
79f2e747e4 Remove QuestDB (flaky test) 2022-12-28 12:42:14 +01:00
Azat Khuzhin
bc6adc88c8 tests/integration: add workaround for a bug in kazoo driver
Refs: python-zk/kazoo#688
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-12-28 10:52:49 +01:00
Vitaly Baranov
b211dff013 Increase the create table timeout in test "test_backup_restore_on_cluster". 2022-12-28 00:17:19 +01:00
Nikita Mikhaylov
9d10550b66
Merge branch 'master' into keeper-test-fix 2022-12-27 22:51:47 +01:00
Alexey Milovidov
5d6266c33e
Merge branch 'master' into fix_parser 2022-12-28 00:45:53 +03:00
Alexey Milovidov
b08edadc7a Fix test 2022-12-27 22:36:18 +01:00
Alexey Milovidov
55e2607ccf Merge branch 'master' into add-test-36038 2022-12-27 22:32:39 +01:00
Alexey Milovidov
14d7266e70
Merge branch 'master' into fix-30975 2022-12-27 23:21:10 +03:00
Alexey Milovidov
2892d447d4
Merge pull request #44626 from ClickHouse/alexey-milovidov-patch-5
Sometimes spot instances fail more than 20 times in a row
2022-12-27 23:20:05 +03:00
Alexey Milovidov
135a32c606
Merge branch 'master' into faster-startup-bc-check 2022-12-27 23:17:24 +03:00
avogar
5c42b78766 Forbid paths in timezones in cctz lib 2022-12-27 17:52:38 +00:00
Kruglov Pavel
05c37365df
Merge branch 'master' into fix-datetime-timezone 2022-12-27 18:46:57 +01:00
Nikolay Degterinsky
29371745bd Fix lambdas parsing 2022-12-27 17:42:38 +00:00
Kruglov Pavel
819e7a3008
Merge pull request #44550 from Avogar/better-json-tuples-to-arrays-inference
Improve inferring arrays with nulls in JSON formats
2022-12-27 18:22:13 +01:00
Nikita Mikhaylov
00ecf6dd05 Better 2022-12-27 17:04:47 +00:00
Nikita Mikhaylov
ce6264b684 Done 2022-12-27 17:03:57 +00:00
Anton Popov
1f7a4a94ff fix test 02015_async_inserts_2 2022-12-27 17:01:30 +00:00
Azat Khuzhin
e1ad5cee7e tests/integration: add missing kazoo client termination
pytest play games with logging output [1].

  [1]: https://github.com/pytest-dev/pytest/issues/5502

But this does not actually affect ClickHouse tests, the only reason is
that the kazoo client is not stopped correctly without calling
kazoo.client.KazooClient.stop(), and that's why you can see the
following messages:

<details>

    test_storage_rabbitmq/test.py::test_rabbitmq_big_message --- Logging error ---
    Traceback (most recent call last):
      File "/usr/local/lib/python3.8/dist-packages/kazoo/protocol/connection.py", line 179, in _socket_error_handling
        yield
      File "/usr/local/lib/python3.8/dist-packages/kazoo/protocol/connection.py", line 659, in _connect
        self._socket = self.handler.create_connection(
      File "/usr/local/lib/python3.8/dist-packages/kazoo/handlers/threading.py", line 178, in create_connection
        return utils.create_tcp_connection(socket, *args, **kwargs)
      File "/usr/local/lib/python3.8/dist-packages/kazoo/handlers/utils.py", line 265, in create_tcp_connection
        sock = module.create_connection(address, timeout_at)
      File "/usr/lib/python3.8/socket.py", line 808, in create_connection
        raise err
      File "/usr/lib/python3.8/socket.py", line 796, in create_connection
        sock.connect(sa)
    socket.timeout: timed out

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/usr/local/lib/python3.8/dist-packages/kazoo/protocol/connection.py", line 579, in _connect_attempt
        read_timeout, connect_timeout = self._connect(host, hostip, port)
      File "/usr/local/lib/python3.8/dist-packages/kazoo/protocol/connection.py", line 659, in _connect
        self._socket = self.handler.create_connection(
      File "/usr/lib/python3.8/contextlib.py", line 131, in __exit__
        self.gen.throw(type, value, traceback)
      File "/usr/local/lib/python3.8/dist-packages/kazoo/protocol/connection.py", line 182, in _socket_error_handling
        raise ConnectionDropped("socket connection error: %s" % (err,))
    kazoo.exceptions.ConnectionDropped: socket connection error: None

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/usr/lib/python3.8/logging/__init__.py", line 1088, in emit
        stream.write(msg + self.terminator)
    ValueError: I/O operation on closed file.
    Call stack:
      File "/usr/lib/python3.8/threading.py", line 890, in _bootstrap
        self._bootstrap_inner()
      File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
        self.run()
      File "/usr/lib/python3.8/threading.py", line 870, in run
        self._target(*self._args, **self._kwargs)
      File "/usr/local/lib/python3.8/dist-packages/kazoo/protocol/connection.py", line 512, in zk_loop
        if retry(self._connect_loop, retry) is STOP_CONNECTING:
      File "/usr/local/lib/python3.8/dist-packages/kazoo/retry.py", line 126, in __call__
        return func(*args, **kwargs)
      File "/usr/local/lib/python3.8/dist-packages/kazoo/protocol/connection.py", line 552, in _connect_loop
        status = self._connect_attempt(host, hostip, port, retry)
      File "/usr/local/lib/python3.8/dist-packages/kazoo/protocol/connection.py", line 622, in _connect_attempt
        self.logger.warning('Connection dropped: %s', e)
    Message: 'Connection dropped: %s'
    Arguments: (ConnectionDropped('socket connection error: None'),)

</details>

Which eventually leads to incorrectly parsed report.

This patch is an addition to the `logging.raiseExceptions=False` - #44618

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-12-27 17:01:06 +01:00
Kruglov Pavel
ac162a2c49
Merge pull request #44522 from Avogar/zero-numbers
Infer numbers starting from zero as strings in TSV
2022-12-27 17:00:10 +01:00
Kruglov Pavel
f95eabc192
Merge pull request #44469 from Avogar/low-card-if
Don't execute and/or/if/multiIf on LowCardinality dictionary
2022-12-27 16:59:42 +01:00
Kruglov Pavel
6dea7336f7
Merge pull request #44405 from Avogar/fix-parquet-orc
Fix reading columns that are not presented in input data in Parquet/ORC formats
2022-12-27 16:58:35 +01:00
Kruglov Pavel
f582cb4c9f
Merge branch 'master' into fix-comp-setting 2022-12-27 16:53:24 +01:00
Kruglov Pavel
e981b2e78b
Merge pull request #43813 from Avogar/fix-sum-if
Better handling of NULL in aggregate combinators, fix possible segfault/logical error
2022-12-27 16:50:48 +01:00
alesapin
3a7f26ff3a Split test into two 2022-12-27 16:15:23 +01:00
Azat Khuzhin
c9c590071d Add ability to disable deduplication for BACKUP
Right now BACKUP omit similar files, and will not allow to use this
backup as a regular table, and usually those similar files are quite
small (i.e. columns.txt).

So by using `BACKUP TO S3() deduplicate_files=0` you will be possible to
use `ATTACH TABLE` directly from S3.

P.S. right now it is possible only for the table with one part, since,
usually, there is nothing to deduplicate (if the columns are different).

v2: Add deduplicate_files into metadata
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-12-27 15:56:06 +01:00
Alexey Milovidov
611bb44288
Merge branch 'master' into fix-30975 2022-12-27 17:15:12 +03:00
Alexey Milovidov
c26ce8a629
Merge pull request #44338 from ClickHouse/mysql-compat-test
Add a test for PowerBI
2022-12-27 17:12:51 +03:00
Mikhail f. Shiryaev
93af1f3f7c
Restart failing workflows up to 30 times 2022-12-27 14:50:37 +01:00
Mikhail f. Shiryaev
d6ebb5fca8
Merge pull request #44399 from ClickHouse/checkout-action
Implement a custom central checkout action
2022-12-27 14:15:22 +01:00
alesapin
560223ac19 Merge branch 'fix-restart-after-quorum-insert' of github.com:CurtizJ/ClickHouse into CurtizJ-fix-restart-after-quorum-insert 2022-12-27 13:48:55 +01:00
Alexey Milovidov
464a513f0e
Merge pull request #44615 from ClickHouse/projection-grouping-sets
Disable projections in presense of any grouping sets, including WITH ROLLUP, WITH CUBE and WITH TOTALS
2022-12-27 15:31:03 +03:00
Alexey Milovidov
43376af340
Merge branch 'master' into alexey-milovidov-patch-5 2022-12-27 15:14:37 +03:00
Alexey Milovidov
05c27f4e15
Merge pull request #44603 from ClickHouse/runlog
Rename `runlog.log` to `run.log` in tests
2022-12-27 15:14:05 +03:00
Alexey Milovidov
2c5485b86e
Merge pull request #44617 from ClickHouse/fix-create_drop_replicated_db_stress
Fix test `01111_create_drop_replicated_db_stress`
2022-12-27 15:12:54 +03:00
Alexey Milovidov
cb0a91d865
Sometimes spot instances fail more than 20 times in a row 2022-12-27 15:05:11 +03:00
Alexey Milovidov
4e53ddb2e1
Merge pull request #44340 from ClickHouse/add-test-29386
Add a test for #29386
2022-12-27 14:58:59 +03:00
Alexey Milovidov
55131f7ae8
Merge pull request #44341 from ClickHouse/add-test-22929
Add a test for #22929
2022-12-27 14:58:28 +03:00
Alexey Milovidov
1b21cc018e
Merge pull request #44342 from ClickHouse/add-test-29883
Add a test for #29883
2022-12-27 14:55:14 +03:00
Alexey Milovidov
31348a0c2b
Merge pull request #44355 from ClickHouse/add-test-22160
Add a test for #22160
2022-12-27 14:53:46 +03:00
Alexey Milovidov
21d9e7ebc3
Merge pull request #44360 from ClickHouse/add-test-34724
Add a test for #34724
2022-12-27 14:53:34 +03:00
alesapin
93b9d0a8a6
Revert strange change 2022-12-27 12:52:03 +01:00
Alexey Milovidov
58d849d732
Merge pull request #44356 from ClickHouse/add-test-34708
Add a test for #34708
2022-12-27 14:48:58 +03:00
Alexey Milovidov
8d23d2f2f2
Merge pull request #44357 from ClickHouse/add-test-30679
Add a test for #30679
2022-12-27 14:46:31 +03:00
Alexey Milovidov
7e447592b1
Merge pull request #44618 from azat/tests/integration/pytest-logging-fix
tests/integration: suppress exceptions during logging (due to pytest)
2022-12-27 14:33:37 +03:00
Alexey Milovidov
79d43c836a
Merge pull request #44572 from ClickHouse/fix-hdfs-test
Fix HDFS test
2022-12-27 14:31:00 +03:00
Alexey Milovidov
41fc65b47b
Merge pull request #44573 from ClickHouse/fix-distributed-queries-stress
Fix test_distributed_queries_stress
2022-12-27 14:30:28 +03:00