Commit Graph

87967 Commits

Author SHA1 Message Date
Robert Schulze
3a7588d109
Fixup clang-tidy 2022-05-05 10:48:02 +02:00
Robert Schulze
4fff7a3d93
Invert .clang-tidy
Instead of disabling all checks + specifying which are enabled
(whitelist), enable all checks + specify which checks are disabled
(blacklist). The same set of checks executes as before.

Motivation:

a) Given the goal to (generally) enable as many checks as possible, a
   blacklist produces a smaller and easier to maintain .clang-tidy file.

b) Many new checks introduced with LLVM 12/13/14 were forgotten to turn
   on. A blacklist makes sure that future compiler upgrades enable new
   checks by default.
2022-05-05 00:31:48 +02:00
Robert Schulze
c48d9a4174
Merge pull request #36844 from rschu1ze/shared_ptr_helper3
Remove inherited create() method + disallow copying of storages
2022-05-04 19:16:30 +02:00
Kseniia Sumarokova
b84b745997
Merge pull request #36900 from kssenii/fix-stress
quick tmp fix for stress test
2022-05-04 16:31:03 +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
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
kssenii
2c421b0f2b Fix 2022-05-04 13:08:10 +02: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
mergify[bot]
dbc2dc5b60
Merge branch 'master' into new-clangtidies 2022-05-04 07:18:55 +00:00
Robert Schulze
4d6fb6dbaf
Fix build 2022-05-04 08:35:35 +02:00
Alexander Tokmakov
c3f177f0ac
Merge pull request #36885 from ClickHouse/fix_system_logs_saving
Save system logs in functionsl tests if server crashed
2022-05-04 01:12:41 +03:00
Alexander Tokmakov
7a9c9da0bd
Update run.sh 2022-05-04 01:10:40 +03:00
mergify[bot]
64084b5e32
Merge branch 'master' into shared_ptr_helper3 2022-05-03 20:46:16 +00:00
Alexander Tokmakov
193a50a688
Update run.sh 2022-05-03 23:17:03 +03:00
mergify[bot]
17aecac7ff
Merge branch 'master' into new-clangtidies 2022-05-03 19:44:01 +00:00
Robert Schulze
b829c743cc
Removing performance-no-int-to-ptr for now 2022-05-03 21:22:13 +02:00
Amos Bird
7febf57439
Fix minmax_count_projection constant aggregation 2022-05-04 03:07:59 +08:00
Sergei Trifonov
abb143c947
Merge pull request #36881 from ClickHouse/serxa-docs-time-window-functions
update docs for time window functions
2022-05-03 20:11:10 +02:00
Alexander Tokmakov
3baf72f1d4 save system logs in func tests if server crashed 2022-05-03 20:10:07 +02:00
kssenii
ab65e163fa Add current metrics 2022-05-03 19:35:04 +02:00
Sergei Trifonov
6730ad9799
update docs for time window functions 2022-05-03 19:12:42 +02:00
Sergei Trifonov
c21cff7905
Merge pull request #36880 from ClickHouse/serxa-fix-typo
fix typo in comment
2022-05-03 18:50:59 +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
Vladimir C
ea93ab51d5
Merge pull request #36869 from azat/cmake-fix 2022-05-03 16:57:56 +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
kssenii
000f2c9f7a Better 2022-05-03 15:55:36 +02:00
Alexander Tokmakov
e03bcc93ca
Merge pull request #36846 from yakkomajuri/patch-1
Add docs for undocumented allow_nondeterministic_mutations
2022-05-03 16:23:02 +03:00
Alexey Milovidov
8567fea016
Merge pull request #36295 from amosbird/bump-minizip
Bump minizip-ng to a sane version
2022-05-03 15:58:25 +03:00
Azat Khuzhin
cb496a2cd4 Relax cmake check for CFLAGS/CXXFLAGS/LDFLAGS
Fixes: #36854
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-05-03 14:59:03 +03: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
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
Sergei Trifonov
96b7ff3454
Merge pull request #36855 from ClickHouse/serxa-docs-dev-threads
Add docs for developers on threads and jobs
2022-05-03 11:23:55 +02:00
Sergei Trifonov
08688332bd
more info + fixes 2022-05-03 11:22:07 +02:00
yakkomajuri
79029d3772 move setting 2022-05-03 09:15:40 +00:00
Mikhail f. Shiryaev
326ce4af16
Merge pull request #36701 from ClickHouse/tests-report
Tests report
2022-05-03 09:55:10 +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
alesapin
07a7b6b17a
Merge pull request #36858 from ClickHouse/revert-35637-memory-overcommit-free
Revert "Memory overcommit: continue query execution if memory is available"
2022-05-03 00:37:20 +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