Commit Graph

122643 Commits

Author SHA1 Message Date
Alexey Gerasimchuck
0e1728801e black run 2023-08-15 13:31:53 +00:00
Alexey Gerasimchuck
2aa211acc2 Added integration test for session log 2023-08-15 13:26:39 +00:00
Alexander Tokmakov
83c10dad18 Merge branch 'master' into exception_message_patterns6 2023-08-15 15:20:09 +02:00
Alexander Tokmakov
bf40767f10 fix another race 2023-08-15 14:27:49 +02:00
Dmitry Novik
3a8d21ddfb
Merge pull request #53343 from ClickHouse/analyzer-fix-quota-tests
Analyzer: fix quotas for system tables
2023-08-15 14:12:12 +02:00
Kruglov Pavel
cac2628b41
Merge pull request #53426 from ClickHouse/analyzer-fix-virtuals-distr
Analyzer: fix virtual columns in StorageDistributed
2023-08-15 13:55:42 +02:00
Mikhail f. Shiryaev
4edf9b4ccf
Merge pull request #53445 from ClickHouse/restart-killed-releases
Restart killed PublishedReleaseCI workflows
2023-08-15 12:07:24 +02:00
Mikhail f. Shiryaev
33948a150f
Restart killed PublishedReleaseCI workflows 2023-08-15 11:50:11 +02:00
Robert Schulze
8992cc5af4
Factorize constants 2023-08-15 08:56:40 +00:00
Robert Schulze
f317903073
Merge branch 'ClickHouse:master' into consistency-fixes-for-caches 2023-08-15 10:25:08 +02:00
robot-clickhouse
a92fe25ff9 Automatic style fix 2023-08-15 07:15:58 +00:00
Alexey Milovidov
33763e7e50
Merge pull request #53377 from ClickHouse/fix-comment-in-test
Non-significant changes
2023-08-15 09:56:58 +03:00
Alexey Milovidov
df02512ebf Do not send logs to CI if the credentials are not set 2023-08-15 08:53:08 +02:00
Alexey Milovidov
2d554cc28f
Merge pull request #53429 from ClickHouse/fix_empty_parts_creation
Fix creation of empty parts
2023-08-15 09:49:09 +03:00
Alexey Milovidov
1e0cab13be
Merge pull request #53419 from ClickHouse/cleanup-parallel-replicas
Parallel replicas: remove unnecessary code
2023-08-15 09:47:45 +03:00
Alexey Milovidov
b9fa29c4c8
Update OptimizeDateOrDateTimeConverterWithPreimageVisitor.cpp 2023-08-15 09:46:40 +03:00
Zhiguo Zhou
3579039733 Fix an unexpected behavior in #53152
The problematic case happens when an array column of date/datetime
is simultaneously specified in an Array Join clause without aliases
and in a time converter, such as toYYYYMM.

After applying Array Join without aliases, the column's name refers
to the flattened array items, however, its data type is recognized
as a ColumnArray still, which leads to the unexpected exception
throws when building the preimage for the time converters.

As a quick fix, we more strictly check the data types of the time
converters and quit the preimage optimization pass early.
2023-08-15 14:34:08 +08:00
Anton Popov
5a1265d16d add docs 2023-08-15 00:24:47 +00:00
Alexander Tokmakov
376202f739 fix creation of empty parts 2023-08-15 00:26:17 +02:00
Dmitry Novik
84131740fd Fix sanitizer error 2023-08-15 00:22:05 +02:00
Alexander Tokmakov
1e3f9c8cfe
Merging #53142 (#53431)
* Added session_log events to text_log

* user error severity instead of debug for failure

* updated test expectation

* added user_id to logout message

* empty commit

---------

Co-authored-by: Alexey Gerasimchuck <a.gerasimchuck@arenadata.io>
2023-08-15 00:41:24 +03:00
Alexander Tokmakov
5ab82cc019
Merge pull request #53430 from ClickHouse/merging_53177
Merging #53177
2023-08-15 00:39:09 +03:00
Alexander Tokmakov
7312de59c5 empty commit 2023-08-14 23:33:30 +02:00
Alexander Tokmakov
894ec8e0d0 less exceptions with runtime format string 2023-08-14 21:45:59 +02:00
Alexey Milovidov
7b001076c1
Merge pull request #53375 from ClickHouse/make-log-message-longer
Make one exception message longer
2023-08-14 22:32:06 +03:00
Robert Schulze
3d8f2c335f
Protect against invalid asynchronous_metrics_update_period_s settings 2023-08-14 18:57:59 +00:00
Alexander Tokmakov
1916aec2e2 add trash for Replicated database 2023-08-14 20:49:06 +02:00
Alexander Tokmakov
368f6d7b13 fix 2023-08-14 20:46:41 +02:00
Alexey Milovidov
5d0a05ef19
Merge pull request #53418 from ClickHouse/sudo-preserve-env
Attempt to address reset ENV in init.d script
2023-08-14 21:29:55 +03:00
ltrk2
2c1bd7d3bc Remove duplicate function specialization 2023-08-14 18:15:31 +00:00
Dmitry Novik
1244828555 Analyzer: fix virtual columns in StorageDistributed 2023-08-14 19:27:05 +02:00
Alexander Tokmakov
f0f2cd8c13 Merge branch 'master' into fixes_for_detached_parts 2023-08-14 19:20:45 +02:00
ltrk2
2846ea49b4
Merge branch 'master' into feature/mergetree-checksum-big-endian-support 2023-08-14 13:02:30 -04:00
Dmitry Novik
a366c1c532 Update src/Interpreters/executeQuery.cpp 2023-08-14 18:44:09 +02:00
Dmitry Novik
9dafc596d0 Analyzer: fix quotas for system tables 2023-08-14 18:44:09 +02:00
Igor Nikonov
c6dc7a8a0b Update test 2023-08-14 16:04:58 +00:00
Robert Schulze
43ae78d327
Merge remote-tracking branch 'rschu1ze/master' into follow-up-52695 2023-08-14 15:50:54 +00:00
Robert Schulze
7ed5166c8a
Cosmetics: Make re-cfg of query cache similar to re-cfg of other caches
This doesn't change semantics, it only changes in which places the
configuration is parsed. This makes the logic more consistent across
caches.
2023-08-14 15:42:32 +00:00
Robert Schulze
ed90463888
Add comment 2023-08-14 15:42:32 +00:00
Robert Schulze
bb53d635df
More consistency: Run same mark cache size check in ch-local
Server.cpp had a check that the configured mark cache size is not 0. Run
the same check in LocalServer.cpp.
2023-08-14 15:42:32 +00:00
Robert Schulze
f126e54b0d
Respect max_cache_size for all caches
So far, max_cache_size was only respected in Server.cpp, and in this
file only for the mark cache and the uncompressed cache. This commit
respects it also for the other cache types in Server.cpp, as well for
all caches in LocalServer.cpp.
2023-08-14 15:42:32 +00:00
Robert Schulze
9e4b4541bc
Cosmetics: More aesthetic code 2023-08-14 15:42:32 +00:00
Robert Schulze
54e54aed74
Cosmetics: Introduce constants for default cache sizes and policies 2023-08-14 15:42:32 +00:00
Robert Schulze
3472a928d8
Cosmetics: Rename dropCache() to clearCaches()
"dropCache()" is a bad name, it sounds like that the cache can no longer
be used after the call. Not true, we only "clear" the cache.
2023-08-14 15:42:32 +00:00
Robert Schulze
646c51ea40
Cosmetics: Move methods into a more logical order. 2023-08-14 15:42:32 +00:00
Robert Schulze
def9bb8d92
Exclude the query cache from dropCaches() 2023-08-14 15:42:32 +00:00
Robert Schulze
fed995734e
Cosmetics: Move prefetch threadpool stuff out of "caching" section 2023-08-14 15:42:32 +00:00
robot-ch-test-poll3
39e481934c
Merge pull request #53420 from ClickHouse/evillique-patch-1
Update insert-into.md
2023-08-14 17:14:31 +02:00
Mikhail f. Shiryaev
9680de07e9
Merge pull request #53413 from ClickHouse/quick-fail-undocumented-features
Quick fail undocumented features
2023-08-14 16:58:58 +02:00
Igor Nikonov
a81c762928 Fix style 2023-08-14 14:52:26 +00:00