Commit Graph

80680 Commits

Author SHA1 Message Date
Maksim Kita
ff645a062a
Merge pull request #33465 from kitaisreal/function-array-last-index
Added function arrayLastIndex
2022-01-08 23:08:04 +03:00
Kseniia Sumarokova
9b3493ba9a
Merge pull request #33468 from kssenii/fix-postgres-db-drop
Fix drop materialized postgres db
2022-01-08 19:41:24 +03:00
Maksim Kita
98a94eae7d
Merge pull request #33466 from kitaisreal/dictionaries-string-attributes-single-arena
Dictionaries use single arena for multiple string attributes
2022-01-08 18:40:34 +03:00
alesapin
0860acb4ef
Merge pull request #33246 from nicelulu/fix_acl_map
Fix acl map num
2022-01-08 17:48:00 +03:00
Maksim Kita
410df5c106
Merge pull request #33474 from TabaMojj/patch-1
Fix returned value
2022-01-08 17:34:44 +03:00
alesapin
733ed7cb54
Merge pull request #32061 from ianton-ru/MDB-15474
Change ZooKeeper path for zero-copy locks for shared data
2022-01-08 17:17:11 +03:00
Mojtaba Yaghoobzadeh
72d28e3c0a
Fix returned value
There is a mistake in section "Example for range key dictionary". The returned value is not correct.
2022-01-08 17:46:03 +03:30
kssenii
adaeb96b6d Fix 2022-01-08 15:46:22 +03:00
Maksim Kita
4b4468b34a Dictionaries use single arena for multiple string attributes 2022-01-08 13:26:11 +03:00
Maksim Kita
8fedd4237d
Merge pull request #33464 from kitaisreal/function-month-name-small-fix
Function monthName small fix
2022-01-08 12:08:26 +03:00
Maksim Kita
7d1d1e739f Added documentation 2022-01-08 11:39:05 +03:00
Maksim Kita
a8c5789063 Added tests 2022-01-08 11:37:56 +03:00
Maksim Kita
d6df9d6621 Added function arrayLastIndex 2022-01-08 11:37:31 +03:00
Maksim Kita
4141246c13 Function monthName small fix 2022-01-08 11:04:22 +03:00
alexey-milovidov
f9073efc5f
Merge pull request #33451 from cmsxbc/add-decodeURLFormComponent
add function decodeURLFormComponent
2022-01-08 09:55:05 +03:00
alexey-milovidov
df2fede98b
Update decodeURLComponent.cpp 2022-01-08 07:21:12 +03:00
alexey-milovidov
694621c66c
Merge pull request #33444 from ClickHouse/parser-simplification
Preparation for #33167.
2022-01-08 07:18:17 +03:00
Alexey Milovidov
1813e7ad35 Fix clang-tidy 2022-01-08 04:57:13 +03:00
mergify[bot]
905d5be288
Merge branch 'master' into add-decodeURLFormComponent 2022-01-08 01:22:40 +00:00
alexey-milovidov
6dbbf6b4dd
Merge pull request #33450 from wuxueyang96/add_switch_enable_ipv4or6
Add config to enable ipv4 or ipv6.
2022-01-08 03:43:25 +03:00
alexey-milovidov
05a5a81f7a
Merge pull request #33456 from azat/parallel-replica-fix-cancel
Fix query cancellation in case of allow_experimental_parallel_reading_from_replicas
2022-01-08 03:20:54 +03:00
Maksim Kita
4fc5464283
Merge pull request #33421 from peter279k/patch-6
Add postgresql_port config parameter description
2022-01-08 02:02:18 +03:00
Maksim Kita
78029ebd95
Merge pull request #33458 from den-crane/Docs/fix_trailing_zeros
Doc. actualize trailing zeros removal in documentation
2022-01-07 22:58:39 +03:00
Maksim Kita
c7f525d022
Merge pull request #33459 from den-crane/patch-57
Doc. ALTER TABLE RESET SETTING example
2022-01-07 22:58:18 +03:00
Denny Crane
613fe9572c
ALTER TABLE RESET SETTING example 2022-01-07 15:45:40 -04:00
alexey-milovidov
d6c5307235
Merge pull request #33453 from DimaAmega/tests-visualizer-better
Tests visualizer better
2022-01-07 22:25:54 +03:00
DimaAmega
644324c81b removed toltip's shadow 2022-01-07 22:20:47 +03:00
DimaAmega
f4045a9df9 fix tooltip's style 2022-01-07 22:14:02 +03:00
Denny Crane
0cb9e979ca actualize trailing zeros removal in documentation 2022-01-07 14:53:17 -04:00
alexey-milovidov
140d64f785
Merge pull request #33415 from kitaisreal/function-array-last
Added function arrayLast
2022-01-07 20:37:06 +03:00
Maksim Kita
6a89ca58e3
Merge pull request #33436 from usurai/master
Add MONTHNAME function
2022-01-07 20:36:53 +03:00
Azat Khuzhin
28e64020bd Fix query cancellation in case of allow_experimental_parallel_reading_from_replicas
CI found one hanged query [1], where the problem was that becase of
allow_experimental_parallel_reading_from_replicas the Cancel packet was
read by receivePartitionMergeTreeReadTaskResponseAssumeLocked() and so
the executor was not cancelled, while the code in
MergeTreeBaseSelectProcessor was not ready for this:

<details>

    {
        "is_initial_query": 0,
        "elapsed": 1727.714379573,
        "is_cancelled": 0,
        "read_rows": "196577",
        "read_bytes": "1179462",
        "written_rows": "0",
        "written_bytes": "0",
        "query": "SELECT `CounterID`, `EventDate` FROM `test`.`hits` ORDER BY `CounterID` DESC, `EventDate` ASC LIMIT 50",
        ...
     }

In logs:

    2021.12.31 12:11:55.384735 [ 101532 ] {7e5f551e-5960-4fda-9447-9bfdae4660c1} <Debug> executeQuery: (from [::ffff:127.0.0.1]:58094, initial_query_id: e2966ca5-e836-44ef-8f8e-d1c1b32a>
    2021.12.31 12:11:55.454379 [ 101532 ] {7e5f551e-5960-4fda-9447-9bfdae4660c1} <Trace> ContextAccess (default): Access granted: SELECT(EventDate, CounterID) ON test.hits
    2021.12.31 12:11:55.457583 [ 101532 ] {7e5f551e-5960-4fda-9447-9bfdae4660c1} <Trace> datasets.hits_v1: Parallel reading from replicas enabled true
    2021.12.31 12:11:55.459739 [ 101532 ] {7e5f551e-5960-4fda-9447-9bfdae4660c1} <Trace> InterpreterSelectQuery: FetchColumns -> WithMergeableStateAfterAggregationAndLimit
    2021.12.31 12:11:55.471048 [ 101532 ] {7e5f551e-5960-4fda-9447-9bfdae4660c1} <Debug> datasets.hits_v1 (SelectExecutor): Key condition: unknown
    2021.12.31 12:11:55.476514 [ 101532 ] {7e5f551e-5960-4fda-9447-9bfdae4660c1} <Debug> datasets.hits_v1 (SelectExecutor): MinMax index condition: unknown
    2021.12.31 12:11:55.488302 [ 101532 ] {7e5f551e-5960-4fda-9447-9bfdae4660c1} <Debug> datasets.hits_v1 (SelectExecutor): Selected 2/2 parts by partition key, 2 parts by primary key, >
    2021.12.31 12:11:55.494020 [ 101532 ] {7e5f551e-5960-4fda-9447-9bfdae4660c1} <Debug> MergeTreeReverseSelectProcessor: Reading 1 ranges in reverse order from part 201403_20_20_0, app>
    2021.12.31 12:11:55.497644 [ 101532 ] {7e5f551e-5960-4fda-9447-9bfdae4660c1} <Debug> MergeTreeReverseSelectProcessor: Reading 138 ranges in reverse order from part 201403_19_19_2, a>
    2021.12.31 12:11:55.536372 [ 170601 ] {7e5f551e-5960-4fda-9447-9bfdae4660c1} <Test> MergeTreeBaseSelectProcessor: Reading from Compact part, average mark size is 83886080
    2021.12.31 12:11:55.558783 [ 171701 ] {7e5f551e-5960-4fda-9447-9bfdae4660c1} <Test> MergeTreeBaseSelectProcessor: Reading from Wide part, average mark size is 3069
    2021.12.31 12:11:55.563960 [ 171701 ] {7e5f551e-5960-4fda-9447-9bfdae4660c1} <Test> MergeTreeBaseSelectProcessor: Reading from Wide part, average mark size is 3069
    2021.12.31 12:11:55.577512 [ 171701 ] {7e5f551e-5960-4fda-9447-9bfdae4660c1} <Test> MergeTreeBaseSelectProcessor: Reading from Wide part, average mark size is 3069
    2021.12.31 12:11:55.585660 [ 171701 ] {7e5f551e-5960-4fda-9447-9bfdae4660c1} <Test> MergeTreeBaseSelectProcessor: Reading from Wide part, average mark size is 3069
    2021.12.31 12:11:55.613694 [ 170601 ] {7e5f551e-5960-4fda-9447-9bfdae4660c1} <Test> MergeTreeBaseSelectProcessor: Reading from Wide part, average mark size is 3069
    2021.12.31 12:11:55.730597 [ 170601 ] {7e5f551e-5960-4fda-9447-9bfdae4660c1} <Test> MergeTreeBaseSelectProcessor: Reading from Wide part, average mark size is 3069
    2021.12.31 12:11:55.743554 [ 171701 ] {7e5f551e-5960-4fda-9447-9bfdae4660c1} <Debug> MergingSortedTransform: Merge sorted 3 blocks, 65567 rows in 0.243999671 sec., 268717.5754429603>
    2021.12.31 12:11:55.744196 [ 170601 ] {7e5f551e-5960-4fda-9447-9bfdae4660c1} <Test> MergeTreeBaseSelectProcessor: Reading from Wide part, average mark size is 3069
    2021.12.31 12:11:55.890923 [ 170601 ] {7e5f551e-5960-4fda-9447-9bfdae4660c1} <Test> MergeTreeBaseSelectProcessor: Reading from Wide part, average mark size is 3069
    2021.12.31 12:11:55.891222 [ 170601 ] {7e5f551e-5960-4fda-9447-9bfdae4660c1} <Test> MergeTreeBaseSelectProcessor: Reading from Wide part, average mark size is 3069

</details>

  [1]: https://s3.amazonaws.com/clickhouse-test-reports/33341/0685fd99855bacd0bce02507c00a3bd7709eea61/stress_test__address__actions_.html
2022-01-07 20:04:57 +03:00
Azat Khuzhin
e8c7e5e8f0 Fix typo in sendMergeTreeReadTaskRequestAssumeLocked() 2022-01-07 20:04:57 +03:00
Azat Khuzhin
c05dac89ee ReadFromRemote: Remove redundant ParallelReplicasReadingCoordinator 2022-01-07 20:04:57 +03:00
Maksim Kita
c6b2cd9d14
Merge pull request #33454 from kitaisreal/executable-udf-documentation-fix
Executable UserDefinedFunction documentation fix
2022-01-07 19:20:55 +03:00
Maksim Kita
af37eca3fb Executable UserDefinedFunction documentation fix 2022-01-07 19:19:18 +03:00
Maksim Kita
555c96d89f
Merge pull request #33442 from tekeri/patch-1
Fix typo: command_write_timeout
2022-01-07 19:17:51 +03:00
Maksim Kita
6db24e6cc6
Merge pull request #33452 from xiedeyantu/master
Update AsynchronousReadIndirectBufferFromRemoteFS.h
2022-01-07 19:16:10 +03:00
Maksim Kita
0cb4c71a53 Function arrayLast added documentation 2022-01-07 19:00:37 +03:00
Maksim Kita
fb179a45a1 Function arrayLast added tests 2022-01-07 19:00:27 +03:00
usurai
d4116d8de2 Fix case style 2022-01-07 23:47:21 +08:00
mergify[bot]
7486578465
Merge branch 'master' into master 2022-01-07 13:43:05 +00:00
Maksim Kita
6b9703446d Added function arrayLast 2022-01-07 16:37:21 +03:00
xiedeyantu
1edfc03825
Update AsynchronousReadIndirectBufferFromRemoteFS.h
update 1024 * 1024 to DBMS_DEFAULT_BUFFER_SIZE
2022-01-07 21:06:53 +08:00
cmsxbc
37349a9d0f
add function decodeURLFormComponent 2022-01-07 20:51:30 +08:00
DimaAmega
783b683cce better index.html 2022-01-07 14:59:07 +03:00
alexey-milovidov
d274c00ec7
Merge pull request #33445 from ClickHouse/untuple-exponential-growth
Fix exponential complexity in query analysis.
2022-01-07 14:23:42 +03:00
mergify[bot]
6fcd5a7d41
Merge branch 'master' into MDB-15474 2022-01-07 10:12:25 +00:00
zhangxiao871
3c7ad9a8e9 fix test 2022-01-07 18:09:23 +08:00
alesapin
b1d2bdf569
Merge pull request #33130 from kssenii/validate-config
Validate config keys for external dictionaries
2022-01-07 12:59:02 +03:00