Alexey Milovidov
3f8c1a1433
Add a test
2021-08-08 04:36:34 +03:00
alexey-milovidov
da803b56c1
Merge pull request #27380 from amosbird/logformattedquery
...
Add setting to log formatted query into system.query_log
2021-08-08 04:09:19 +03:00
alexey-milovidov
6811eb5e39
Merge pull request #27214 from azat/tests-replicated-database-macro
...
Allow parallel execution of *.sql tests with ReplicatedMergeTree (by using {database} macro)
2021-08-08 04:05:59 +03:00
alexey-milovidov
c5207fc237
Merge pull request #26466 from azat/optimize-dist-select
...
Rework SELECT from Distributed optimizations
2021-08-08 03:59:32 +03:00
alexey-milovidov
a60d60dec1
Merge pull request #27153 from CurtizJ/legacy-tuple-name
...
Implement `legacy_column_name_of_tuple_literal` in a less intrusive way
2021-08-08 01:16:31 +03:00
Azat Khuzhin
c62de36e4c
Mark more tests as long
2021-08-08 00:55:40 +03:00
mergify[bot]
9869c8bb10
Merge branch 'master' into zero_copy_by_default
2021-08-07 16:53:44 +00:00
alexey-milovidov
6b6b4f114b
Merge pull request #27089 from ianton-ru/fix_test_merge_tree_s3_failover
...
Fix test_merge_tree_s3_failover with debug build
2021-08-07 19:46:37 +03:00
alexey-milovidov
ac3abb8fd2
Update test.py
2021-08-07 19:46:19 +03:00
mergify[bot]
589505e76b
Merge branch 'master' into legacy-tuple-name
2021-08-07 16:42:20 +00:00
alexey-milovidov
af1d41a3de
Merge pull request #27228 from myrrc/improvement/tester-changes
...
Using formatted string literals in clickhouse-test, extracted sort key functions and stacktraces printer
2021-08-07 19:35:46 +03:00
alexey-milovidov
4b52c37681
Merge pull request #27249 from azat/fix-WithMergeableStateAfterAggregationAndLimit
...
Fix WithMergeableStateAfterAggregationAndLimit with LIMIT BY and LIMIT OFFSET
2021-08-07 19:28:59 +03:00
alexey-milovidov
d9eab713aa
Merge pull request #27324 from Algunenano/fix_01300
...
Fix 01300_client_save_history_when_terminated_long
2021-08-07 19:27:29 +03:00
alexey-milovidov
22bc7eb170
Merge pull request #27294 from Algunenano/better_kafka_errors
...
Improve kafka integration test error messages
2021-08-07 19:26:31 +03:00
alexey-milovidov
7512b61dd9
Merge pull request #27300 from Algunenano/flaky_00738
...
Improve 00738_lock_for_inner_table stability
2021-08-07 19:25:02 +03:00
alexey-milovidov
24cc073a22
Merge pull request #27328 from ClickHouse/fix_partition_id_validation
...
Fix partition id validation
2021-08-07 18:45:19 +03:00
alexey-milovidov
833b232bae
Merge pull request #27383 from kssenii/fix-test
...
Fix flacky test
2021-08-07 18:40:57 +03:00
alexey-milovidov
fa5bcb2e30
Merge pull request #27301 from ClickHouse/fix-unknown-column-with-sampling
...
Fix unknown column with sampling
2021-08-07 18:39:19 +03:00
Nikolay Degterinsky
b5a6e18511
Small fixes
2021-08-07 15:15:49 +00:00
Azat Khuzhin
86ceaaadb9
Mark more tests as long
2021-08-07 17:40:09 +03:00
Azat Khuzhin
07e1047b4f
Mark more tests as long
2021-08-07 16:30:12 +03:00
Azat Khuzhin
08beb313e8
Mark more tests as long
2021-08-07 15:06:01 +03:00
Braulio Valdivielso
3fdc2aae19
test that the tcp handler returns correct http responses
...
I have added two tests. One checks the usual scenario where the
instance's config specifies a `http_port`. In that case, we expect the
`http_port` to be part of the response. The other scenario checks what
happens when the config doesn't specify a `http_port`. It's hard to
nail down the expectation there without hardcoding the error
response (which is not what we generally want) but I'm mainly checking
that no HTTP port is mentioned. This particular test would have failed
before my previous fix, because the TCP handler wouldn't have managed
to send back an HTTP response and `requests.post` would have thrown an
exception.
2021-08-07 11:56:05 +01:00
董海镔
3dcff2124c
rename bitmapSubsetOffsetLimit to subBitmap and modify the rb_offset_limit function logic
2021-08-07 18:47:33 +08:00
Nikolay Degterinsky
bf0297ccab
Fix stateless test
2021-08-07 09:51:35 +00:00
Azat Khuzhin
8f5ecb5ed6
Mark more tests as long
2021-08-07 12:50:42 +03:00
kssenii
bc7eaad5ca
Fix
2021-08-07 12:35:59 +03:00
Amos Bird
5ef59d4828
Add setting to log formatted query into system.query_log
2021-08-07 14:26:38 +08:00
Amos Bird
aa33a7add1
Add settings to check hyperscan regexp length.
2021-08-07 13:07:41 +08:00
Nikolay Degterinsky
9a45458faf
Add bzip2 file compression
2021-08-07 00:25:52 +00:00
Alexander Tokmakov
5e2bfd5ba1
fix partition id validation
2021-08-06 23:56:51 +03:00
Azat Khuzhin
1fcbd1e196
Mark more tests as long
2021-08-06 23:46:29 +03:00
Nikolai Kochetov
28c33ce7c4
Add test.
2021-08-06 21:53:22 +03:00
Nikolai Kochetov
e068ea3913
Add test.
2021-08-06 21:51:43 +03:00
alexey-milovidov
e1927118cd
Merge pull request #27181 from vdimir/issue-27169
...
Fix uninitialized memory in functions multiSearch* with empty array
2021-08-06 21:10:22 +03:00
alexey-milovidov
ef7b695057
Merge pull request #27275 from Algunenano/fix_01099
...
01099_operators_date_and_timestamp: Use dates that work with all available timezones
2021-08-06 21:06:36 +03:00
Nikolai Kochetov
157ecef3c2
Merge pull request #27227 from ClickHouse/do-not-update-settings-for-view
...
Revert #24095 . User-level settings will affect queries from view.
2021-08-06 20:57:36 +03:00
Raúl Marín
8439135960
Try to make the test faster
2021-08-06 18:28:44 +02:00
Alexander Kuzmenkov
658ce5258f
Merge pull request #26663 from ildus/mappopulateseries_for_maps
...
Add Map type support in mapPopulateSeries function
2021-08-06 18:53:37 +03:00
Raúl Marín
28901ef55f
Fix 01300_client_save_history_when_terminated_long
...
It was broken because of colored output
2021-08-06 17:25:24 +02:00
Vladimir C
9de16c5017
Merge pull request #27216 from ianton-ru/MDB-13990
2021-08-06 18:12:00 +03:00
Azat Khuzhin
1f60cd735d
Revert changes in 01710_projection_fetch
2021-08-06 17:52:23 +03:00
Artur
e00536dede
correcting test
2021-08-06 14:47:20 +00:00
Mike Kot
a308c8f842
Extracted test skipping functions
2021-08-06 17:39:44 +03:00
Mike Kot
af536b1b5e
Using formatted string literals, extracted sort funcs in tester
2021-08-06 17:39:44 +03:00
Nikolai Kochetov
48eb995461
Fix unknown column bug in sampling.
2021-08-06 17:23:50 +03:00
Raúl Marín
d33a634014
Improve 00738_lock_for_inner_table stability
...
A sufficiently fast machine would finish processing the MV before the drop
2021-08-06 16:12:59 +02:00
Nikolai Kochetov
7320411a7f
Fix bug from #23515 .
2021-08-06 16:39:11 +03:00
vdimir
3ca05653bb
Use template for 01049_join_low_card_bug_long.sql
2021-08-06 15:07:50 +03:00
vdimir
d53ade572e
Fix non joined stream structure
2021-08-06 14:54:04 +03:00
Raúl Marín
b4e417e507
test_kafka_virtual_columns_with_materialized_view: Limit iterations and show better error
2021-08-06 13:39:33 +02:00
Raúl Marín
4f1b02426a
test_storage_kafka: Remove duplicated code
2021-08-06 13:38:56 +02:00
Raúl Marín
226db3f6be
Integration runner: Output longer errors
2021-08-06 13:38:30 +02:00
Vitaly Baranov
9a40ce87e9
Use bytes instead of strings in the GRPC protocol.
2021-08-06 13:55:49 +03:00
Artur
985a906c57
correcting tests
2021-08-06 09:46:39 +00:00
Raúl Marín
084e3da13f
01099_operators_date_and_timestamp: Use dates that work with all available timezones
2021-08-06 11:36:52 +02:00
tavplubix
14ef66e49b
Merge pull request #25895 from ClickHouse/improve_create_or_replace
...
Improve CREATE OR REPLACE query
2021-08-06 11:58:46 +03:00
Vladimir C
7f7bf9654b
Merge pull request #27235 from Algunenano/fix_lambda_aliases
2021-08-06 11:27:45 +03:00
Azat Khuzhin
6747b8a03b
Mark more tests as long
2021-08-06 07:07:50 +03:00
Azat Khuzhin
c523904b74
Mark more tests as long
2021-08-06 14:00:07 +03:00
Azat Khuzhin
6567aeda6c
Mark more tests as long
2021-08-06 07:56:23 +03:00
Azat Khuzhin
735b730a52
Mark more tests as long
2021-08-06 00:20:48 +03:00
Azat Khuzhin
d0b6b167f5
Exclude 01493_alter_remove_properties_zookeeper from parallel run too
2021-08-06 00:19:04 +03:00
Azat Khuzhin
1358a2db92
Fix WithMergeableStateAfterAggregationAndLimit with LIMIT BY and LIMIT OFFSET
...
In case of LIMIT BY, pre LIMIT cannot be applied (that is done on the
shard before), and hence shard applies regular LIMIT, but it goes with
applying OFFSET, and also the initiator will do apply OFFSET too.
2021-08-06 00:16:26 +03:00
Azat Khuzhin
c4e2342a06
Add verbose description for pre-LIMIT into EXPLAIN query
2021-08-06 00:16:26 +03:00
alexey-milovidov
1a0570cdef
Merge pull request #27219 from evillique/perf
...
Fix NLP performance test
2021-08-05 22:05:59 +03:00
alexey-milovidov
1a3d8cebd2
Merge pull request #27197 from azat/nullable-index-fix
...
Fix on-disk format breakage for secondary indices over Nullable column
2021-08-05 21:52:18 +03:00
Alexander Kuzmenkov
75ce065626
fix the testflows tests for window function
2021-08-05 21:35:36 +03:00
Azat Khuzhin
685c7b8df2
Add some tests to parallel list excludes
2021-08-05 21:01:36 +03:00
Azat Khuzhin
d5987b7a06
Fix 00754_alter_modify_order_by_replicated_zookeeper
2021-08-05 21:01:36 +03:00
Azat Khuzhin
fbcf0962ee
Mark some tests as long
2021-08-05 21:01:35 +03:00
Raúl Marín
fd76966715
Test shadow lambda recovery
...
Be a good citizen and leave a test checking for the recovery
after the lambda function has been processed
2021-08-05 19:03:42 +02:00
Raúl Marín
8b9778ebb6
Shadow lambda arguments
...
In case of ambiguity, lambda functions should prefer its arguments to
other aliases or identifiers
2021-08-05 18:52:00 +02:00
董海镔
e8b6c0a227
add bitmapSubsetOffsetLimit function
2021-08-06 00:44:07 +08:00
Artur
d2869d2e2b
add test for memory tracker in client
2021-08-05 16:20:24 +00:00
Anton Ivashkin
0e040ca40c
Add 10 seconds cache for S3 proxy resolver
2021-08-05 18:52:04 +03:00
vdimir
a427b19d3a
Check join_use_nulls changed in StorageView::read
2021-08-05 18:38:52 +03:00
Kseniia Sumarokova
5edd9e0513
Merge pull request #27198 from kssenii/postgres-db-schema
...
Support schema for postgres database engine
2021-08-05 18:30:47 +03:00
Kruglov Pavel
59a94bd322
Merge pull request #27183 from ClickHouse/fix_detached_parts_name_partsing
...
Fix part name parsing in system.detached_parts
2021-08-05 18:21:03 +03:00
Nikolai Kochetov
fc12310ee8
Revert #24095 . User-level settings will affect queries from view.
2021-08-05 17:17:22 +03:00
Alexander Kuzmenkov
d852207b0e
Merge pull request #25721 from CurtizJ/read-in-order-perf-2
...
Reduce memory usage in queries with `ORDER BY primary_key
2021-08-05 16:13:48 +03:00
Maksim Kita
71e5cfe3ca
Merge pull request #27134 from FArthur-cmd/compress_output_3473
...
add compression for INTO OUTFILE
2021-08-05 14:20:08 +03:00
Alexander Kuzmenkov
4bc652699f
Merge pull request #27184 from ClickHouse/aku/window-functions
...
mark window functions as ready for general use
2021-08-05 14:18:28 +03:00
Nikolay Degterinsky
1e8badcf05
Improve NLP performance test
2021-08-05 11:07:31 +00:00
Maksim Kita
7fdf3cc263
Merge pull request #27180 from kitaisreal/storage-system-replicas-added-column-replica-is-active
...
Storage system replicas added column replica is active
2021-08-05 12:46:53 +03:00
alexey-milovidov
975e0a4d47
Merge pull request #27182 from amosbird/logquerykind
...
Try our best to log query_kind
2021-08-05 12:43:13 +03:00
Maksim Kita
7264c7bf4b
Fixed performance tests
2021-08-05 12:37:15 +03:00
Azat Khuzhin
c806534eee
Update parallel skip_list
2021-08-05 10:29:23 +03:00
kssenii
1e38d48364
Fixes
2021-08-05 07:25:47 +00:00
Azat Khuzhin
bc0af176fe
tests/stateless: add {database} macro for ReplicatedMergeTree in *.sql
2021-08-05 10:24:23 +03:00
Kseniia Sumarokova
3d347065a8
Merge pull request #27194 from azat/query_log_used-on-error
...
Save information about used functions/tables/... into query_log on error
2021-08-05 09:15:09 +03:00
Ildus Kurbangaliev
2ed7e02079
Fix snapshots for mapPopulateSeries function
2021-08-05 11:11:41 +05:00
Amos Bird
665f735044
Add some test
2021-08-05 10:50:11 +08:00
Azat Khuzhin
dee27fcbb9
Fix on-disk format breakage for secondary indices over Nullable column
...
[1] breaks on disk format (and the relevant change in the:
[1]: https://github.com/ClickHouse/ClickHouse/pull/12455#discussion_r682830812
Too bad that I checked this patchset only for compatibility after
reverting this patch [2] (use case: I've applied it manually, then
revert it, and data skipping indexes over Nullable column had been
broken)
[2]: https://github.com/ClickHouse/ClickHouse/pull/12455#issuecomment-823423772
But this patchset actually breaks compatibility with older versions of
clickhouse for Nullable data skipping indexes after simple upgrade:
Here is a simple reproducer:
--
-- run this with 21.6 or similar (i.e. w/o this patch)
--
CREATE TABLE data
(
`key` Int,
`value` Nullable(Int),
INDEX value_index value TYPE minmax GRANULARITY 1
)
ENGINE = MergeTree
ORDER BY key;
INSERT INTO data SELECT
number,
number
FROM numbers(10000);
SELECT * FROM data WHERE value = 20000 SETTINGS force_data_skipping_indices = 'value_index' SETTINGS force_data_skipping_indices = 'value_index', max_rows_to_read=1;
Now upgrade and run the query again:
SELECT * FROM data WHERE value = 20000 SETTINGS force_data_skipping_indices = 'value_index' SETTINGS force_data_skipping_indices = 'value_index', max_rows_to_read=1;
And it will fail because of on disk format changes:
$ ll --time-style=+ data/*/data/all_1_1_0/skp*.idx
-rw-r----- 1 azat azat 36 data/with_nullable_patch/data/all_1_1_0/skp_idx_value_index.idx
-rw-r----- 1 azat azat 37 data/without_nullable_patch/data/all_1_1_0/skp_idx_value_index.idx
$ md5sum data/*/data/all_1_1_0/skp*.idx
a19c95c4a14506c65665a1e30ab404bf data/with_nullable_patch/data/all_1_1_0/skp_idx_value_index.idx
e50e2fcfa873b232196623d56ab26105 data/without_nullable_patch/data/all_1_1_0/skp_idx_value_index.idx
Note, that there is no stable release with this patch included yet, so
no need to backport.
Also note that you may create data skipping indexes over Nullable
column even before [3].
[3]: https://github.com/ClickHouse/ClickHouse/pull/12455
v2: break cases when granulas has Null in values due to backward
compatibility
2021-08-05 00:19:38 +03:00
Azat Khuzhin
f710f1e954
Cover data skipping indices on disk format (compare with 21.6)
2021-08-05 00:19:32 +03:00
kssenii
f06703a7c9
Support schema for postgres database engine
2021-08-04 20:52:45 +00:00
Anton Popov
2b6dc35d9f
Merge pull request #27122 from amosbird/datedatetimecomp
...
Specialize date time comparision.
2021-08-04 21:44:48 +03:00
Azat Khuzhin
643c31d6f3
Save information about used functions/tables/... into query_log on error
2021-08-04 21:44:18 +03:00
Anton Popov
9a9aebc644
fix tests
2021-08-04 20:38:10 +03:00
tavplubix
538958aee6
Delete 01160_detached_parts.sql
2021-08-04 20:05:57 +03:00