Commit Graph

116604 Commits

Author SHA1 Message Date
Robert Schulze
b8178088d0
Misc Annoy fixes 2023-06-08 15:06:17 +00:00
Robert Schulze
5344ff2516
Temporarily disable annoy index tests (flaky for analyzer) (#50714) 2023-06-08 16:13:12 +03:00
Yakov Olkhovskiy
393c0c3a4f
Merge pull request #50240 from aalexfvk/fix_https_replication_changed_ip_bug
Fix reconnecting of HTTPS session when target host IP was changed
2023-06-08 08:58:48 -04:00
Alexey Milovidov
96addd32ed
Merge pull request #50701 from ClickHouse/changelog-23.5
Add changelog for 23.5
2023-06-08 15:13:57 +03:00
Alexey Milovidov
1515d1db05 Merge branch 'changelog-23.5' of github.com:ClickHouse/ClickHouse into changelog-23.5 2023-06-08 13:27:18 +02:00
Alexey Milovidov
c6b2ed234d Fix typos 2023-06-08 13:27:13 +02:00
Alexey Milovidov
6b49816079
Update CHANGELOG.md
Co-authored-by: Alexander Gololobov <440544+davenger@users.noreply.github.com>
2023-06-08 14:25:49 +03:00
Val Doroshchuk
c37b80593c
MaterializedMySQL: Add support of TRUNCATE db.table (#50624)
Additional to `TRUNCATE TABLE db.table`.

Co-authored-by: Alexander Tokmakov <tavplubix@clickhouse.com>
2023-06-08 14:22:55 +03:00
Nikolai Kochetov
471b0d8ad6
Merge pull request #50638 from ClickHouse/vdimir/semi_join_use_nulls_50540
Fix crash in anti/semi join
2023-06-08 12:43:34 +02:00
Sema Checherinda
76d7495d53
Merge pull request #50674 from ClickHouse/fix_02461
Fix flaky test 02461_prewhere_row_level_policy_lightweight_delete
2023-06-08 12:42:03 +02:00
Alexey Milovidov
32d1acb3a5 Add changelog for 23.5 2023-06-08 12:29:26 +02:00
Dmitry Novik
fd919a288f
Merge pull request #50097 from ClickHouse/analyzer-distr-query
Analyzer: WIP on distributed queries
2023-06-08 11:35:02 +02:00
Kseniia Sumarokova
0912f352fd
Merge pull request #50680 from kssenii/fix-cache-slow-with-insert
Fix slow cache in presence of big inserts
2023-06-08 11:12:56 +02:00
Kseniia Sumarokova
9a7852c908
Merge branch 'master' into fix-cache-slow-with-insert 2023-06-08 10:49:46 +02:00
Robert Schulze
56df9f3b0d
Merge pull request #50312 from rschu1ze/annoy_cleanup
Cleanup Annoy index
2023-06-08 10:03:11 +02:00
Robert Schulze
1b26901db4
Merge branch 'master' into annoy_cleanup 2023-06-08 09:59:10 +02:00
Robert Schulze
d14972f64f
Merge pull request #50658 from rschu1ze/default-granularity
ALTER TABLE ADD INDEX: Add default GRANULARITY argument for secondary indexes
2023-06-08 09:56:06 +02:00
Nikolay Degterinsky
188bac414e
Merge pull request #50280 from lucas-tubi/fix-datetime64-index-scaning
Fixed type conversion from Date/Date32 to DateTime64 when querying with DateTime64 index
2023-06-08 07:10:55 +02:00
flynn
92c87dedad
Add parallel state merge for some other combinator except If (#50413)
* Add parallel state merge for some other combinator except If

* add test

* update test
2023-06-08 00:41:32 +02:00
kssenii
129473ae74 Fix 2023-06-07 20:48:03 +02:00
Antonio Andelic
b11f744252
Correctly disable async insert with deduplication when it's not needed (#50663)
* Correctly disable async insert when it's not used

* Better

* Add comment

* Better

* Fix tests

---------

Co-authored-by: Nikita Mikhaylov <mikhaylovnikitka@gmail.com>
2023-06-07 20:33:08 +02:00
Alexey Milovidov
2763f010c5
Merge pull request #50588 from danlark1/patch-1
Enable LZ4_FAST_DEC_LOOP for Arm to get 5% of decompression speed
2023-06-07 21:27:10 +03:00
robot-ch-test-poll4
df383cad33
Merge pull request #50587 from ClickHouse/fix-01487_distributed_in_not_default_db
Analyzer: fix 01487_distributed_in_not_default_db
2023-06-07 20:26:53 +02:00
vdimir
a268250aff Fixes for LowCardinality Nullable in HashJoin 2023-06-07 20:16:36 +02:00
vdimir
f3b5a87a66 Fixing crash in anti/semi join 2023-06-07 20:16:36 +02:00
Nikita Mikhaylov
c0f2141bd0
Revert "date_trunc function to always return DateTime type" (#50670) 2023-06-07 19:51:41 +02:00
Nikita Mikhaylov
e1ceb01ad0
Parallel replicas for short queries (#50639) 2023-06-07 19:45:27 +02:00
Dmitry Novik
92faf4a18e
Merge branch 'master' into analyzer-distr-query 2023-06-07 18:34:16 +02:00
Robert Schulze
c12c62a7fb
Update src/Parsers/ParserCreateIndexQuery.cpp
Co-authored-by: Nikolay Degterinsky <43110995+evillique@users.noreply.github.com>
2023-06-07 18:22:53 +02:00
Alexander Gololobov
bf6900f64c Write 1 part and do not use OPTIMIZE FINAL 2023-06-07 17:08:18 +02:00
Robert Schulze
b83f0fff7d
Merge branch 'master' into default-granularity 2023-06-07 14:39:56 +02:00
Robert Schulze
81cd3defd7
Fix expected results 2023-06-07 12:29:09 +00:00
Rich Raposa
06b05cf2aa
Merge pull request #50664 from ClickHouse/fix-docs-tuple-with-aggregates
Some minor fixes about using `Tuple` in aggregate functions
2023-06-07 06:07:52 -06:00
Azat Khuzhin
036ddcd47b
Fix excessive memory usage for FINAL (due to too much streams usage) (#50429)
Previously it could create MergeTreeInOrder for each mark, however this
could be very suboptimal, due to each MergeTreeInOrder has some memory
overhead.

Now, by collapsing all marks for one part together it is more memory
effiecient.

I've tried the query from the altinity wiki [1] and it decreases memory
usage twice:

    SELECT * FROM repl_tbl FINAL WHERE key IN (SELECT toUInt32(number) FROM numbers(1000000) WHERE number % 50000 = 0) FORMAT Null

- upstream: MemoryTracker: Peak memory usage (for query): 520.27 MiB.
- patched:  MemoryTracker: Peak memory usage (for query): 260.95 MiB.

  [1]: https://kb.altinity.com/engines/mergetree-table-engine-family/replacingmergetree/#multiple-keys

And it could be not 2x and even more or less, it depends on the gaps in
marks for reading (for example in my setup the memory usage increased a
lot, from ~16GiB of RAM to >64GiB due to lots of marks and gaps).

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-06-07 13:48:08 +02:00
Kseniia Sumarokova
d25ea9b0cf
Merge pull request #50470 from kssenii/add-some-assertions-2
Add some assertions
2023-06-07 12:28:28 +02:00
János Benjamin Antal
35ef14482d Fix keyword capitalization 2023-06-07 10:13:13 +00:00
János Benjamin Antal
1a3dc7c3ed
Merge branch 'master' into fix-docs-tuple-with-aggregates 2023-06-07 12:11:03 +02:00
János Benjamin Antal
e0bc695e2d Use correct link format 2023-06-07 10:07:35 +00:00
Alexey Milovidov
6e9c08bbf4
Merge pull request #50642 from johanngan/regexptree-bad-opt
Revert invalid RegExpTreeDictionary optimization
2023-06-07 13:00:20 +03:00
Robert Schulze
7c80046834
Revert "Remove clang-tidy exclude"
This reverts commit 42c0547895.
2023-06-07 09:47:54 +00:00
Robert Schulze
c795eb0329
Temporarily disable a test 2023-06-07 09:46:47 +00:00
robot-ch-test-poll3
9c72449a34
Merge pull request #50607 from den-crane/patch-25
Doc. Clarification about ArgMax/Min behavior
2023-06-07 11:34:12 +02:00
Anton Popov
1e6b84c59c
Merge pull request #50660 from CurtizJ/merging-50329
Merging #50329
2023-06-07 11:18:42 +02:00
Anton Popov
3c2a6200e5 Merge branch 'ignore_index' of https://github.com/ClibMouse/ClickHouse into merging-50329 2023-06-07 09:15:57 +00:00
Robert Schulze
52e265badd
Merge remote-tracking branch 'rschu1ze/master' into annoy_cleanup 2023-06-07 09:13:41 +00:00
Robert Schulze
4050b637f1
ALTER TABLE ADD INDEX: Add default GRANULARITY argument for secondary indexes
- Related to #45451, which provides a default GRANULARITY when the
  skipping index is created in CREATE TABLE.
2023-06-07 09:04:24 +00:00
Antonio Andelic
26fb80b540
Merge pull request #50615 from ClickHouse/fix-jepsen-check
Fix Jepsen runs in PRs
2023-06-07 08:43:51 +02:00
Alexey Milovidov
9b49469e54
Merge pull request #50637 from Avogar/values-lc-null
Fix converting Null to LowCardinality(Nullable) in values table function
2023-06-07 07:38:11 +03:00
Alexey Milovidov
c02da1320f
Merge branch 'master' into regexptree-bad-opt 2023-06-07 07:37:17 +03:00
Alexey Milovidov
a61c8e246d
Merge pull request #50629 from Algunenano/revert_incorrect_optimizations
Revert incorrect optimizations
2023-06-07 05:34:07 +03:00