Commit Graph

82460 Commits

Author SHA1 Message Date
mergify[bot]
260942e0f0
Merge branch 'master' into hlee-issue-7334 2022-01-27 14:30:13 +00:00
Nikolay Degterinsky
c5ca5b608e
Merge pull request #33314 from evillique/classification
Merge functions for text classification
2022-01-27 17:15:08 +03:00
Amos Bird
faee95b897
Make ORDER BY tuple almost as fast as ORDER BY columns
We have special optimizations for multiple column ORDER BY: https://github.com/ClickHouse/ClickHouse/pull/10831 . It's beneficial to also apply to tuple columns.

Before:

select * from numbers(300000000) order by (1 - number , number + 1 , number) limit 10;
2.613 sec.

After:

select * from numbers(300000000) order by (1 - number , number + 1 , number) limit 10;
0.755 sec

No tuple:

select * from numbers(300000000) order by 1 - number , number + 1 , number limit 10;
0.755 sec
2022-01-27 21:42:08 +08:00
vahid-sohrabloo
50fb1da2fa
add chconn to Client Libraries 2022-01-27 14:28:04 +01:00
mergify[bot]
ad146a67ff
Merge branch 'master' into _shard_num 2022-01-27 13:11:42 +00:00
Azat Khuzhin
e04b862673 Add echo for 01570_aggregator_combinator_simple_state
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-01-27 15:24:17 +03:00
mergify[bot]
eb1bf824be
Merge branch 'master' into fix-mismatched-columns 2022-01-27 12:23:48 +00:00
Azat Khuzhin
4e4e70ec6e Fix leak in SimpleState function (due to recrusive reference)
CI reports [1]:

    Indirect leak of 648 byte(s) in 9 object(s) allocated from:
    ...
        2 0x12b96503 in DB::AggregateFunctionSimpleState::getReturnType() const obj-x86_64-linux-gnu/../src/AggregateFunctions/AggregateFunctionSimpleState.h:47:15
    ...

  [1]: https://s3.amazonaws.com/clickhouse-test-reports/33957/08f4f45fd9da923ae3e3fdd8a527c297d35247eb/stress_test__address__actions_.html

After we can get this query by using query_log artifact:

    $ wget https://s3.amazonaws.com/clickhouse-test-reports/33957/08f4f45fd9da923ae3e3fdd8a527c297d35247eb/stress_test__address__actions_/query_log_dump.tar
    $ tar -xf query_log_dump.tar
    $ clickhouse-local --path var/lib/clickhouse/
    SELECT query
    FROM system.query_log
    ARRAY JOIN used_aggregate_function_combinators AS func
    WHERE has(used_aggregate_functions, 'groupBitOr') AND has(used_aggregate_function_combinators, 'SimpleState') AND (type != 'QueryStart')

    Query id: 5b7722b3-f77e-4e7e-bd0b-586d6d32a899

    ┌─query────────────────────────────────────────────────────────────────────────────┐
    │ with groupBitOrSimpleState(number) as c select toTypeName(c), c from numbers(1); │
    └──────────────────────────────────────────────────────────────────────────────────┘

Fixes: 01570_aggregator_combinator_simple_state.sql
Fixes: #16853
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-01-27 15:23:04 +03:00
mergify[bot]
e47cbf76aa
Merge branch 'master' into PF202201271450 2022-01-27 12:13:45 +00:00
mergify[bot]
fd6fa19927
Merge branch 'master' into PF202201271531 2022-01-27 12:13:41 +00:00
mergify[bot]
e7884b5419
Merge branch 'master' into dongcheolpark-doc-korean 2022-01-27 12:13:30 +00:00
박동철
368fd975ef Translate ko/index.md : add translate 2022-01-27 20:02:36 +09:00
Kruglov Pavel
a0a17735d4
Fix test 2022-01-27 13:58:40 +03:00
avogar
4aa2c41106 Fix contrib 2022-01-27 13:49:56 +03:00
Azat Khuzhin
af9910b518 Fix leak of demangle result (for opentelementry)
LSan found [1]:

    Direct leak of 5170176 byte(s) in 5049 object(s) allocated from:
        0 0xc598edd in malloc (/usr/bin/clickhouse+0xc598edd)
        1 0x39679739 in (anonymous namespace)::itanium_demangle::initializeOutputStream(char*, unsigned long*, (anonymous namespace)::itanium_demangle::OutputStream&, unsigned long) obj-x86_64-linux-gnu/../contrib/libcxxabi/src/demangle/Utility.h:178:31
        2 0x39679739 in __cxa_demangle obj-x86_64-linux-gnu/../contrib/libcxxabi/src/cxa_demangle.cpp:351:13
        3 0x28f6f3ed in DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr<DB::Context>, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) obj-x86_64-linux-gnu/../src/Interpreters/executeQuery.cpp:662:44

  [1]:
https://s3.amazonaws.com/clickhouse-test-reports/33957/08f4f45fd9da923ae3e3fdd8a527c297d35247eb/stress_test__address__actions_.html

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-01-27 13:46:37 +03:00
Mikhail f. Shiryaev
88629657ca
Merge pull request #34012 from ClickHouse/pr_description
Pr description
2022-01-27 11:09:17 +01:00
Maksim Kita
af5ad2f370 Remove DecimalPaddedPODArray 2022-01-27 10:07:53 +00:00
Nikolay Degterinsky
697ca238f3
Merge pull request #34051 from grant88/patch-2
little fix user.md
2022-01-27 12:49:34 +03:00
Nikolay Degterinsky
6c08a11547 Change modules url 2022-01-27 09:36:50 +00:00
grantovsky
1eb72b4544
little fix user.md
removed keyword 'NAME' from HOST REGEXP instruction in examples
2022-01-27 12:25:55 +03:00
alexey-milovidov
44cdb9f37e
Merge pull request #34042 from ClickHouse/symlinks-to-keeper
Add symlinks to keeper
2022-01-27 12:25:25 +03:00
Maksim Kita
8ad6b9fb58
Merge pull request #34047 from cnmade/PF202201271059
sync document to zh: how-do-i-contribute-code-to-clickhouse
2022-01-27 10:09:21 +01:00
Maksim Kita
fcc57f08f9
Merge pull request #34034 from Algunenano/i34033
CurrentlyExecuting: Require mutex usage explicitly
2022-01-27 10:08:07 +01:00
zhangxiao871
d1bc65d684 Fix test. 2022-01-27 16:10:31 +08:00
cnmade
f4f6b7ddf3 Fixed zh...statements/alter: remove bak file 2022-01-27 16:08:01 +08:00
cnmade
fc035f49c0 Fixed zh...statements/alter: translate to zh 2022-01-27 16:07:25 +08:00
cnmade
cd13f9a5b3 Fixed zh...statements/alter: reimport files 2022-01-27 15:36:49 +08:00
cnmade
963e3daba1 Fixed zh...statements/alter: rename old file 2022-01-27 15:31:37 +08:00
cnmade
9f7799637c Translate zh/sql-reference/statements/use: fix en translate , remove bakup file 2022-01-27 14:57:59 +08:00
cnmade
6621618d16 Translate zh/sql-reference/statements/use: add translate 2022-01-27 14:55:28 +08:00
cnmade
be55296e06 Translate zh/sql-reference/statements/use: remove old file 2022-01-27 14:54:12 +08:00
cnmade
8efe312d1d sync document to zh: how-do-i-contribute-code-to-clickhouse 2022-01-27 11:03:13 +08:00
Nikolay Degterinsky
02146a11d8
Merge pull request #33995 from cnmade/PF202201261010
Translate zh/faq/general/index
2022-01-27 04:42:49 +03:00
Nikolay Degterinsky
de12521d3f
Merge pull request #33999 from cnmade/PF202201261620
Translate zh/faq/general/mapreduce
2022-01-27 04:41:57 +03:00
alexey-milovidov
85bd87a5a0
Merge pull request #34041 from ClickHouse/authors-in-blog
Add authors in blog
2022-01-27 02:04:21 +03:00
Alexey Milovidov
ff31a2c9e0 Add symlinks to keeper 2022-01-27 01:23:18 +03:00
Alexey Milovidov
96348dc7e8 Add authors in blog 2022-01-27 01:18:11 +03:00
Alexey Milovidov
7e0341ddc0 Update year 2022-01-27 01:01:27 +03:00
Maksim Kita
10cba358cf
Merge pull request #33952 from grant88/patch-1
Update user.md
2022-01-26 22:29:14 +01:00
alexey-milovidov
58b2bbe868
Merge pull request #34040 from ClickHouse/rfraposa-patch-1
Rich's feedback
2022-01-27 00:27:27 +03:00
alexey-milovidov
2c8d722709
Update clickhouse-v22.1-released.md 2022-01-27 00:26:34 +03:00
alexey-milovidov
766ec93ec1
Merge pull request #34039 from ClickHouse/blog-post-22.1
Add blog post for 22.1
2022-01-27 00:25:09 +03:00
Rich Raposa
9ca0acef9e
Rich's feedback 2022-01-26 14:18:16 -07:00
Alexey Milovidov
8d947daa06 Add blog post for 22.1 2022-01-26 23:58:30 +03:00
Alexey Milovidov
fb02786084 Add blog post for 22.1 2022-01-26 23:49:33 +03:00
Alexey Milovidov
5537e64e94 Add blog post for 22.1 2022-01-26 23:46:45 +03:00
Alexey Milovidov
dedbd2242e Add blog post for 22.1 2022-01-26 23:45:18 +03:00
Nikolai Kochetov
9b2998c639 Review fixes. 2022-01-26 18:08:01 +00:00
Nikolai Kochetov
a8171269a1 Review fixes. 2022-01-26 17:55:24 +00:00
Raúl Marín
5a59d976dd CurrentlyExecuting: Require mutex usage explicitly 2022-01-26 18:44:35 +01:00