Commit Graph

127163 Commits

Author SHA1 Message Date
Nikita Taranov
6548ce2eb5 fix style 2023-11-03 23:15:38 +01:00
Nikita Taranov
5040a3b6d3 do seek before calling isContentCached() 2023-11-03 22:52:12 +01:00
Nikita Taranov
7046832056 change signatures 2023-11-03 22:50:03 +01:00
Nikita Taranov
036af7f103 add test 2023-11-03 15:14:37 +01:00
Nikita Taranov
1d58cedce5 better 2023-10-31 22:48:20 +01:00
Nikita Taranov
213ce63ffb
Merge branch 'master' into optimize_reading3 2023-10-28 00:04:20 +02:00
Alexey Milovidov
59e3d64d2c
Merge pull request #56050 from azat/bash-completion-fix
Fix bash completion for mawk (and update format list and add one more delimiter)
2023-10-27 22:12:42 +02:00
Alexander Gololobov
2f53dc9432
Merge pull request #56054 from ClickHouse/optimize_keeper_metrics
Avoid traversing potentially big list of watches
2023-10-27 22:02:39 +02:00
Dmitry Novik
224d4f0ee1
Merge pull request #56055 from ClickHouse/fix-recursive-window-analyzer
Analyzer: Fix crash on window resolve
2023-10-27 21:55:46 +02:00
Michael Kolupaev
b65c498016
Fix 'Block structure mismatch' on concurrent ALTER and INSERTs in Buffer table (#55995) 2023-10-27 10:06:43 -07:00
Dmitry Novik
c634c43662
Update src/Analyzer/Passes/QueryAnalysisPass.cpp
Co-authored-by: Nikita Mikhaylov <mikhaylovnikitka@gmail.com>
2023-10-27 16:47:06 +02:00
AN
f560e7ee52
Update architecture.md (#56049)
Minor fixes (typo found in comment pull/55985 by den-crane, punctuation style unification)
2023-10-27 15:36:05 +02:00
Alexander Gololobov
9a95b82cae Avoid traversing potentially big list of watches 2023-10-27 14:54:58 +02:00
Kruglov Pavel
f1f1846572
Merge pull request #55861 from bigo-sg/ch_55858
Throw exception when parsing illegal string as float if precise_float_parsing is true
2023-10-27 14:24:55 +02:00
Nikita Taranov
c97bfbeb92 fix tests 2023-10-27 13:47:13 +02:00
robot-ch-test-poll
ed41508374
Merge pull request #56075 from RoryCrispin/patch-3
Fix dead link to Virtual Columns
2023-10-27 13:11:30 +02:00
frinkr
18c50c11b3
Multithreading after window functions (#50771)
* feat: Preserve number of streams after evaluation the window functions to allow parallel stream processing

* fix style

* fix style

* fix style

* setting query_plan_preserve_num_streams_after_window_functions default true

* fix tests by SETTINGS query_plan_preserve_num_streams_after_window_functions=0

* fix test references

* Resize the streams after the last window function, to keep the order between WindowTransforms (and WindowTransform works on single stream anyway).

* feat: Preserve number of streams after evaluation the window functions to allow parallel stream processing

* fix style

* fix style

* fix style

* setting query_plan_preserve_num_streams_after_window_functions default true

* fix tests by SETTINGS query_plan_preserve_num_streams_after_window_functions=0

* fix test references

* Resize the streams after the last window function, to keep the order between WindowTransforms (and WindowTransform works on single stream anyway).

* add perf test

* perf: change the dataset from 50M to 5M

* rename query_plan_preserve_num_streams_after_window_functions -> query_plan_enable_multithreading_after_window_functions

* update test reference

* fix clang-tidy

---------

Co-authored-by: Nikita Taranov <nikita.taranov@clickhouse.com>
2023-10-27 12:36:28 +02:00
Rory Crispin
b817ab45bd
Fix dead link to Virtual Columns 2023-10-27 12:03:15 +02:00
Nikita Mikhaylov
f5890a5b4c
Added healthcheck for LDAP (#55571) 2023-10-27 10:53:59 +02:00
Robert Schulze
a68e8be08f
Merge pull request #55696 from zvonand/zvonand-datetime-ranges
Introduce setting `date_time_overflow_behavior` to control the overflow behavior when converting to `Date` / `Date32` / `DateTime` / `DateTime64`
2023-10-27 10:40:20 +02:00
Robert Schulze
5801b06529
Merge pull request #55983 from rschu1ze/snowflake-scale
Fix dateTime64ToSnowflake64() with non-default scale
2023-10-27 10:22:35 +02:00
lgbo
489e6d9bdc
Optimization for getting value from map, arrayElement(1/2) (#55929) 2023-10-27 09:54:25 +02:00
李扬
308b2942d7
Update readFloatText.h 2023-10-27 11:42:33 +08:00
Andrey Zvonov
2da12ec291
Update FunctionsConversion.h 2023-10-27 01:13:52 +02:00
zvonand
35baf7792d cleanup after rebase, add [[unlikely]] 2023-10-26 23:56:45 +02:00
Robert Schulze
325ff33c3a
Merge pull request #55239 from aiven-sal/aiven-sal/format_query
Add formatQuery function
2023-10-26 22:46:01 +02:00
Robert Schulze
b1fd28d0f4
Try to stabilize test, pt. II 2023-10-26 19:41:29 +00:00
robot-clickhouse-ci-1
d2461671bd
Merge pull request #56056 from ClickHouse/vdimir/fix_doc_function_json
Fix function_json_value_return_type_allow_nullable setting name in doc
2023-10-26 21:08:00 +02:00
Alexander Tokmakov
eacf1ee79b
Merge pull request #56026 from ClickHouse/make_code_worse
Fix some bad code by making it worse
2023-10-26 20:18:04 +02:00
vdimir
dbaf66b8f2
Fix function_json_value_return_type_allow_nullable setting name in doc 2023-10-26 19:26:18 +02:00
Dmitry Novik
7cc4b8b1ae Analyzer: Fix crash on window resolve 2023-10-26 17:07:26 +00:00
Konstantin Bogdanov
ecafc77e0f
Merge pull request #55521 from ClickHouse/fix-query-params-with-custom-http-handlers
Fix Query Parameters not working with custom HTTP handlers
2023-10-26 18:34:37 +02:00
Alexander Tokmakov
c588a7f386 Merge branch 'master' into make_code_worse 2023-10-26 17:39:10 +02:00
Azat Khuzhin
caec685a49 Update formats list
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-10-26 17:35:22 +02:00
Azat Khuzhin
4cb8b186e7 Add more delimiters for completion
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-10-26 17:35:22 +02:00
Azat Khuzhin
b6435b32f0 Fix bash completion for mawk
$ strings < /usr/bin/awk | grep awk
mawk 1.3%s%s %s, Copyright (C) Michael D. Brennan

$ awk '{print substr($0, 0, 1)}' <<<foo # returns empty string

$ awk '{print substr($0, 1, 1)}' <<<foo # returns empty string
f

$ awk -V | head -1
GNU Awk 5.2.2, API 3.2, PMA Avon 8-g1, (GNU MPFR 4.2.1, GNU MP 6.3.0)

$ awk '{print substr($0, 0, 1)}' <<<foo
f
$ awk '{print substr($0, 1, 1)}' <<<foo
f

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-10-26 17:35:22 +02:00
Salvatore Mesoraca
4db31d55fb
Restart CI 2023-10-26 16:22:36 +02:00
Alexander Tokmakov
fa963d60d0
Merge pull request #55641 from evillique/resubmit-cluster-groups
Resubmit #54421
2023-10-26 15:53:53 +02:00
Alexander Tokmakov
463a728b09
Merge pull request #56023 from ClickHouse/fix_02438
Fix 02438_sync_replica_lightweight
2023-10-26 15:48:43 +02:00
Andrey Zvonov
71287788d1
Merge branch 'ClickHouse:master' into zvonand-datetime-ranges 2023-10-26 14:14:32 +02:00
robot-ch-test-poll4
73d6f0ddaf
Merge pull request #56040 from bezik/patch-3
Update index.md
2023-10-26 14:13:31 +02:00
robot-ch-test-poll
da42f2eb0f
Merge pull request #55887 from ucasfl/fix-union-distinct
Fix normalize ASTSelectWithUnionQuery strip FORMAT of the query
2023-10-26 13:53:58 +02:00
Alexey Milovidov
9313b343e4
Merge pull request #55240 from aiven-sal/aiven-sal/client
clickhouse-client: don't show "0 rows in set" if it is zero and if exception was thrown
2023-10-26 13:52:53 +02:00
Anton Popov
9e64f51ffa
Merge pull request #56020 from CurtizJ/minor-style-fixes
Correct the implementation of function `jsonMergePatch`
2023-10-26 13:26:55 +02:00
helifu
4015176d27
A small fix (#55938) 2023-10-26 13:19:58 +02:00
Salvatore Mesoraca
56bd61d207
Rename formatQueryOneLine -> formatQuerySingleLine 2023-10-26 13:09:20 +02:00
robot-clickhouse-ci-1
f3e07b0fb3
Merge pull request #56042 from bezik/patch-4
Update distinctive-features.md
2023-10-26 13:08:12 +02:00
Salvatore Mesoraca
21e0c510c8
formatQuery: improve doc 2023-10-26 13:08:11 +02:00
Alexey Milovidov
0794f1faa7
Merge pull request #55775 from kitaisreal/decimal-column-improve-get-permutation-revert-revert
Improve ColumnDecimal, ColumnVector getPermutation performance using pdqsort with RadixSort fix
2023-10-26 12:36:57 +02:00
Alexey Milovidov
ffcf1f02cb
Merge pull request #55662 from amosbird/fix-55643
Add a test to avoid incorrect decimal sorting
2023-10-26 12:36:46 +02:00