Commit Graph

81301 Commits

Author SHA1 Message Date
alexey-milovidov
2f6112bf2e
Merge pull request #33662 from azat/fix-01814_distributed_push_down_limit
Fix 01814_distributed_push_down_limit flakiness
2022-01-15 21:57:10 +03:00
Azat Khuzhin
16adcc1666 Reduce memory usage for parsing collections (by using move ctor)
In case you pass array in VALUES section (ValuesBlockInputFormat), it
will be copied after it had been created.
This is not significant if array is small, however if you have huge
enough array, then this can become significant (especially for array of
bool, since for each element will be used Field anyway, and it's size is
56 byte).

Here is a simple reproducer:

    $ curl -sS 'http://127.1:8123/?input_format_values_deduce_templates_of_expressions=0' -d@- <<<"insert into function null('_ Int') values (length([0,$(yes 1, | head -n2000000 | tr -d '\n')1]))"

But note, that there is lots of work (evalute constant expressions from #6781)
after parsing collection, and so total memory usage for query does not
changed a lot (hence - no test).

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-01-15 21:13:05 +03:00
Mikhail f. Shiryaev
91caf07b20
Apply black to workflow_approve_rerun_lambda 2022-01-15 18:54:58 +01:00
Mikhail f. Shiryaev
4c7a8abd20
Add PullRequestCI to NEED_RERUN_WORKFLOWS 2022-01-15 18:53:37 +01:00
alexey-milovidov
0c4cc379ed
Merge pull request #33573 from jahilliard/patch-1
Added Superwall to adopters list
2022-01-15 20:38:09 +03:00
alexey-milovidov
3287bc724d
Update adopters.md 2022-01-15 20:37:31 +03:00
mergify[bot]
17f17c13f5
Merge branch 'master' into fix-mongo2-compose 2022-01-15 13:50:03 +00:00
Maksim Kita
db040c3c1b
Merge pull request #33661 from amosbird/arrowthrift
Properly separate thrift-cmake from arrow-cmake
2022-01-15 14:34:20 +01:00
Maksim Kita
998b330507
Merge pull request #33658 from den-crane/tests/issue_33592
test for #33592
2022-01-15 14:31:21 +01:00
Maksim Kita
8aed06c922
Merge pull request #33663 from amosbird/addmyself
Add amosbird to trusted user.
2022-01-15 14:10:37 +01:00
Amos Bird
4da2a660ec
Add amosbird to trusted user. 2022-01-15 20:23:55 +08:00
Azat Khuzhin
31a6532f01 Fix 01814_distributed_push_down_limit flakiness
Before it was possible that the query was already cancelled, and so you
will get ExceptionWhileProcessing and QueryFinish:

    ┌─query───────────────────────────────────────────────────────────────────┬─query_id─────────────────────────────┬─read_rows─┬─type─────────────────────┐
    │ SELECT `key` FROM `test_qvcjdo`.`data_01814` GROUP BY `key` LIMIT 0, 10 │ 2d39bfd6-f0e7-404a-9990-7703f7a4ec3a │        40 │ QueryFinish              │
    │ SELECT `key` FROM `test_qvcjdo`.`data_01814` GROUP BY `key` LIMIT 0, 10 │ d930bf54-e965-42fd-9d48-5e54a588187a │        40 │ QueryFinish              │
    │ SELECT `key` FROM `test_qvcjdo`.`data_01814` GROUP BY `key` LIMIT 0, 10 │ d930bf54-e965-42fd-9d48-5e54a588187a │        40 │ ExceptionWhileProcessing │
    └─────────────────────────────────────────────────────────────────────────┴──────────────────────────────────────┴───────────┴──────────────────────────┘

And so you will got more then two rows.

CI: https://s3.amazonaws.com/clickhouse-test-reports/33660/a4e8e61d57eab14116983a340c65e5e2d7039ed5/stateless_tests__release__wide_parts_enabled__actions_.html
2022-01-15 15:04:24 +03:00
mergify[bot]
db0c48d70d
Merge branch 'master' into fix-block-perf-context-description 2022-01-15 12:02:17 +00:00
mergify[bot]
0535e0e823
Merge branch 'master' into arrowthrift 2022-01-15 09:45:58 +00:00
Amos Bird
011646491d
Properly separate thrift-cmake from arrow-cmake. 2022-01-15 13:50:58 +08:00
Alexey Milovidov
a4e8e61d57 Update "gosu" version 2022-01-15 02:59:28 +03:00
alexey-milovidov
1e8e21570c
Merge pull request #33625 from ClickHouse/better_integration_tests
Fix two flaky integration tests
2022-01-15 02:32:54 +03:00
alexey-milovidov
c3972f000d
Merge pull request #33614 from ClickHouse/safe-names-in-blog
Use safe page URL for a blog post
2022-01-15 02:29:37 +03:00
Denny Crane
b8171eb755 test for #33592 2022-01-14 18:08:03 -04:00
mergify[bot]
4ffc3bb589
Merge branch 'master' into fix-mongo2-compose 2022-01-14 18:36:37 +00:00
mergify[bot]
f877ae9539
Merge branch 'master' into fix-block-perf-context-description 2022-01-14 18:10:15 +00:00
Kruglov Pavel
e2df17ef5c
Merge pull request #33565 from Avogar/format-by-extention
Detect format by file name in file/hdfs/s3/url table functions
2022-01-14 21:01:59 +03:00
alesapin
436ad63958 More retries 2022-01-14 20:05:55 +03:00
Sergei Trifonov
f70c6320cf use std::string_view instead of raw pointers 2022-01-14 18:41:41 +03:00
Mikhail f. Shiryaev
b72e7db223
Merge pull request #33635 from ClickHouse/docker-etc-hosts
Remove broken editing of /etc/hosts
2022-01-14 16:39:15 +01:00
Kruglov Pavel
d2e9f37bee
Merge branch 'master' into format-by-extention 2022-01-14 18:36:23 +03:00
Kruglov Pavel
6945a7fd4a
Merge pull request #33641 from Avogar/fix-s3-tests
Fix s3 integration tests
2022-01-14 18:35:00 +03:00
avogar
b127356e93 Fix s3 integration tests 2022-01-14 18:34:22 +03:00
Kruglov Pavel
4ed81c8bc8
Merge pull request #33629 from Avogar/fix-parquet-test
Fix test 00900_long_parquet_load
2022-01-14 18:29:37 +03:00
Kruglov Pavel
5d3f78f773
Update 02165_auto_format_by_file_extension.sh 2022-01-14 18:05:56 +03:00
Vladimir C
fccdb6583c
Merge pull request #33638 from ekonkov/patch-1 2022-01-14 18:02:49 +03:00
Eugene Konkov
dfe87e3541
fix typo 2022-01-14 17:52:10 +03:00
Mikhail f. Shiryaev
fdb88b75ec
Don't build integration tests on arm64 yet 2022-01-14 15:48:43 +01:00
avogar
3d3ccf8c8f Fix test 02165_auto_format_by_file_extension 2022-01-14 17:47:11 +03:00
avogar
817a314263 Fix tests and style 2022-01-14 17:46:24 +03:00
Mikhail f. Shiryaev
73f06421b1
Use automatic architecture for docker repo 2022-01-14 15:03:43 +01:00
Mikhail f. Shiryaev
97e4151aff
Remove broken editing of /etc/hosts 2022-01-14 14:46:14 +01:00
Kruglov Pavel
f3359b4698
Merge pull request #33633 from Avogar/error-codes
Fix error codes order
2022-01-14 16:44:43 +03:00
avogar
eeec8c6c11 Fix error codes order 2022-01-14 16:36:12 +03:00
avogar
8884c4a3fe Fix tests and build 2022-01-14 16:27:57 +03:00
alesapin
28cafdc1a2
Merge pull request #33626 from ClickHouse/move_to_22
Update version to 22.1 not 21.13
2022-01-14 16:19:25 +03:00
Yatsishin Ilya
917ddcd4af better test 2022-01-14 13:08:31 +00:00
Kruglov Pavel
d54a430d9c
Merge pull request #33566 from Avogar/fix-avro
Fix segfault in Avro
2022-01-14 16:01:56 +03:00
Yatsishin Ilya
2fe8f6c60b Fix ports allocated for mongo2 that is w/o creds 2022-01-14 13:00:38 +00:00
avogar
158ba8366d Fix test 00900_long_parquet_load 2022-01-14 15:57:36 +03:00
IlyaTsoi
7a08e1c0c4
Update LDAPClient.cpp
Change volume of reserved memory for variable
2022-01-14 15:29:57 +03:00
Vitaly Baranov
f818baf8f3
Update src/Access/LDAPClient.cpp
Co-authored-by: Denis Glazachev <traceon@users.noreply.github.com>
2022-01-14 19:17:14 +07:00
Vitaly Baranov
7084099958
Update src/Access/LDAPAccessStorage.cpp
Co-authored-by: Denis Glazachev <traceon@users.noreply.github.com>
2022-01-14 19:16:10 +07:00
Sergei Trifonov
d36f2bf66b do not construct std::string if there is no error 2022-01-14 15:15:02 +03:00
alesapin
d7a7926610 Update version to 22.1 not 21.13 2022-01-14 15:10:45 +03:00