Commit Graph

160525 Commits

Author SHA1 Message Date
Robert Schulze
e8018fb4f2
Fix build 2024-12-11 21:45:30 +00:00
Robert Schulze
437605f44a
Merge remote-tracking branch 'ClickHouse/master' into tidy 2024-12-11 16:12:35 +00:00
Robert Schulze
7d6fbe5a57
Some clang-tidy fixes 2024-12-11 16:12:16 +00:00
Nikita Taranov
2bc96dc2da
Merge pull request #72993 from ClickHouse/fix_parallel_hash_with_additional_filter
Fix `parallel_hash` join with additional filters in `ON` clause
2024-12-11 14:20:14 +00:00
Nikita Mikhaylov
34ee0f2364
Merge pull request #71870 from cwurm/patch-6
Format Settings: Better date_time_overflow_behavior
2024-12-11 13:50:24 +00:00
Pavel Kruglov
df235c39a7
Merge pull request #72808 from larry-cdn77/min-free-diskspace-bytes-to-insert-documentation-correction
Correct documentation for the min_free_disk_space settings
2024-12-11 13:38:50 +00:00
Raúl Marín
8e4bd548e4
Merge pull request #73081 from azat/mm-fix-accounting
Fix possible overestimate memory tracking
2024-12-11 13:11:11 +00:00
Raúl Marín
fb7cd9fa8b
Update src/Common/ThreadStatus.cpp 2024-12-11 14:09:56 +01:00
Raúl Marín
ca2813bacf
Merge pull request #72969 from Algunenano/shared_mutex_other_os
Use absl::Mutex instead of std::shared_mutex on non-Linux OSs
2024-12-11 12:12:05 +00:00
Raúl Marín
130a2b16aa
Merge pull request #73083 from Algunenano/osx_icu
OSX: Build with ICU support
2024-12-11 11:49:36 +00:00
Pavel Kruglov
06b1ef2c2d
Merge pull request #72989 from Avogar/dynamic-in-to-type-functions
Support Dynamic in functions toFloat64/touInt32/etc
2024-12-11 11:07:34 +00:00
Pavel Kruglov
33b8948a5c
Merge pull request #73043 from Avogar/fix-json-parsing-format-settings
Use default format settings during JSON parsing to avoid broken deserialization
2024-12-11 11:07:11 +00:00
Pavel Kruglov
66eecb112f
Merge pull request #73082 from Avogar/fix-tuple-duplicate-json-key
Check for duplicate JSON keys during Tuple parsing
2024-12-11 10:57:42 +00:00
Nikita Mikhaylov
88f7b53d8c
Merge pull request #72426 from ClickHouse/move-utils-to-programs
Moved utils to programs
2024-12-11 00:18:43 +00:00
Anton Popov
34b7207b76
Merge pull request #73017 from CurtizJ/add-test-for-block-number-mutation
Add tests for some mutations with enabled column `_block_number`
2024-12-10 23:18:26 +00:00
Alexander Gololobov
bb1604d48c
Merge pull request #73049 from ClickHouse/preallocate_log_queue_buffer
Preallocate log queue buffer after flush to reduce number or (re)allocations when pushing new entires
2024-12-10 21:11:07 +00:00
Sema Checherinda
352e47ae64
Merge pull request #73080 from ClickHouse/chesema-rm-comments-2
remove commented code
2024-12-10 21:05:04 +00:00
Vitaly Baranov
e7df52d8a0
Merge pull request #72682 from vitlibar/add-retries-to-creating-replicated-table
Add retries to creating a replicated table
2024-12-10 21:04:36 +00:00
Nikita Taranov
206d5153f7 add heavier test 2024-12-10 20:32:01 +01:00
Shichao Jin
098c8ac806
Merge pull request #73012 from gingerwizard/issue_2295
clarify compression options for table functions
2024-12-10 19:03:07 +00:00
Azat Khuzhin
9072d1bd42 Fix possible overestimate memory tracking
Before this patch the untracked_memory was dumped before reseting the
current_thread which could lead to leaking some of untracked_memory in
`ThreadStatus::detachFromGroup` [1].

In particular I found that the local_data (which is 136 bytes) can be
"leaked" that way.

  [1]: 8999fdd95e/src/Interpreters/ThreadStatusExt.cpp (L292-L306)

This pops up on one of clusters where I noticed that the difference
between MemoryTracking and MemoryResident keeps growing over the time.
the difference grows ~200KiB per second - 16.5GiB per day.

That cluster has tons MVs triggered from Buffer/Distributed (i.e. now
query context), and this is indeed is the reason for leaking local_data,
since in this case there is no thread group in the query, and it is
created explicitly in `InterpreterInsertQuery::buildChain` [1].

  [1]: 20ccb638ba/src/Interpreters/InterpreterInsertQuery.cpp (L321)

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-12-10 19:50:01 +01:00
Kseniia Sumarokova
0235eed489
Merge pull request #73001 from ClickHouse/divanik/fix_bug_iceberg_json_equality_check
Make less strict assert when checking iceberg schema consistency
2024-12-10 18:24:29 +00:00
avogar
1d6c3629c6 Check for duplicate JSON keys during Tuple parsing 2024-12-10 16:52:07 +00:00
Nikita Mikhaylov
0b53e55c42
getlogin is ok for Musl 2024-12-10 17:47:04 +01:00
Raúl Marín
4eef87d8ed OSX: Build with ICU support 2024-12-10 17:34:00 +01:00
Sema Checherinda
1ae7a683d7 remove commented code 2024-12-10 17:30:56 +01:00
Raúl Marín
20ccb638ba
Merge pull request #73013 from Algunenano/flaky_01319
Fix flakiness of 01319_query_formatting_in_server_log.sql
2024-12-10 16:16:52 +00:00
Alexander Gololobov
61d5c75343 Preallocate log queue buffer after flush 2024-12-10 16:58:09 +01:00
Nikita Taranov
06901e1c6a better 2024-12-10 16:22:04 +01:00
Raúl Marín
b8196de664 Remove no longer needed guard 2024-12-10 15:43:22 +01:00
Nikita Taranov
55c9a92e3e fix test 2024-12-10 15:34:49 +01:00
Nikita Taranov
6d5e97d9d9 fix 2024-12-10 15:30:05 +01:00
avogar
b718b2ea88 Use default format settings during JSON parsing to avoid broken deserialization 2024-12-10 14:27:58 +00:00
Raúl Marín
8999fdd95e
Merge pull request #73010 from ClickHouse/revert-70598-more_jits
Revert "Enable JIT compilation for more expressions"
2024-12-10 14:24:49 +00:00
avogar
a755cbc987 Apply suggestion 2024-12-10 13:50:06 +00:00
Anton Popov
acb2cc90f7 add test for mutations with block numbers 2024-12-10 13:25:49 +00:00
Nikita Fomichev
787cf7db89
Merge pull request #68154 from ClickHouse/mv4-test
Add integration tests for Refreshable Materialized Views (mv4)
2024-12-10 13:20:42 +00:00
Pavel Kruglov
8f0baa593b
Merge pull request #72108 from Avogar/format-inference-load
Add inferred format name to create query in File/S3/URL/HDFS/Azure engines
2024-12-10 13:14:58 +00:00
Pavel Kruglov
bba8f7e807
Merge pull request #72285 from Avogar/read-column-once-compact-subcolumns
Bring back optimization for reading subcolumns of single column in Compact parts
2024-12-10 13:08:50 +00:00
Raúl Marín
ee1c650e38 Fix flakiness of 01319_query_formatting_in_server_log.sql 2024-12-10 13:58:27 +01:00
Nikita Taranov
5ff265eea0
Merge pull request #72895 from ClickHouse/more_insistent_compress_in_memory_eng_2
Resubmit More insistent compression in StorageMemory
2024-12-10 12:55:12 +00:00
Dale Mcdiarmid
151b3bcb05 clarify compression options 2024-12-10 12:09:59 +00:00
Raúl Marín
efdcb59c84 Fix fast build 2024-12-10 12:54:23 +01:00
Raúl Marín
fb02bec3dc
Revert "Enable JIT compilation for more expressions" 2024-12-10 12:22:51 +01:00
divanik
72cc064547 Fix bug 2024-12-10 11:07:48 +00:00
Kseniia Sumarokova
85f86196c4
Merge pull request #72990 from jsc0218/BetterPGArrayEmptyHint
Better PG Empty Array Prompt
2024-12-10 10:51:52 +00:00
divanik
57d446ebfd Fix bug 2024-12-10 10:44:22 +00:00
divanik
05d8584966 Fix chassert 2024-12-10 10:34:36 +00:00
Pavel Kruglov
3c7d675579
Merge pull request #72890 from ClickHouse/Avogar-patch-7
Fix flaky 03271_ghdata_object_to_json_alter test
2024-12-10 00:28:04 +00:00
Nikita Taranov
d6b8576961
Merge pull request #72951 from ClickHouse/fix_01290_max_execution_speed_distributed
Try fix `01290_max_execution_speed_distributed`
2024-12-09 22:15:12 +00:00