Robert Schulze
e25ca139cd
Implement SQL functions (NOT) (I)LIKE() + MATCH() with non-const needles
...
With this commit, SQL functions LIKE and MATCH and their variants can
work with non-const needle arguments. E.g.
create table tab
(id UInt32, haystack String, needle String)
engine = MergeTree()
order by id;
insert into tab values
(1, 'Hello', '%ell%')
(2, 'World', '%orl%')
select id, haystack, needle, like(haystack, needle)
from tab;
For that, methods vectorVector() and vectorFixedVector() were added to
MatchImpl. The existing code for const needles has an optimization where
the compiled regexp is cached. The new code expects a different needle
per row and consequently does not cache the regexp.
2022-05-23 09:41:28 +02:00
Robert Schulze
4829ae8380
Replace overly clever const argument logic by something simpler
...
The previous logic was smart but too inflexible to support the next
commits. Replace by a simple pushdown logic where string search
implementations return their const arguments instead of having the
common class figure these out based on properties/traits.
2022-05-22 17:50:38 +02:00
Robert Schulze
00d004c061
Remove -T flag from instructions about test creation
...
That flag no longer exists and test creation works fine w/o it (see
commit f07d4177a5
for a related change).
2022-05-22 17:50:38 +02:00
Robert Schulze
0299cc87e4
Improve naming consistency of string search code
...
Just renamings, nothing major ...
2022-05-22 17:50:38 +02:00
Maksim Kita
9b354268fa
Merge pull request #34469 from kitaisreal/jit-compile-sort-description
...
Added JIT compilation of SortDescription
2022-05-12 10:14:21 +02:00
Robert Schulze
f8c24c5fe8
Merge pull request #37117 from ClickHouse/bug-37114
...
Fix Bug 37114 - ilike on FixedString(N)s produces wrong results
2022-05-12 09:39:36 +02:00
Maksim Kita
e8c024ac5c
Fixed build
2022-05-11 21:59:51 +02:00
Maksim Kita
437d70d4da
Fixed tests
2022-05-11 21:59:51 +02:00
Maksim Kita
496302cb1d
Fix tests
2022-05-11 21:59:51 +02:00
Maksim Kita
b1c154ccb4
Fixed style check
2022-05-11 21:59:51 +02:00
Maksim Kita
75555c436b
Fix usage of min_count_to_compile_sort_description setting
2022-05-11 21:59:51 +02:00
Maksim Kita
fcc42fe3a8
Fix style check
2022-05-11 21:59:51 +02:00
Maksim Kita
837f2e8b9c
Update performance test
2022-05-11 21:59:51 +02:00
Maksim Kita
06b21a5cc4
Fix build
2022-05-11 21:59:51 +02:00
Maksim Kita
ea8ce3140a
Fixed tests
2022-05-11 21:59:51 +02:00
Maksim Kita
4e7d10297b
Fixed style
2022-05-11 21:59:51 +02:00
Maksim Kita
c17a8b1a23
Fixed tests
2022-05-11 21:59:51 +02:00
Maksim Kita
8721e434e6
Fixed tests
2022-05-11 21:59:51 +02:00
Maksim Kita
512d88ddc6
Fixed tests
2022-05-11 21:59:51 +02:00
Maksim Kita
cbfb773b50
Fixed tests
2022-05-11 21:59:51 +02:00
Maksim Kita
ce92f6aab1
Fixed tests
2022-05-11 21:59:51 +02:00
Maksim Kita
b3b46d2e5c
Fixed tests
2022-05-11 21:59:51 +02:00
Maksim Kita
d85d72e5ad
Added performance tests
2022-05-11 21:59:51 +02:00
Maksim Kita
8ceb63ee6c
Added JIT compilation of SortDescription
2022-05-11 21:59:51 +02:00
Rich Raposa
79fc45a182
Merge pull request #37135 from ClickHouse/blake_docs
...
Add BLAKE3 hash function
2022-05-11 13:58:51 -06:00
Nikolai Kochetov
ec34761d9f
Merge pull request #33631 from ClickHouse/grouping-sets-fix
...
Support GROUPING SETS
2022-05-11 21:28:46 +02:00
rfraposa
044e76d91b
Add BLAKE3 hash function
2022-05-11 12:10:16 -06:00
Vladimir C
641e2be6ef
Merge pull request #37085 from vdimir/force-cross-to-inner-option
...
Option to force cross_to_inner_join_rewrite
2022-05-11 18:03:53 +02:00
Kruglov Pavel
af3db5a992
Merge pull request #36726 from PolyProgrammist/s3clustermacro
...
Handle cluster macro in s3Cluster table function
2022-05-11 18:00:57 +02:00
Yakov Olkhovskiy
6d3a54a044
Merge pull request #36467 from olevino/wyhash
...
Wyhash
2022-05-11 09:57:09 -04:00
Rich Raposa
3215c98319
Merge pull request #37116 from lanfz/master
...
Misspelled words
2022-05-11 07:23:33 -06:00
Rich Raposa
ee0cef3576
Merge pull request #37118 from ClickHouse/test-doc-update
...
Mini update of testing guide
2022-05-11 07:22:33 -06:00
Rich Raposa
e260416b5a
Merge pull request #37102 from ClickHouse/rfraposa-patch-5
...
Fix table on formats.md page
2022-05-11 07:21:01 -06:00
Robert Schulze
f07d4177a5
Small update of testing guide
...
- the guide talked about 'testmode' but that doesn't seem to exist
anymore (grep for it ...), and the command works w/o 'testmode'
- also replaced parameter '-n' by its full form '--multiquery' for
readability
'
2022-05-11 14:38:16 +02:00
Robert Schulze
7232f47c68
Fix Bug 37114 - ilike on FixedString(N) columns produces wrong results
...
The main fix is in MatchImpl.h where the "case_insensitive" parameter is
added to Regexps::get().
Also made "case_insensitive" a non-default template parameter to reduce
the risk of future bugs.
The remainder of this commit are minor random code improvements.
resoves #37114
2022-05-11 14:30:21 +02:00
Nikolai Kochetov
2d99f0ce13
Simplify code a little bit.
2022-05-11 12:16:15 +00:00
lanfz
6be44ae90d
Misspelled words
...
partiton Modified to partition
2022-05-11 20:08:53 +08:00
Mikhail f. Shiryaev
75d5271ec8
Merge pull request #37113 from ClickHouse/fix-tags-workflow
...
Fix workflow style check
2022-05-11 13:52:15 +02:00
Mikhail f. Shiryaev
f9346d6981
Fix shellcheck in tags_stable.yml
2022-05-11 13:29:14 +02:00
Alexander Tokmakov
c604fb1a71
Merge pull request #37101 from azat/stateless-tests-fixes
...
tests: fix 01119_optimize_trivial_insert_select (due to max_threads randomization)
2022-05-11 14:15:28 +03:00
Kruglov Pavel
f664b6a5be
Merge pull request #37043 from Avogar/fix-arrow-dict
...
Fix LowCardinality->ArrowDictionary invalid output
2022-05-11 13:01:53 +02:00
vdimir
2f5959aca6
Upd cross_to_inner_join_rewrite setting, add test
2022-05-11 10:56:43 +00:00
Nikolai Kochetov
4b8a2e2d80
Fix fuzzed queries.
2022-05-11 10:22:34 +00:00
Mikhail f. Shiryaev
3fa955aec1
Merge pull request #37057 from ClickHouse/changelog
...
Changelog script
2022-05-11 10:54:29 +02:00
Mikhail f. Shiryaev
d5b1e39bb9
Merge pull request #36866 from ClickHouse/integration-tests
...
Fix using proper image for integration tests; improve logging; fix docker volume cleaning in integration-tests-runner.
2022-05-11 10:46:51 +02:00
rfraposa
3234534dd8
Fix table on formats.md page
2022-05-10 22:55:17 -06:00
Azat Khuzhin
91042ff4eb
tests: fix 01119_optimize_trivial_insert_select (due to max_threads randomization)
2022-05-11 07:25:31 +03:00
alesapin
5c725fe77c
Merge pull request #36857 from ClickHouse/dont_finalize_s3_buffer
...
Terminate if S3 buffer is not finalized
2022-05-11 00:57:10 +02:00
alesapin
0f276a0956
Merge pull request #36947 from ClickHouse/dump_ordered_sessions_map
...
Force keeper snapshot equality on different replicas
2022-05-10 23:36:09 +02:00
alesapin
3cc8e2af51
Merge pull request #37079 from ClickHouse/disable_thread_fuzzer
...
Disable thread fuzzer after server restart
2022-05-10 23:24:34 +02:00