alesapin
63f15368ff
Remove unused header
2022-05-04 18:30:23 +02:00
alesapin
c09825919b
Better comments
2022-05-04 18:24:28 +02:00
alesapin
c6556da5fc
Fix bug which can lead to corrupted logs in compressed format
2022-05-04 18:08:00 +02:00
mergify[bot]
e0fa563092
Merge branch 'master' into fix_exception_message
2022-05-04 15:56:03 +00:00
Alexander Tokmakov
dd2fe7f3b4
fix REPLACE_RANGE stuck in rare cases
2022-05-04 17:40:53 +02:00
Kruglov Pavel
97a1a2d665
Fix style
2022-05-04 17:16:02 +02:00
Kruglov Pavel
ffec3655fe
Fix special build
2022-05-04 17:14:15 +02:00
Alexander Tokmakov
af9b4a5b9c
fix intersecting parts
2022-05-04 16:22:06 +02:00
Robert Schulze
e583099158
Fix build, pt. V
2022-05-04 15:50:52 +02:00
Robert Schulze
78cdb3ec64
Merge pull request #36862 from rschu1ze/new-clangtidies
...
Activated a bunch of LLVM 12/13/14 clang-tidy warnings
2022-05-04 15:26:57 +02:00
Anton Popov
5d3f586c87
fix clang-tidy
2022-05-04 12:49:02 +00:00
Kruglov Pavel
d91b9b3049
Merge pull request #36882 from kssenii/add-current-metrics-for-filesystem-cache
...
Add some CurrentMetrics for fs cache
2022-05-04 14:44:12 +02:00
mergify[bot]
6ecddf4077
Merge branch 'master' into fix-trash-s3-metrics
2022-05-04 10:14:29 +00:00
Robert Schulze
5dc06e6537
Fix build, pt. IV
2022-05-04 12:01:29 +02:00
Kseniia Sumarokova
f11cfdca94
Merge pull request #36874 from kssenii/add-size-to-system-cache-log
...
Add column to system.filesystem_cache_log
2022-05-04 11:53:29 +02:00
Robert Schulze
590a01d39d
Linux build fix
2022-05-04 11:42:23 +02:00
Robert Schulze
f952ef1738
Fix build, pt. III
2022-05-04 11:20:56 +02:00
Antonio Andelic
808ea6dc65
Merge pull request #36888 from amosbird/projection-fix-one
...
Fix incorrect query result when doing constant aggregation
2022-05-04 10:34:40 +02:00
Kruglov Pavel
66277450d5
Merge pull request #36601 from ndchikin/nth_value
...
Window function nth_value
2022-05-04 10:21:48 +02:00
Robert Schulze
45c0ec44b0
Fix build, pt. II
2022-05-04 10:15:25 +02:00
Robert Schulze
4d6fb6dbaf
Fix build
2022-05-04 08:35:35 +02:00
Antonio Andelic
29e0edd49f
Unlock mutex before destroying worker
2022-05-04 06:30:54 +00:00
Antonio Andelic
056fac9aef
Merge branch 'master' into parallel-url-threads
2022-05-04 06:26:56 +00:00
Dmitry Novik
9087ab0e11
Use free_continue_and_alloc_3_test
2022-05-04 00:41:15 +00:00
alesapin
d4db9740f2
:yнyMerge branch 'master' into add_test
2022-05-04 00:40:31 +02:00
Vitaly Baranov
160bc288d3
Fix implementation of totalBytes() & totalRows() for Log family.
2022-05-04 00:15:21 +02:00
mergify[bot]
64084b5e32
Merge branch 'master' into shared_ptr_helper3
2022-05-03 20:46:16 +00:00
mergify[bot]
17aecac7ff
Merge branch 'master' into new-clangtidies
2022-05-03 19:44:01 +00:00
Alexander Tokmakov
dbbe2062af
fix tests
2022-05-03 21:30:03 +02:00
Amos Bird
7febf57439
Fix minmax_count_projection constant aggregation
2022-05-04 03:07:59 +08:00
Alexander Tokmakov
b96dbdf711
fix test
2022-05-03 20:20:27 +02:00
alesapin
0dffd7c44a
Fix coordination
2022-05-03 20:20:07 +02:00
kssenii
8f99046100
Add come asynchronous metrics
2022-05-03 20:02:19 +02:00
kssenii
ab65e163fa
Add current metrics
2022-05-03 19:35:04 +02:00
Sergei Trifonov
1bcae160a0
Update MergeTreeBackgroundExecutor.h
2022-05-03 18:50:05 +02:00
mergify[bot]
57fcca6dda
Merge branch 'master' into nth_value
2022-05-03 16:37:09 +00:00
Vitaly Baranov
202dd864ed
Fix compilation.
2022-05-03 18:34:29 +02:00
Alexander Tokmakov
6dfaffdb7a
fix test
2022-05-03 17:53:15 +02:00
mergify[bot]
ddd1c3e1b3
Merge branch 'master' into add-other-time-microsecons
2022-05-03 15:45:40 +00:00
Vitaly Baranov
484c2c9c4a
Use SYSTEM SYNC DATABASE REPLICA to make code better.
2022-05-03 16:59:41 +02:00
Vitaly Baranov
828f45f078
Add new restore setting 'allow_non_empty_tables'.
2022-05-03 16:18:45 +02:00
Dmitry Novik
5ba7a55c18
Merge pull request #36650 from bigo-sg/hive_text_parallel_parsing
...
Parallel parsing of hive text format
2022-05-03 15:56:28 +02:00
Kruglov Pavel
a902b9d1e7
Try fix builds
2022-05-03 15:56:25 +02:00
kssenii
000f2c9f7a
Better
2022-05-03 15:55:36 +02:00
Anton Popov
d0a1eab52e
fix insertion of complex jsons with nested arrays
2022-05-03 13:34:45 +00:00
Dmitry Novik
455742ec7a
Make unit tests stable
2022-05-03 13:20:57 +00:00
Alexander Tokmakov
94af11dd74
add extra info when sending exception
2022-05-03 15:13:47 +02:00
Kruglov Pavel
050eed68e2
Fix bug after resolving conflicts
2022-05-03 14:47:24 +02:00
Alexander Gololobov
367898da5e
Merge pull request #35318 from weeds085490/feat/add_part_offset
...
feat(...): [LWD] support getting _part_offset of a row
2022-05-03 13:27:02 +02:00
Maksim Kita
36d1c8238a
Merge pull request #36766 from kitaisreal/evaluate-constant-expression-fix
...
Fix evaluateConstantExpression for subqueries
2022-05-03 12:32:14 +02:00
Maksim Kita
3c89424102
Merge pull request #36852 from kitaisreal/aggregator-jit-lock-fix
...
Aggregator JIT compilation lock fix
2022-05-03 12:29:35 +02:00
vdimir
7f24ae89d1
ASTLiteral clone all except unique_column_name
2022-05-03 10:18:18 +00:00
vdimir
a7fa253ccf
ASTLiteral clone only value
2022-05-03 10:18:18 +00:00
Nikolai Kochetov
540fafbe74
Merge pull request #36856 from ClickHouse/repro-lc-and-s3
...
Reproduce and a little bit better fix for LC dict right offset.
2022-05-03 11:32:08 +02:00
Vitaly Baranov
cb9d867f5f
Fix restore coordination for creating tables in replicated databases.
2022-05-03 11:03:16 +02:00
Vitaly Baranov
5257ce31f8
Improved using ThreadPool for making backup or restoring, changed columns in system.backups.
2022-05-03 11:03:13 +02:00
Vitaly Baranov
409edfd3fa
Rework RestoreCoordination: make restore deterministic.
2022-05-03 11:01:44 +02:00
Vitaly Baranov
2c754f44fc
Make calculation of shard_num & replica_num not dependant on match of the cluster's definitions on nodes.
2022-05-03 11:01:44 +02:00
Vitaly Baranov
b1295311c9
Fix crash when BACKUP & RESTORE are called without ON CLUSTER for replicated DB.
2022-05-03 11:01:44 +02:00
Vitaly Baranov
2a645bb187
Fix sending 'create_table' and 'create_database' restore settings to cluster.
2022-05-03 11:01:44 +02:00
Vitaly Baranov
bddec55d35
Added ASTBackupQuery::setDatabase().
2022-05-03 11:01:44 +02:00
Robert Schulze
0a4eccb73e
Activated a bunch of LLVM 12/13/14 clang-tidy warnings
...
Omitted new checks which produce too many matches or which are
controversial (e.g. readability-identifier-length).
New checks:
- misc-misleading-bidirectional + misc-misleading-identifier
Detects potential attack as described in the Trojan Source attack
- modernize-macro-to-enum
Replaces groups of adjacent macros with an unscoped anonymous enum
- modernize-shrink-to-fit
Replace copy and swap tricks on shrinkable containers with the
shrink_to_fit() method call
- modernize-use-transparent-functors
Prefer transparent functors to non-transparent ones
- modernize-use-uncaught-exceptions
This check will warn on calls to std::uncaught_exception and replace
them with calls to std::uncaught_exceptions (uncaught_exception was
deprecated with C++17)
- performance-no-int-to-ptr
Diagnoses every integer to pointer cast
- readability-duplicate-include
Looks for duplicate includes and removes them
- readability-redundant-preprocessor
Finds potentially redundant preprocessor directives
- bugprone-lambda-function-name
Checks for attempts to get the name of a function from within a lambda
expression
- bugprone-redundant-branch-condition
Finds condition variables in nested if statements that were also
checked in the outer if statement and were not changed
- bugprone-shared-ptr-array-mismatch
Finds initializations of C++ shared pointers to non-array type that
are initialized with an array
- bugprone-stringview-nullptr
Checks for various ways that the const CharT* constructor of
std::basic_string_view can be passed a null argument and replaces them
with the default constructor in most cases
- bugprone-suspicious-memory-comparison
Finds potentially incorrect calls to memcmp() based on properties of
the arguments
2022-05-03 09:22:11 +02:00
Robert Schulze
777b5bc15b
Don't let storages inherit from boost::noncopyable
...
... IStorage has deleted copy ctor / assignment already
2022-05-03 09:07:08 +02:00
Antonio Andelic
fd0ba2d10b
Protect background exception
2022-05-03 06:34:03 +00:00
Antonio Andelic
bfdb4566c6
Use mutex per worker
2022-05-03 06:18:39 +00:00
Larry Luo
ee131eefd8
Removed move for trivially-copyable type and added noexcept for move constructor
2022-05-02 18:46:34 -07:00
Dmitry Novik
2815f22152
Remove incorrect assert
2022-05-02 23:02:43 +00:00
Dmitry Novik
2ed5a4013a
Revert "Revert "Memory overcommit: continue query execution if memory is available""
2022-05-03 00:45:13 +02:00
alesapin
f0b7af0aa2
Revert "Memory overcommit: continue query execution if memory is available"
2022-05-03 00:36:50 +02:00
Nikolai Kochetov
b10decc987
Fix style and formatting.
2022-05-02 18:59:43 +00:00
Nikolai Kochetov
3d9b87af09
Reproduce and a little bit better fix for LC dict right offset.
2022-05-02 18:06:47 +00:00
Dmitry Novik
71b6f89166
Merge pull request #35637 from ClickHouse/memory-overcommit-free
...
Memory overcommit: continue query execution if memory is available
2022-05-02 19:00:18 +02:00
mergify[bot]
93f5aa7488
Merge branch 'master' into aggregator-jit-lock-fix
2022-05-02 16:16:36 +00:00
Dmitry Novik
9be17ef50c
Merge pull request #35111 from azat/optimize_aggregation_in_order-prefix
...
Implement partial GROUP BY key for optimize_aggregation_in_order
2022-05-02 17:49:48 +02:00
Ilya Yatsishin
6c3bbb4933
Add Other Time Microseconds Profile Event
2022-05-02 17:13:57 +02:00
Vladimir C
7293a69e5e
Merge pull request #36656 from amosbird/timefunctionunderflow
...
Saturate date/datetime to zero (part 2)
2022-05-02 17:10:48 +02:00
Alexey Milovidov
c1756f0906
Merge pull request #36836 from azat/remove-raid1
...
[RFC] Remove unimplemented RAID1 support
2022-05-02 17:26:44 +03:00
Maksim Kita
c059629f8d
Aggregator JIT compilation lock fix
2022-05-02 16:21:10 +02:00
mergify[bot]
615c0237fc
Merge branch 'master' into fix-s3-cluster
2022-05-02 13:26:55 +00:00
jasperzhu
f4b275c4ac
Improve decompression in readbig to avoid unnecessary memcpy ( #36095 )
2022-05-02 15:06:52 +02:00
Maksim Kita
2377106370
Fix build
2022-05-02 14:27:00 +02:00
Maksim Kita
9bea207680
Merge pull request #36839 from rschu1ze/concepts
...
Replace uses of SFINAE by C++20 concepts
2022-05-02 14:20:12 +02:00
Kruglov Pavel
21bc5624cc
Fix
2022-05-02 14:16:29 +02:00
Kruglov Pavel
c3570b9f7e
Merge branch 'master' into fix-s3-cluster
2022-05-02 14:15:21 +02:00
Kruglov Pavel
b8ee22eb57
Update StorageS3.cpp
2022-05-02 14:09:54 +02:00
avogar
533e4adf6c
Try to fix build
2022-05-02 12:07:31 +00:00
Anton Popov
d90caf76bb
Merge pull request #36739 from zhangyifan27/fix_groupBitmapState
...
fix `groupBitmapAndState` function on distributed table
2022-05-02 14:00:24 +02:00
Kruglov Pavel
b98ac57090
Merge pull request #36803 from CurtizJ/fix-unflatten-nested
...
Fix creation of tables with `flatten_nested = 0`
2022-05-02 13:58:16 +02:00
Kruglov Pavel
d613f7eab0
Merge branch 'master' into mysqldump-format
2022-05-02 13:31:57 +02:00
Kruglov Pavel
fd980e6840
Merge pull request #36562 from wuxiaobai24/file_descriptor
...
allow file descriptor in table function file()
2022-05-02 13:25:13 +02:00
Kruglov Pavel
8d647eff06
Merge pull request #36749 from Avogar/fix-timeouts
...
Fix bug in receive timeouts in Hedged requests
2022-05-02 13:16:03 +02:00
Kruglov Pavel
188aa3b694
Merge pull request #36781 from Avogar/fix-timeout-message
...
Better exception messages while socket timeouts
2022-05-02 13:12:35 +02:00
Azat Khuzhin
da974585f1
Remove unimplemented RAID1 support
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-05-02 13:59:13 +03:00
Antonio Andelic
a1a22b0007
Merge pull request #35149 from ContentSquare/nullables_with_proto3
...
Nullables with proto3 using Google wrappers
2022-05-02 09:49:37 +02:00
Robert Schulze
ad0b3be79d
Replace uses of SFINAE by C++20 concepts
...
- enable_if is usually regarded as fragile and unreadable
- C++20 concepts are much easier to read and produce more expressive
error messages
2022-05-02 09:23:53 +02:00
Robert Schulze
330212e0f4
Remove inherited create() method + disallow copying
...
The original motivation for this commit was that shared_ptr_helper used
std::shared_ptr<>() which does two heap allocations instead of
make_shared<>() which does a single allocation. Turned out that
1. the affected code (--> Storages/) is not on a hot path (rendering the
performance argument moot ...)
2. yet copying Storage objects is potentially dangerous and was
previously allowed.
Hence, this change
- removes shared_ptr_helper and as a result all inherited create() methods,
- instead, Storage objects are now created using make_shared<>() by the
caller (for that to work, many constructors had to be made public), and
- all Storage classes were marked as noncopyable using boost::noncopyable.
In sum, we are (likely) not making things faster but the code becomes
cleaner and harder to misuse.
2022-05-02 08:46:52 +02:00
awakeljw
0a32fe4da3
Fix CAST Object to Object with Nullable subcolumns
2022-05-02 11:31:13 +08:00
Alexey Milovidov
ef9633499c
Merge branch 'master' into fix-trash-s3-metrics
2022-05-02 03:55:10 +02:00
Alexey Milovidov
9621d44345
Merge pull request #36834 from azat/client-complete-func
...
Add functions from CREATE FUNCTION to completion
2022-05-02 02:46:37 +03:00
Kseniia Sumarokova
e3d2d72b39
Merge pull request #36802 from KinderRiven/local_cache_trace
...
system table used for statistical query of remote file access
2022-05-02 00:16:04 +02:00