Commit Graph

91902 Commits

Author SHA1 Message Date
Robert Schulze
c9ce0efa66
Instantiate MultiMatchAnyImpl template using enums
- With this, invalid combinations of the FindAny/FindAnyIndex bools are
  no longer possible and we can remove the corresponding check

- Also makes the instantiations more readable.
2022-06-26 16:25:49 +00:00
Robert Schulze
2f15d45f27
Move check for regexp array size into implementations
- This is not needed for non-const regexp array arguments (the
  cardinality of arrays is fixed per column) but it cleans up the code
  and runs the check only in functions which have restrictions on the
  number of patterns.

- For functions using hyperscans, it was checked that the number of
  regexes is < 2^32. Removed the check because I don't think anyone will
  every specify 4 billion patterns.
2022-06-26 16:25:43 +00:00
Robert Schulze
3478db9fb6
Move check for regexp array size into implementations
- This is not needed for non-const regexp array arguments (the
  cardinality of arrays is fixed per column) but it cleans up the code
  and runs the check only in functions which have restrictions on the
  number of patterns.

- For functions using hyperscans, it was checked that the number of
  regexes is < 2^32. Removed the check because I don't think anyone will
  every specify 4 billion patterns.
2022-06-26 15:38:12 +00:00
Robert Schulze
7913edc172
Move check for hyperscan regexp constraints into implementations
- This is preparation for non-const regexp arguments, where this check
  will run for each row.
2022-06-26 15:38:05 +00:00
Robert Schulze
89bfdd50bf
Remove unnecessary check
- getReturnTypeImpl() ensures that the haystack column has type "String"
  and we can simply assert that.
2022-06-26 15:34:24 +00:00
Robert Schulze
580d89477f
Minimally faster performance 2022-06-26 15:34:22 +00:00
Robert Schulze
4bc59c18e3
Cosmetics: Move some code around + docs + whitespaces + minor stuff 2022-06-26 15:34:15 +00:00
Robert Schulze
1273756911
Cosmetics: fmt-based exceptions 2022-06-26 15:33:18 +00:00
Robert Schulze
e5c74a14f7
Cosmetics: More consistent naming
- rename utility function and file to "checkHyperscanRegexp"
2022-06-26 15:33:18 +00:00
Robert Schulze
072e0855a8
Cosmetics: Make member variables const 2022-06-26 15:32:26 +00:00
Robert Schulze
2ebfd01c2e
Cosmetics: Pull out settings variable 2022-06-26 15:32:23 +00:00
Robert Schulze
bb7c627964
Cosmetics: Pass patterns around as std::string_view instead of StringRef
- The patterns are not used in hashing, there should not be a performance
  impact when we use stuff from the standard library instead.

- added forgotten .reserve() in FunctionsMultiStringPosition.h
2022-06-26 15:32:19 +00:00
kssenii
a15238d147 Review fixes, fix hdfs tests 2022-06-26 16:51:08 +02:00
xiedeyantu
7e660933f0 add allow trailing comma test 2022-06-26 21:39:53 +08:00
xiedeyantu
9eafae968d Allow trailing comma in columns list 2022-06-26 21:39:53 +08:00
mergify[bot]
f63c959679
Merge branch 'master' into cleanup_garbage_in_store_dir 2022-06-26 13:35:10 +00:00
kssenii
8da6136f88 Fix 2022-06-26 13:21:05 +02:00
Alexey Milovidov
e29582daad
Merge pull request #38417 from ClickHouse/lower-mutex-scope
Lower mutex scope in ThreadStatus
2022-06-26 10:05:25 +03:00
Alexey Milovidov
b3098822e0
Merge pull request #38171 from ClickHouse/hyper-to-vectorscan
Replace hyperscan by vectorscan
2022-06-26 10:01:45 +03:00
kssenii
725d80d470 get rid of path separation 2022-06-26 01:17:19 +02:00
Alexey Milovidov
25cc406201
Update src/Common/ThreadStatus.cpp
Co-authored-by: Dmitry Novik <n0vik@clickhouse.com>
2022-06-26 01:29:06 +03:00
Robert Schulze
07f14c9bb2
Disable vectorscan-on-ARM for now 2022-06-26 00:03:01 +02:00
Alexey Milovidov
37903bfee0 Fix after #38427 2022-06-25 23:18:33 +02:00
Alexey Milovidov
38dc2b1cbc
Merge pull request #38427 from ClickHouse/automated-benchmark
Automated benchmark
2022-06-25 23:54:02 +03:00
Alexey Milovidov
756fd0dac8 Automated hardware benchmark 2022-06-25 18:27:26 +02:00
Alexey Milovidov
7734d1059d Slightly better 2022-06-25 18:09:53 +02:00
Alexey Milovidov
d4b9d5f067 Automatic upload from hardware benchmark 2022-06-25 18:09:53 +02:00
Alexey Milovidov
9bc23f579e Automated hardware benchmark 2022-06-25 18:09:53 +02:00
Alexey Milovidov
90307177b4
Merge pull request #38428 from ClickHouse/remove-codec-asynchronous-metric-log
Remove useless codec from `system.asynchronous_metric_log`
2022-06-25 18:59:02 +03:00
Mikhail f. Shiryaev
1d661d0bad
Merge pull request #38343 from ClickHouse/integration-tests-proxy
Upload logs for getting all tests command
2022-06-25 14:08:45 +02:00
alesapin
0304c73573
Merge pull request #38394 from ClickHouse/update-compose
Update docker-compose to try get rid of v1 errors
2022-06-25 13:59:06 +02:00
Kseniia Sumarokova
a6e868dddc
Update RabbitMQSource.cpp 2022-06-25 11:26:08 +02:00
Kseniia Sumarokova
901e8cfc6c
Update test.py 2022-06-25 11:24:11 +02:00
Kseniia Sumarokova
0d626982ee
Merge pull request #38369 from kssenii/fix-pg-compatibility
Fix postgres database engine possible incompatibility on upgrade
2022-06-25 11:18:46 +02:00
Kseniia Sumarokova
3c70e07fe9
Merge pull request #38366 from kssenii/fix-pg-ndim-with-schema
Fix postgres engine not using pg schema when retrieving array dimension size
2022-06-25 11:14:01 +02:00
Kseniia Sumarokova
3c19621454
Merge pull request #38424 from ClickHouse/fix-filesystem-local
Fix wrong implementation of filesystem* functions
2022-06-25 11:10:20 +02:00
xinhuitian
ccb4802ab1 fix some wrong links in alter docs 2022-06-25 14:01:41 +08:00
Alexey Milovidov
a45e3d47ad Remove useless codec from system.asynchronous_metric_log 2022-06-25 07:16:25 +02:00
Alexey Milovidov
7439ed8403
Merge pull request #38419 from ClickHouse/better-hardware-benchmark
Better hardware benchmark
2022-06-25 08:07:04 +03:00
Alexey Milovidov
0654684bd4 Fix wrong implementation of filesystem* functions 2022-06-25 06:10:50 +02:00
Alexey Milovidov
b28ded6040
Merge pull request #38384 from DanRoscigno/imrove-doc-search
move settings to H3 / H4 level
2022-06-25 06:12:09 +03:00
Alexey Milovidov
8862a8e2ff
Merge pull request #38392 from xinhuitian/fix-titles-and-links-in-alter-docs
Fix some wrong titles and links in alter docs
2022-06-25 06:11:47 +03:00
Alexey Milovidov
ff8c52b087
Update partition.md 2022-06-25 06:11:37 +03:00
Alexey Milovidov
278d7f6190
Merge pull request #38410 from DanRoscigno/allow-access-rights-to-be-included
move title to frontmatter for access control docs
2022-06-25 06:10:32 +03:00
Alexey Milovidov
15edcb3c18
Merge pull request #38420 from ClickHouse/benchmark-aws_c6a_metal
Add benchmark for c6a_metal
2022-06-25 06:08:57 +03:00
Alexey Milovidov
5cf6586ed6 Add benchmark for c6a_metal 2022-06-25 04:43:07 +02:00
Alexey Milovidov
4c3f42f1c2 Better hardware benchmark 2022-06-25 04:29:43 +02:00
Alexey Milovidov
0e5742fb8e Better hardware benchmark 2022-06-25 04:28:14 +02:00
Alexey Milovidov
e33f236d50 Slight improvement 2022-06-25 03:59:01 +02:00
Alexey Milovidov
b89f01438e Lower mutex scope 2022-06-25 03:05:55 +02:00