Commit Graph

119632 Commits

Author SHA1 Message Date
timfursov
f3bfc6e5cf
Update with.md
I propose changes to make it clear that CTEs do not guarantee the same results in all places they are used, since the query will be re-executed in each place they are used.
2023-07-18 11:40:57 +01:00
Nikolai Kochetov
83e9ec117c
Merge pull request #51481 from ClickHouse/fix-the-same-names-for-lift-up-functions-before-sorting
Fix optimization to move functions before sorting.
2023-07-18 12:34:51 +02:00
Azat Khuzhin
e9b7a84aa1 Fix network manager for integration tests
Sometimes you may get:

    >           raise subprocess.CalledProcessError(exit_code, cmd)
    E           subprocess.CalledProcessError: Command '['iptables', '--wait', '-D', 'DOCKER-USER', '-p', 'tcp', '-s', '172.16.2.3', '-d', '172.16.2.2', '-j', 'DROP']' returned non-zero exit status 137.

And only sometimes you may get the reason:

    OCI runtime exec failed: exec failed: cannot exec in a stopped container: unknown

So this means that container for iptables does not exists anymore, and
the reason is the timeout. And the fact that container_exit_timeout was
equal to container_expire_timeout and was 120.

From the docker logs:

    time="2023-07-16T15:46:52.513673446Z" level=debug msg="form data: {\"AttachStderr\":false,\"AttachStdin\":false,\"AttachStdout\":false,\"Cmd\":[\"sleep\",\"120\"],\"HostConfig\":{\"AutoRemove\":true,\"NetworkMode\":\"host\"},\"Image\":\"clickhouse/integration-helper:latest\",\"NetworkDisabled\":false,\"OpenStdin\":false,\"StdinOnce\":false,\"Tty\":false}"
    time="2023-07-16T15:48:57.611857183Z" level=debug msg="form data: {\"AttachStderr\":false,\"AttachStdin\":false,\"AttachStdout\":false,\"Cmd\":[\"sleep\",\"120\"],\"HostConfig\":{\"AutoRemove\":true,\"NetworkMode\":\"host\"},\"Image\":\"clickhouse/integration-helper:latest\",\"NetworkDisabled\":false,\"OpenStdin\":false,\"StdinOnce\":false,\"Tty\":false}"

And then pytest will try to execute the iptables command:

    time="2023-07-16T15:50:57.698705244Z" level=debug msg="starting exec command 860920ab2aa07e8d285050f200ac92423a3cf8ec3fb2f57683541e62cf6bc20e in container 66d6c96671b5e987345290ddd260727d96b99789b512d40f333f6263f42fd2f1"

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-07-18 12:17:26 +02:00
Nikolai Kochetov
008238be71
Merge pull request #52235 from ClickHouse/vdimir/02273_no_upgrade_check
Enable no-upgrade-check for 02273_full_sort_join
2023-07-18 12:16:54 +02:00
robot-ch-test-poll2
d816d8b92f
Merge pull request #52198 from azat/qemu-compressor
Fix self extracting binaries under qemu linux-user (qemu-$ARCH-static)
2023-07-18 12:02:47 +02:00
vdimir
dc55c8ed8e
Enable no-upgrade-check for 02273_full_sort_join 2023-07-18 09:54:33 +00:00
Mikhail Koviazin
4f7fd69883
Added function firstLine to extract the first line from a multiline string
Fixes #51172
2023-07-18 12:18:26 +03:00
Mikhail Koviazin
562ea03ce7
FunctionsURL.h to StringHelpers.h and move out of URL/ 2023-07-18 11:16:52 +03:00
Amos Bird
c782689c2d
added to compatibility setting 2023-07-18 09:50:44 +08:00
Amos Bird
ef521fd6ce
Fix more tests 2023-07-18 09:50:43 +08:00
Amos Bird
796a92d9ab
Fix tests 2023-07-18 09:50:42 +08:00
Amos Bird
d8dd480cd7
Disable implicit projections by default 2023-07-18 09:50:41 +08:00
Alexey Milovidov
8a4f939e1a Slightly better diagnostics in tests 2023-07-18 02:37:50 +02:00
Alexey Milovidov
182d8b8f08 Remove useless header 2023-07-18 02:37:30 +02:00
Alexey Milovidov
5637c419bd
Merge pull request #52124 from ClickHouse/update-cctz-5
Update CCTZ
2023-07-18 03:29:52 +03:00
Alexey Milovidov
203ec1d230
Merge branch 'master' into fix-group-array-moving 2023-07-18 03:29:14 +03:00
Alexey Milovidov
218a1c7eb8
Merge branch 'master' into fix-has-token 2023-07-18 03:05:28 +03:00
Alexey Milovidov
f4e095b502
Merge pull request #52149 from ucasfl/array_concat_agg
Add array_concat_agg for compatibility with BigQuery
2023-07-18 03:03:27 +03:00
Alexey Milovidov
272dadc637
Merge branch 'master' into fix-race-in-multiplexed-connections 2023-07-18 01:20:09 +03:00
Val Doroshchuk
38efdd2063
Merge branch 'master' into parse-ddl 2023-07-17 23:00:01 +02:00
Robert Schulze
46e03432a9
Merge pull request #52196 from rschu1ze/simplify-job-limiting
CMake: Simplify job limiting
2023-07-17 22:43:40 +02:00
robot-clickhouse-ci-1
2b1be4b89d
Merge pull request #52063 from valbok/disconnect-on-dtor
MySQL: Delay disconnection of mysqlxx::Pool::Entry until refcount==0
2023-07-17 22:29:58 +02:00
Alexey Milovidov
4a4fd7f29c
Merge branch 'master' into fix-assertions-4 2023-07-17 23:24:44 +03:00
Alexey Milovidov
da29166f08
Merge branch 'master' into fix-unexpected-ast-set 2023-07-17 23:17:55 +03:00
Alexey Milovidov
eb8629db51
Update 02815_logical_error_cannot_get_column_name_of_set.sql 2023-07-17 23:17:47 +03:00
Alexey Milovidov
4b8aa3a012
Merge branch 'master' into fix-crash-query-analysis 2023-07-17 23:14:46 +03:00
Alexey Milovidov
4884022fda
Merge branch 'master' into zvonand-issue-49290 2023-07-17 23:03:50 +03:00
Nikolai Kochetov
a955d5621d Rename constants in KeyCondition analysis. 2023-07-17 18:53:12 +00:00
Alexander Sapin
2db14e36b4 Fix build 2023-07-17 19:15:07 +02:00
Kruglov Pavel
d3d0f101f7
Merge branch 'master' into full-filename-placeholder 2023-07-17 19:14:10 +02:00
Robert Schulze
1dbc88630d
Cosmetics 2023-07-17 17:10:08 +00:00
Alexander Sapin
bfbf9f292e Fix 2023-07-17 19:03:04 +02:00
Alexander Sapin
b70349852c Better message on timeout and fix test 2023-07-17 19:02:29 +02:00
Alexey Milovidov
9f45513acf
Merge pull request #52173 from ClickHouse/fix-slow-test-02317_distinct_in_order_optimization
Fix slow test `02317_distinct_in_order_optimization`
2023-07-17 19:57:41 +03:00
Alexander Sapin
918e3f7712 Fix flaky test 2023-07-17 18:41:12 +02:00
Kruglov Pavel
2793305a71
Merge pull request #51825 from ucasfl/schema
Fix use_structure_from_insertion_table_in_table_functions does not work with materialized and alias columns
2023-07-17 18:25:54 +02:00
Nikita Mikhaylov
d4c8383627
Merge pull request #52216 from ClickHouse/revert-51736-oss-fuzz-fixes
Revert "Fixed several issues found by OSS-Fuzz"
2023-07-17 17:19:18 +02:00
avogar
2abd69d921 Fix data race on Connection::setAsyncCallback 2023-07-17 15:14:54 +00:00
Antonio Andelic
bfe349a7e4
Merge pull request #52189 from ClickHouse/fix-test_multiple_disks
Fix `test_multiple_disks/test.py::test_start_stop_moves`
2023-07-17 16:28:02 +02:00
Nikita Mikhaylov
2a2ebb1f31 Bump 2023-07-17 14:26:11 +00:00
Antonio Andelic
51f0089457
Merge branch 'master' into fix-test_multiple_disks 2023-07-17 16:25:06 +02:00
vdimir
5de1cfee7d
Merge pull request #51735 from arenadata/ADQM-976 2023-07-17 16:24:11 +02:00
Nikita Mikhaylov
9a30aaa9aa
Revert "Fixed several issues found by OSS-Fuzz" 2023-07-17 16:14:58 +02:00
Alexander Sapin
2ad1109dbd Avoid zero copy replication more agressively 2023-07-17 16:03:39 +02:00
Dmitry Novik
fc05187e8a Add dependencies to FinishCheck 2023-07-17 13:50:21 +00:00
Robert Schulze
8f8cb5eb82
Update cmake/limit_jobs.cmake
Co-authored-by: János Benjamin Antal <antaljanosbenjamin@users.noreply.github.com>
2023-07-17 15:48:12 +02:00
Dmitry Novik
dd74ce3e1c Add integration tests check with analyzer to master 2023-07-17 13:44:52 +00:00
Andrey Zvonov
d339c22a2f
Merge branch 'master' into zvonand-issue-49290 2023-07-17 16:43:15 +03:00
Val Doroshchuk
4da0782e55 MaterializedMySQL: Add tests to parse db and table names from DDL 2023-07-17 15:01:06 +02:00
Antonio Andelic
db1b172770
Merge pull request #52201 from ClickHouse/fix-flaky-checks
Fix  `Integration tests flaky check (asan)`
2023-07-17 14:24:05 +02:00