Commit Graph

331 Commits

Author SHA1 Message Date
Alexey Milovidov
0069a949c4 Fix test 2022-08-11 10:04:31 +02:00
Alexey Milovidov
1a31f82d1e Add a test for #10575 2022-08-11 07:45:48 +02:00
UnamedRus
d828e79ea1
Update 00175_partition_by_ignore.reference 2022-08-04 15:45:06 +03:00
UnamedRus
61b7025981
Create 00175_partition_by_ignore.reference 2022-08-04 00:05:24 +03:00
UnamedRus
aa0c0cf2f9
Add test for ignore function in PARTITION KEY 2022-08-04 00:02:44 +03:00
Igor Nikonov
6a84073801 Fix test 2022-07-27 13:48:17 +00:00
Igor Nikonov
377c04fbf1 Merge remote-tracking branch 'origin/master' into fix_distinct_sorted 2022-07-27 13:01:18 +00:00
Igor Nikonov
cac4d77d0b Merge remote-tracking branch 'origin/master' into distinct_sorted_chunk_perf_impr 2022-07-26 20:36:38 +00:00
Igor Nikonov
24f3a6905f
Merge branch 'master' into fix_distinct_sorted 2022-07-26 21:57:44 +02:00
Mikhail f. Shiryaev
061e61919a
Merge pull request #39450 from ClickHouse/tsal-clang-13
Build thread sanitizer binaries with clang-13
2022-07-26 15:13:17 +02:00
Igor Nikonov
f574a00e7b Fix test 2022-07-25 07:56:50 +00:00
Alexey Milovidov
1f4e7ea34c Add a test 2022-07-25 05:37:07 +02:00
Alexey Milovidov
4cbf4741fb Add a test 2022-07-25 04:16:07 +02:00
Igor Nikonov
5829e47adb Add test: check the optimized DISTINCT output is the same as for
ordinary one
2022-07-24 22:27:02 +00:00
Anton Popov
c1a5514e46 fix reading from async read buffer with direct io 2022-07-22 16:58:30 +00:00
Mikhail f. Shiryaev
c6b251d0cb
Revert "Merge pull request #38106 from ClickHouse/tsan_less_flaky_tests"
This reverts commit 0ae0cc54aa, reversing
changes made to 1d7cf28cab.
2022-07-22 12:14:23 +02:00
Igor Nikonov
8bd423f7dc Fix test: move test to stateful tests 2022-07-21 05:27:31 +00:00
Dmitry Novik
ffa5ef6293 Update tests 2022-07-12 00:14:41 +00:00
vdimir
a4b93c7454
Add algorithms to 00172_parallel_join 2022-07-06 14:27:34 +00:00
Alexander Tokmakov
7c37079a96 Merge branch 'master' into deprecate_ordinary_database 2022-06-27 14:46:59 +02:00
Robert Schulze
2c828338f4
Replace hyperscan by vectorscan
This commit migrates ClickHouse to Vectorscan. The first 10 min of
[0] explain the reasons for it.

(*) Addresses (but does not resolve) #38046

(*) Config parameter names (e.g. "max_hyperscan_regexp_length") are
    preserved for compatibility. Likewise, error codes (e.g.
    "ErrorCodes::HYPERSCAN_CANNOT_SCAN_TEXT") and function/class names (e.g.
    "HyperscanDeleter") are preserved as vectorscan aims to be a drop-in
    replacement.

[0] https://www.youtube.com/watch?v=KlZWmmflW6M
2022-06-24 10:47:52 +02:00
Alexander Tokmakov
f00e6b5a7a deprecate old MergeTree syntax 2022-06-23 11:24:54 +02:00
Nikolai Kochetov
b8d27aa8dd
Merge pull request #37469 from azat/projections-optimize_aggregation_in_order
Implement in order aggregation (optimize_aggregation_in_order) for projections for tables with fully materialized projections
2022-06-21 12:17:35 +02:00
Alexander Tokmakov
ca649da97f better comments 2022-06-16 12:12:44 +02:00
Azat Khuzhin
3e833b403d tests: fix expectations for 00172_early_constant_folding
After AggregatingStep is used, there is not StrictResize processor,
since there is only one stream.

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-06-16 09:58:36 +03:00
Alexander Tokmakov
9cac78b498 make tests with tsan less flaky 2022-06-15 19:54:46 +02:00
Nikolai Kochetov
8991f39412 Merge branch 'master' into refactor-read-metrics-and-callbacks 2022-06-02 17:00:08 +00:00
Nikita Mikhaylov
d34e051c69
Support for simultaneous read from local and remote parallel replica (#37204) 2022-06-02 11:46:33 +02:00
Nikolai Kochetov
e993343c89 Fix another one test. 2022-05-31 21:38:56 +00:00
mergify[bot]
b43cfd056f
Merge branch 'master' into floating_seconds 2022-05-30 19:18:35 +00:00
Raúl Marín
a86aa43baa Merge remote-tracking branch 'blessed/master' into floating_seconds_2 2022-05-24 17:10:45 +02:00
mergify[bot]
51ff49a0ee
Merge branch 'master' into i_object_storage 2022-05-23 20:29:49 +00:00
avogar
a6a430c5ee Merge branch 'master' of github.com:ClickHouse/ClickHouse into json-columns-formats 2022-05-20 11:08:30 +00:00
alesapin
654b27e307 Merge branch 'master' into i_object_storage 2022-05-20 11:56:13 +02:00
alesapin
d4abbf54b0
Update 00170_s3_cache.sql 2022-05-18 23:21:07 +02:00
alesapin
19462bdf9e Drop filesystem cache before test 2022-05-18 14:31:28 +02:00
Kruglov Pavel
2b655ccb75
Speed up test 00157_cache_dictionary 2022-05-18 12:12:41 +02:00
Raúl Marín
644b7c01bd Lower the value of settings to match old behaviour
Before the change to use floats, this settings were getting
0 as the parsed value, so keep the old value by setting to
zero explicitly
2022-05-14 01:19:19 +02:00
mergify[bot]
4a661b6e78
Merge branch 'master' into json-columns-formats 2022-05-13 11:32:03 +00:00
avogar
02679c7222 Fix tests 2022-05-10 16:27:59 +00:00
vdimir
d712985575
Minor style changes for ConcurrentHashJoin 2022-05-06 15:17:46 +00:00
Vladimir C
bd5fab97d9
Merge pull request #36415 from bigo-sg/concurrent_join 2022-05-06 17:11:10 +02:00
alesapin
c72596bae6
Merge pull request #36763 from kssenii/fix-async-reads
Fix some issues with low cardinality and async reads from remote fs
2022-04-29 12:18:19 +02:00
kssenii
c31aae0ef4 Update test 2022-04-29 01:17:11 +02:00
Kseniia Sumarokova
5c69e0e1c2
Update 00170_s3_cache.reference 2022-04-28 16:41:23 +02:00
Kseniia Sumarokova
f0ce3337d4
Fix reference 2022-04-28 16:40:23 +02:00
Kseniia Sumarokova
558aecc48b
Update 00170_s3_cache.sql 2022-04-28 13:34:05 +02:00
Kseniia Sumarokova
5198eec6f7
Update 00170_s3_cache.sql 2022-04-26 13:58:35 +02:00
lgbo-ustc
981d560553 Merge remote-tracking branch 'ck/master' into concurrent_join 2022-04-25 13:00:04 +08:00
Alexey Milovidov
28ab036e08
Merge pull request #35976 from kitaisreal/performance-tests-fix
Fix performance tests
2022-04-24 06:17:40 +03:00
Nikita Mikhaylov
224f4dc620
Made parallel_reading_from_replicas work with localhost replica (#36281) 2022-04-22 15:52:38 +02:00
lgbo-ustc
fbd549c6ac update test scripts 2022-04-21 18:07:44 +08:00
lgbo-ustc
c844415578 add new join_algorithm parallel_hash 2022-04-20 19:47:16 +08:00
lgbo-usstc
09bfcb0ded update test scripts 2022-04-20 16:39:31 +08:00
lgbo-ustc
95dd07f0b3 update fast test scripts 2022-04-20 14:03:35 +08:00
lgbo-ustc
3d7338581b Improve join
now adding joined blocks from right table can be run parallelly, speedup the join process
2022-04-19 16:07:30 +08:00
Alexey Milovidov
24c13853c3 Fix slow test 2022-04-18 01:45:44 +02:00
Maksim Kita
2a950102bc Fixed tests 2022-04-13 16:41:21 +02:00
Maksim Kita
aa0464d81e Fixed tests 2022-04-12 18:50:51 +02:00
Kruglov Pavel
5ceb96be87
Fix tests 2022-04-11 14:56:49 +02:00
Kruglov Pavel
9ce069c8b5
Fix tests 2022-04-11 14:56:32 +02:00
avogar
833836e8da Try to avoid timeoutes in parallel parsing tests 2022-04-08 16:46:11 +00:00
Azat Khuzhin
c5ffbc688e Do not allow SETTINGS after FORMAT for INSERT queries
Parsing SETTINGS after FORMAT, that has been introduced in [1], can
interpret SETTING as some values, which is misleading.

  [1]: https://github.com/ClickHouse/ClickHouse/pull/4174/files#diff-ba7bd0657630b1cd94cf6ed364bd857338096f49f66dc82918438d6745753775R106

Note, that we are touching only INSERT queries, not SELECT, since this
is a backward incompatible change, and in case of modifying SELECT it
can break too much.

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
Fixes: #35100
Fixes: #20343
2022-04-07 16:29:36 +03:00
Kruglov Pavel
57ddb18f86
Make test 00159_parallel_formatting_tsv_and_friends.sh more stable 2022-04-06 16:04:55 +02:00
kssenii
3fd462bc05 Merge master 2022-04-05 00:06:18 +02:00
tavplubix
cf8332e109
Update 00170_s3_cache.reference 2022-03-30 14:38:21 +03:00
tavplubix
531942ce5c
Update 00170_s3_cache.sql 2022-03-30 12:43:34 +03:00
Alexander Tokmakov
6191eaa983 fix some flaky tests 2022-03-29 23:12:06 +02:00
Alexander Tokmakov
c37945b2c8 run stateful tests in parallel 2022-03-29 15:24:29 +02:00
mergify[bot]
f22fddc3ec
Merge branch 'master' into random-settings 2022-03-21 11:52:21 +00:00
Nickita Taranov
675bf1916a add test 2022-03-20 18:07:59 +00:00
kssenii
d136916508 Remove testmode option 2022-03-17 10:54:37 +01:00
avogar
2800e6052a Fix tests 2022-03-14 18:55:54 +00:00
Alexey Milovidov
7c84b33918 Update test references 2022-03-12 20:10:34 +01:00
Alexey Milovidov
8ddf63c272 Change timezone in stateful tests. 2022-03-12 00:31:20 +01:00
kssenii
aab3de76ca Update test 2022-03-09 16:13:02 +01:00
kssenii
894161430b Update tests 2022-03-08 23:53:52 +01:00
kssenii
16e84c265b Fix build, update test 2022-03-08 21:41:58 +01:00
kssenii
5260822964 Merge master 2022-03-08 18:21:28 +01:00
kssenii
c20c7453a8 Fix tests 2022-03-08 09:17:04 +01:00
avogar
2b77416bf1 Fix tests 2022-03-01 11:35:17 +00:00
kssenii
9983a5d802 Add test for profile events 2022-02-28 15:47:12 +01:00
avogar
dbb29dd394 Fix tests 2022-02-28 12:17:44 +00:00
kssenii
26f58274b6 Fix stateful test 2022-02-22 12:05:43 +01:00
kssenii
353ffacca3 Add test 2022-02-17 19:57:04 +01:00
kssenii
f9622d44f0 Try add stateful tests 2022-02-16 14:18:55 +01:00
avogar
880780c7a8 Fix some tests 2022-02-11 17:15:56 +03:00
vdimir
e5613fce3c Support USE_* build flags in tests' tags 2022-01-19 12:21:51 +00:00
Alexey Milovidov
e80f4008fa Fix idiotic test 2022-01-04 00:50:41 +03:00
Alexey Milovidov
420baf54bd Add tests 2022-01-03 00:30:16 +03:00
Alexey Milovidov
f9d3e45e49 Remove strange whitespace 2021-12-24 12:25:27 +03:00
Nikita Mikhaylov
dbf5091016
Parallel reading from replicas (#29279) 2021-12-09 13:39:28 +03:00
Alexey Milovidov
d604cf5573 Remove the infamous "unbundled" build 2021-11-21 13:58:26 +03:00
Kruglov Pavel
0715566cc0
Merge branch 'master' into tsv-csv 2021-10-27 17:52:49 +03:00
tavplubix
d7c69f6c02
Merge pull request #29202 from aiven/kmichel-replicated-database-alter-attach
Allow non-replicated ALTER TABLE FETCH/ATTACH in Replicated databases
2021-10-27 16:42:54 +03:00
Kruglov Pavel
dbc2f3408e
Merge branch 'master' into tsv-csv 2021-10-18 14:38:22 +03:00
alesapin
4ab6f7d771 Finally fix test 2021-10-15 10:39:31 +03:00
avogar
324dfd4f81 Refactor and improve TSV, CSV and JSONCompactEachRow formats, fix some bugs in formats 2021-10-14 13:32:49 +03:00
alesapin
01ac2fea79
Update 00167_read_bytes_from_fs.sql 2021-10-14 12:44:41 +03:00
alesapin
386d47cb22 Fix typo 2021-10-14 10:49:29 +03:00
alesapin
2473bc5aff Fix test 2021-10-13 18:12:04 +03:00
alesapin
d2dfbb5ab6 Remove trash from MergeTreeReadPool 2021-10-13 15:25:44 +03:00
Kevin Michel
14b1c438cc
Enable all tests using ATTACH/FETCH on Replicated database 2021-09-27 10:10:46 +02:00
Vitaly Baranov
39d73c01b2 Add tags to tests. 2021-09-12 17:15:28 +03:00
Maksim Kita
e6b339fbb3
Merge pull request #26845 from kitaisreal/compile-aggregate-functions-without-key
Compile aggregate functions without key
2021-08-09 11:52:52 +03:00
Maksim Kita
3a6b37691a Compile aggregate functions without key 2021-07-27 19:50:57 +03:00
Alexey Milovidov
aeeea32eb1 Fix test 2021-07-18 20:01:21 +03:00
Alexey Milovidov
e26f66f51f Fix test 2021-07-18 18:32:34 +03:00
Alexey Milovidov
2fedbfdf65 Fix test 2021-07-18 18:30:59 +03:00
Alexey Milovidov
009625b154 Fix tests 2021-07-18 18:18:55 +03:00
Alexey Milovidov
819d2e9cf7 Fix some tests 2021-07-18 12:16:35 +03:00
mergify[bot]
89634ae224
Merge branch 'master' into estimates_for_select_query 2021-07-16 23:15:30 +00:00
Peng Jian
63f2b9f342 fix test 2021-07-15 16:07:17 +08:00
Peng Jian
9c4dbda0ef fix tast case reference 2021-07-15 14:25:05 +08:00
Peng Jian
ac06ba3329 add test reference 2021-07-15 11:12:28 +08:00
Peng Jian
93b09c54fd add test case 2021-07-14 21:12:32 +08:00
Maksim Kita
dc81ae7c6e Compile AggregateFunctionBitwise 2021-07-10 01:51:34 +03:00
Maksim Kita
325b54f623 Aggregator compile only part of aggregate functions 2021-07-01 22:56:36 +03:00
Maksim Kita
92a36e38f1 AggregateFunctionAvgWeighted fix accuracy 2021-07-01 22:56:36 +03:00
Maksim Kita
22491c8adc Compile AggregateFunctionCount 2021-07-01 22:56:36 +03:00
Maksim Kita
61a5c4f493 Fix min, max aggregate functions merge 2021-07-01 22:56:36 +03:00
Azat Khuzhin
e0c1780370 Fix topLevelDomain() for IDN hosts 2021-06-09 10:59:56 +03:00
Azat Khuzhin
8058166d55 tests: fix flakiness with system.{parts,detached_parts,columns,parts_clumns,tables} 2021-05-22 14:07:21 +03:00
alexey-milovidov
7b38ad3a85
Merge pull request #23204 from RedClusive/feature-quantileBfloat16
Feature quantile bfloat16
2021-05-21 23:46:05 +03:00
Azat Khuzhin
8b438bcd3c Change formatting of subqueries (make it more human friendly)
Fix trailing whitespaces in FROM/IN clause with subqueries in multiline
mode, and also changes the output of the queries slightly in a more
human friendly way.

Before:

    $ clickhouse-format <<<'select * from system.one, (select * from system.one)'
    SELECT *
    FROM system.one
    ,
    (
        SELECT *
        FROM system.one
    )

After:

    $ clickhouse-format <<<'select * from system.one, (select * from system.one)'
    SELECT *
    FROM system.one,
    (
        SELECT *
        FROM system.one
    )

v2: Fix subqueries formatting in a different way
v3: Adjust *.reference in tests
v4: Fix modernize-loop-convert in ASTTablesInSelectQuery
2021-05-20 21:04:12 +03:00
RedClusive
8ed90864cb refactored 2021-04-26 09:39:08 +00:00
RedClusive
907115a4c4 add tests 2021-04-25 21:49:02 +00:00
alexey-milovidov
1d5a4cfa32
Revert "[RFC] Fix memory tracking with min_bytes_to_use_mmap_io" 2021-04-19 01:30:53 +03:00
Azat Khuzhin
a963fba41a Update 00084_external_aggregation to avoid using mmap 2021-04-17 10:37:58 +03:00
Nikita Mikhailov
37f48d13b4 add test 2021-04-06 22:23:16 +03:00
Alexey Milovidov
bfd042a979 Lower scale of a test 2021-04-01 18:27:24 +03:00
Alexey Milovidov
e32beab913 Add a test for mmap IO 2021-03-26 22:08:53 +03:00
Nikita Mikhaylov
8e68edebea better test 2021-03-11 18:22:24 +03:00
Nikita Mikhaylov
87eb2592de add input_format_skip_unknown_fields 2021-03-11 18:22:24 +03:00
Nikita Mikhailov
369c9da161 better 2021-03-11 18:22:24 +03:00
Nikita Mikhailov
138dedf2df done 2021-03-11 18:22:24 +03:00
Nikita Mikhailov
ac476ad83e done 2021-02-15 14:27:16 +03:00
Alexey Milovidov
9c111a7bdb Translate comment in test 2021-01-29 03:53:54 +03:00
Alexey Milovidov
8fe85b5fcb Add stateful test 2021-01-15 00:33:54 +03:00
Nikita Mikhailov
d4ec52f732 shellchek 2020-12-30 18:21:58 +03:00
Nikita Mikhailov
cc794b7a83 Merge branch 'master' of github.com:ClickHouse/ClickHouse into parallel-parsing-input-format 2020-12-30 16:55:15 +03:00
Nikita Mikhailov
107360fc77 add tests 2020-12-30 00:04:39 +03:00
Yatsishin Ilya
a25fa1996b fix style checks 2020-12-29 17:57:12 +03:00
Ivan
57763e6867
Enable Pytest framework for stateless tests (#17902) 2020-12-18 16:26:11 +03:00
Ivan
315ff4f0d9
ANTLR4 Grammar for ClickHouse and new parser (#11298) 2020-12-04 05:15:44 +03:00
nikitamikhaylov
0d1a8ea2a1 first try 2020-11-17 16:59:12 +03:00
Anton Popov
3e855daefd Merge remote-tracking branch 'upstream/master' into HEAD 2020-09-15 15:31:29 +03:00
Alexander Tokmakov
da6beb1a91 Merge branch 'master' into enable_some_tests_with_database_atomic 2020-09-14 23:00:14 +03:00
Anton Popov
d1c35dc794 Merge remote-tracking branch 'upstream/master' into HEAD 2020-09-10 03:13:08 +03:00
Alexander Tokmakov
b68782d285 enable more tests with Atomic database 2020-09-09 16:32:50 +03:00
Azat Khuzhin
0324770773 Remove all trailing whitespaces in tests
sed -r -i \
    -e 's/SELECT $/SELECT/' \
    -e 's/SELECT DISTINCT $/SELECT DISTINCT/' \
    -e 's/WITH $/WITH/' \ # zero matches, new test will be added
    -e 's/ARRAY JOIN $/ARRAY JOIN/' \
    -e 's/GROUP BY $/GROUP BY/' \
    -e 's/ORDER BY $/ORDER BY/' \
    -e 's/LIMIT ([0-9]+) BY $/LIMIT \1 BY/' \ # zero matches, new test will be added
    tests/queries/*/*.sql \
    tests/queries/*/*.reference

(With except for tests/queries/0_stateless/00751_default_databasename_for_view.reference)
2020-09-09 01:36:58 +03:00
Nikita Mikhaylov
540884677e final fix 2020-08-20 17:39:30 +03:00
Nikita Mikhaylov
7592865e42
update test and bump ci 2020-08-19 05:51:59 +04:00
Nikita Mikhaylov
ac1962e54b
Update 00157_cache_dictionary.reference 2020-08-12 18:07:14 +03:00
nikitamikhaylov
83b106e43f add test 2020-08-12 16:06:46 +03:00
alesapin
7d1283247f Fix tests 2020-08-07 20:16:59 +03:00
Alexey Milovidov
5a69058289 shellcheck --check-sourced --external-sources --severity info --exclude SC1071 --format diff */*.sh | git apply 2020-08-03 00:24:16 +03:00
Alexey Milovidov
1a487f88d6 Minor changes 2020-08-03 00:24:16 +03:00
Alexey Milovidov
c5f46b37e6 Update some tests but not all 2020-06-28 00:18:27 +03:00
Alexey Milovidov
3142006182 Leave only relevant part of the test 2020-06-19 21:44:33 +03:00
Alexey Milovidov
26ea16537c Added a test for stack unwinding from within Hyperscan 2020-06-19 14:50:33 +03:00
Anton Popov
5c42408add
Merge pull request #9113 from dimarub2000/group_by_in_order_optimization
[WIP] Optimization of GROUP BY with respect to table sorting key.
2020-06-06 14:25:59 +03:00
Dmitry
2c7e3eab23 stateful tests updated with setting 2020-06-05 20:03:36 +03:00
Alexey Milovidov
421a62e978 Merge branch 'master' into fix-false-too-slow 2020-05-30 19:36:55 +03:00
Alexey Milovidov
2ba268c80a Added a test for #6228 2020-05-29 23:45:47 +03:00
alesapin
bd03d1acb9 Remove hardcoded database from some tests and add retries to clickhouse-test 2020-05-29 13:08:11 +03:00
Andrew Onyshchuk
1ee875a5fc Add test 2020-05-10 23:15:59 -05:00
Alexey Milovidov
baf9cc99df Update test reference 2020-05-02 14:38:53 +03:00
alexey-milovidov
ddefb89d86
Update 00154_avro.sql 2020-05-01 23:13:18 +03:00
Alexey Milovidov
c15fe728fd Lower memory usage in tests #10277 2020-05-01 21:26:52 +03:00
Alexander Tokmakov
fefbbd37df Merge branch 'master' into database_atomic 2020-04-22 17:02:30 +03:00
Alexey Milovidov
e6acb35d95 Added a fix from Vadim Plakhtinskiy @VadimPlh 2020-04-22 07:32:05 +03:00
Alexander Tokmakov
b29bddac12 Merge branch 'master' into database_atomic 2020-04-20 14:09:09 +03:00
Artem Zuikov
6106b2bfc7 Merge branch 'master' into joins 2020-04-13 20:37:27 +03:00
Artem Zuikov
0b7ae2c2bf working version 2020-04-13 20:03:11 +03:00
Alexander Tokmakov
20e6593f96 disable by default 2020-04-12 21:52:59 +03:00
Alexander Tokmakov
5e6d4b9449 Merge branch 'master' into database_atomic 2020-04-12 16:35:44 +03:00
Alexey Milovidov
cf483b7ecc Added a test 2020-04-12 01:14:55 +03:00
Artem Zuikov
ba50519af8 workaround for function resolver 2020-04-10 13:28:44 +03:00
Alexander Tokmakov
9c67d2716e Merge branch 'master' into database_atomic 2020-04-03 03:19:11 +03:00
Ivan
97f2a2213e
Move all folders inside /dbms one level up (#9974)
* Move some code outside dbms/src folder
* Fix paths
2020-04-02 02:51:21 +03:00