Commit Graph

10832 Commits

Author SHA1 Message Date
Alexey Milovidov
f27c4d5fd4
Update 01958_partial_hour_timezone.reference 2022-04-25 03:25:00 +03:00
mergify[bot]
705d5af3a0
Merge branch 'master' into to_start_of_five_minutes 2022-04-24 22:24:24 +00:00
awakeljw
d58a21678a fix ConvertDecimalType unexpected behavior 2022-04-24 23:35:58 +08:00
alesapin
edc78247f0
Merge pull request #36299 from ClickHouse/fix_trash
Trying to fix some trash in zero copy replication
2022-04-24 13:19:43 +02:00
Alexey Milovidov
90297e225c
Merge pull request #36430 from amosbird/fixcolumnmatcher
Fix column matcher and column transformer
2022-04-24 09:11:21 +03:00
Alexey Milovidov
28ab036e08
Merge pull request #35976 from kitaisreal/performance-tests-fix
Fix performance tests
2022-04-24 06:17:40 +03:00
Alexey Milovidov
fe004c3486
Merge pull request #36486 from kitaisreal/executable-user-defined-functions-fix-group-by
ExecutableUserDefinedFunction fix usage in GROUP BY
2022-04-24 06:11:57 +03:00
tavplubix
e49323ca9c
Update 01161_all_system_tables.sh 2022-04-23 14:23:33 +03:00
alesapin
46792379e7 Merge branch 'master' into fix_trash 2022-04-23 12:05:35 +02:00
wuxiaobai24
751185a366 allow file descriptor in table function file() 2022-04-23 11:01:27 +08:00
avogar
700621e4e0 Fix tests 2022-04-22 17:38:39 +00:00
avogar
80eacc8533 Merge branch 'master' of github.com:ClickHouse/ClickHouse into improve-json-schema-inference 2022-04-22 17:18:44 +00:00
Anton Popov
50879555ef
Update 02286_tuple_numeric_identifier.sql 2022-04-22 18:29:57 +02:00
Yakov Olkhovskiy
5d59001d44 test is added 2022-04-22 11:07:32 -04:00
tavplubix
48dddc53b9
Update 01161_all_system_tables.sh 2022-04-22 17:32:53 +03:00
alesapin
18d094d79d
Merge pull request #35865 from azat/clickhouse-test-left-queries
clickhouse-test: fix left-queries-check, to fix test log parser
2022-04-22 15:59:38 +02:00
Nikita Mikhaylov
224f4dc620
Made parallel_reading_from_replicas work with localhost replica (#36281) 2022-04-22 15:52:38 +02:00
Anton Popov
5b5dd4fa46
Merge pull request #36423 from CurtizJ/return-back-36126
Return back #36126
2022-04-22 14:27:57 +02:00
Anton Popov
39fa397e9f allow names of tuple elements starting from digits 2022-04-22 12:07:23 +00:00
Antonio Andelic
2e187e4b97
Merge pull request #36439 from xiedeyantu/temp-table-improve
temporary table can show total rows and total bytes
2022-04-22 13:41:25 +02:00
Antonio Andelic
357dd7354c Fix no-parallel tag 2022-04-22 11:39:36 +00:00
Kseniia Sumarokova
33bb48106f
Merge pull request #36314 from CurtizJ/print-bad-filenames
Show names of erroneous files in case of parsing errors while executing table functions
2022-04-22 13:24:55 +02:00
Memo
523f33d57d add bin tests 2022-04-22 18:59:55 +08:00
Alexey Milovidov
e8575f5f35
Merge pull request #36327 from ucasfl/alias
Add aliases JSONLines and NDJSON for JSONEachRow
2022-04-22 07:08:02 +03:00
Memo
956d525840 fix conflict 2022-04-22 11:22:50 +08:00
Memo
39aadf0975 replaced toStartOfFiveMinute to toStartOfFiveMinutes 2022-04-22 10:49:59 +08:00
mergify[bot]
cd8fa75546
Merge branch 'master' into fix_trash 2022-04-21 21:45:31 +00:00
Maksim Kita
bac1f12a2b
Merge pull request #36167 from kitaisreal/special-operators-broken-aliases-fix
Fix broken aliases during parsing of special operators
2022-04-21 22:31:45 +02:00
mergify[bot]
e38a3c3595
Merge branch 'master' into alias 2022-04-21 15:02:30 +00:00
Anton Popov
a87f19b493 fix more cases with nested arrays 2022-04-21 14:57:12 +00:00
Dmitry Novik
77a82cc090
Merge pull request #35631 from amosbird/projection-fix1
Fix broken SET reuse during projection analysis.
2022-04-21 15:32:52 +02:00
mergify[bot]
04e3356d50
Merge branch 'master' into temp-table-improve 2022-04-21 12:43:55 +00:00
mergify[bot]
1ba1cad5cf
Merge branch 'master' into improve-globs 2022-04-21 11:52:13 +00:00
Kruglov Pavel
ae1f38ebe7
Fix test 2022-04-21 13:49:56 +02:00
Maksim Kita
01e09ba44e Fixed tests 2022-04-21 13:47:43 +02:00
Maksim Kita
fb28791d83 Fixed tests 2022-04-21 13:47:43 +02:00
Maksim Kita
90e3a75874 Fixed tests 2022-04-21 13:47:43 +02:00
Maksim Kita
00ac3231b2 Fix broken aliases during parsing of special operators 2022-04-21 13:47:43 +02:00
Maksim Kita
397603e9be ExecutableUserDefinedFunction fix usage in GROUP BY 2022-04-21 13:44:56 +02:00
Kruglov Pavel
7fb0f2284d
Merge branch 'master' into fix-s3-cluster 2022-04-21 13:39:52 +02:00
Kruglov Pavel
a6186f7ba4
Merge pull request #36333 from ClickHouse/bool-sync-after-error
Fix tech debt for Bool and Map data types
2022-04-21 13:32:14 +02:00
Kruglov Pavel
016da97d4f
Merge pull request #36454 from azat/fix-limit-by
Fix "Cannot find column" error for distributed queries with LIMIT BY
2022-04-21 12:50:27 +02:00
xiedeyantu
53337cf021 fix style check fail 2022-04-21 09:18:34 +08:00
Alexey Milovidov
ec9b86fd03
Merge branch 'master' into fixcolumnmatcher 2022-04-21 02:15:25 +03:00
alesapin
cbfe00bb47 Fix tidy 2022-04-21 00:30:13 +02:00
Sergei Trifonov
2f38e7bc5c
Merge pull request #36400 from azat/dyn-linker-vars
Add more harmful variables for OSX
2022-04-21 00:02:51 +02:00
Azat Khuzhin
9a882cc8a6 Regression test for CHECKSUM_DOESNT_MATCH error because of per-column TTL bug
This is a regression test for possible CHECKSUM_DOESNT_MATCH due to
per-column TTL bug, that had been fixed in [1].

  [1]: https://github.com/ClickHouse/ClickHouse/pull/35820

v2: mark 02265_column_ttl as long
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-04-20 21:49:48 +03:00
Azat Khuzhin
836c43092b tests: increase timeout in 02151_http_s_structure_set_eof
Otherwise sometimes 0.15s seems not enough to start the query

CI: https://s3.amazonaws.com/clickhouse-test-reports/35865/e330d691a3a1981582ebbe20e3ecc15247644f19/stateless_tests_flaky_check__address__actions_.html
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-04-20 21:34:31 +03:00
Azat Khuzhin
efcff2a725 tests: mark 02151_http_s_structure_set_eof as long
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
CI: https://s3.amazonaws.com/clickhouse-test-reports/35865/e330d691a3a1981582ebbe20e3ecc15247644f19/stateless_tests_flaky_check__address__actions_/runlog.log
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-04-20 21:34:31 +03:00
Azat Khuzhin
06532cb2f8 tests: use proper wait in 01502_log_tinylog_deadlock_race
CI: https://s3.amazonaws.com/clickhouse-test-reports/35865/e330d691a3a1981582ebbe20e3ecc15247644f19/stateless_tests__address__actions__[2/2].html
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-04-20 21:34:31 +03:00
Azat Khuzhin
4d2aa3308b tests: use more unique user name in 02104_overcommit_memory
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-04-20 21:34:31 +03:00
Azat Khuzhin
dc177a72df tests: use proper query termination in 02104_overcommit_memory via SIGINT
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-04-20 21:34:31 +03:00
Azat Khuzhin
7b5ed949a1 tests: wait queries that may left
v2: wait for queries in 01085_max_distributed_connections_http
    CI: https://s3.amazonaws.com/clickhouse-test-reports/35865/e330d691a3a1981582ebbe20e3ecc15247644f19/stateless_tests__debug__actions__[2/3].html

v3: wait left queries in 01675_data_type_coroutine*
    CI: https://s3.amazonaws.com/clickhouse-test-reports/36400/828d23c933681ecfc19a09a78947918c545e5558/stateless_tests__debug__actions__[2/3].html

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-04-20 21:34:08 +03:00
xiedeyantu
8334648767 fix test 2022-04-20 23:34:05 +08:00
Yakov Olkhovskiy
95fc6243b1
Merge pull request #36386 from Joeywzr/hex_support_uint128
hex support Int128/Int256/UInt128/UInt256
2022-04-20 11:11:51 -04:00
Kruglov Pavel
813e228fcc
Merge branch 'master' into improve-globs 2022-04-20 16:31:47 +02:00
xiedeyantu
2ecbf3e1be add test for temporary table can show total rows and total bytes 2022-04-20 22:02:47 +08:00
mergify[bot]
ded06ff100
Merge branch 'master' into return-back-36126 2022-04-20 13:01:32 +00:00
Azat Khuzhin
c6ffec1fec Fix "Cannot find column" error for distributed queries with LIMIT BY
Consider the following example:

    SELECT k FROM (SELECT materialize('foo') AS k, -1 AS v) ORDER BY abs(v) AS _v ASC LIMIT 1 BY k

The problem here is that in case of query has LIMIT BY for
WithMergeableState* (which is the final state on the remote shard for
distributd queries) it returns the following columns:
- k
- v

While it should return:
- k
- abs(v)

So as query w/o LIMIT BY, so that initiator will be able to do the sorting

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-04-20 15:23:24 +03:00
Kruglov Pavel
5801de7f72
Merge pull request #36254 from Avogar/improve-client
Send both stdin data and data from query/data from infile in client
2022-04-20 13:55:04 +02:00
李扬
a1e54c3918
Fix wrong result of datetime64 when negative (#35440) 2022-04-20 13:11:31 +02:00
alesapin
40c15222f8 Merge branch 'master' into fix_trash 2022-04-20 12:45:49 +02:00
tavplubix
2c54381520
Merge pull request #36200 from ClickHouse/fix_create_as_replicated_default_args
Fix CREATE AS for ReplicatedMergeTree with default arguments
2022-04-20 12:01:13 +03:00
Yakov Olkhovskiy
f6a7b6c2a1
Merge pull request #36352 from awakeljw/fork_chmaster
Possible range issues in automatic assigned enums, also fix error message.
2022-04-19 23:34:35 -04:00
avogar
9a81b67ba5 Fix bug in s3Cluster schema inference 2022-04-19 18:23:04 +00:00
Kruglov Pavel
7fb7fc9daa
Merge pull request #36275 from Avogar/fix-insert-select
Place new logic of schema inference in insert select from table function under setting
2022-04-19 20:19:28 +02:00
Amos Bird
158a25d5fa
Fix column matcher and column transformer 2022-04-20 01:22:04 +08:00
Anton Popov
bee4ca9b62 add more tests for error diagnostics in files 2022-04-19 15:56:34 +00:00
Anton Popov
3e361c9759 Merge remote-tracking branch 'upstream/master' into HEAD 2022-04-19 14:18:04 +00:00
Anton Popov
056500f2ad
Merge pull request #33391 from zhongyuankai/fix_storage_distributed_ttl
Fix Alter ttl modification unsupported table engine
2022-04-19 15:47:01 +02:00
Anton Popov
7b7939c52c fix parsing of ints 2022-04-19 13:31:45 +00:00
Kruglov Pavel
ec4e1cb6d8
Merge pull request #36211 from Avogar/insert-select-all-formats
Allow insert select for files with formats without schema inference
2022-04-19 14:25:59 +02:00
Kruglov Pavel
031cfcdce3
Merge pull request #36250 from Avogar/fix-tests
Split test 01675_data_type_coroutine into 2 tests to prevent possible timeouts
2022-04-19 14:25:00 +02:00
mergify[bot]
3c1dd44b80
Merge branch 'master' into fix-insert-select 2022-04-19 12:17:31 +00:00
tavplubix
99ea71b371
Update 01148_zookeeper_path_macros_unfolding.sql 2022-04-19 15:17:16 +03:00
avogar
996be9fe54 Fix tests 2022-04-19 12:16:45 +00:00
alesapin
ee8d26ff0e Better test and fix for move 2022-04-19 13:27:55 +02:00
Memo
8d4e433c7d add int8 int16 int32 int64 and tests 2022-04-19 14:38:16 +08:00
alesapin
c81cb9e563 Better 2022-04-19 01:12:07 +02:00
alesapin
bd7b3847c1 Some code 2022-04-19 01:09:09 +02:00
Azat Khuzhin
c32e151bc2 Add a test for dynamic linker variables
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-04-18 23:34:13 +03:00
Anton Popov
56bdc654d4 Revert "Merge pull request #36337 from ClickHouse/revert-36126-fork_chmaster2"
This reverts commit e04f80d4a7, reversing
changes made to 06e0afb67f.
2022-04-18 17:59:46 +00:00
mergify[bot]
daca157111
Merge branch 'master' into fix_storage_distributed_ttl 2022-04-18 17:31:59 +00:00
Memo
3979f858fe fix style 2022-04-18 21:09:50 +08:00
Memo
335be4c807 hex support Int128/Int256/UInt128/UInt256 2022-04-18 20:13:43 +08:00
tavplubix
9d2b5ae498
Update 01148_zookeeper_path_macros_unfolding.sql 2022-04-18 11:42:45 +03:00
Memo
d03621115a fix code style 2022-04-18 12:21:48 +08:00
Memo
b3adf150b5 add_query_level_settings 2022-04-18 12:15:41 +08:00
Alexey Milovidov
f5e270b2f8
Merge pull request #36353 from ucasfl/type-infer-null
Implement type inference for INSERT INTO function null()
2022-04-18 07:06:54 +03:00
Alexey Milovidov
1333b4cd89
Merge pull request #36345 from ucasfl/throw-no-data
Add setting throw_if_no_data_to_insert
2022-04-18 07:04:16 +03:00
Alexey Milovidov
c5883872da Add test reference 2022-04-18 04:20:47 +02:00
Alexey Milovidov
4c9d6fd5b6 Update test 2022-04-18 03:09:36 +02:00
Alexey Milovidov
4a5dc04772 Add test 2022-04-18 02:48:30 +02:00
Alexey Milovidov
24c13853c3 Fix slow test 2022-04-18 01:45:44 +02:00
fenglv
1ffd9fe34c update test 2022-04-17 16:29:13 +00:00
fenglv
293d0a5d46 Implement type inference for INSERT INTO function null() 2022-04-17 15:07:56 +00:00
Alexey Milovidov
89deaf0af1
Merge pull request #36056 from azat/client-trailing-space
Remove trailing whitespace in default client_name
2022-04-17 17:37:43 +03:00
mergify[bot]
4fed033dca
Merge branch 'master' into alias 2022-04-17 14:37:04 +00:00
awakeljw
017777793a Possible range issues in automatic assigned enums, also fix error message. 2022-04-17 21:40:48 +08:00
fenglv
b25850a665 Add setting throw_if_no_data_to_insert 2022-04-17 05:42:07 +00:00
Alexey Milovidov
cb9675d0f2
Revert "support UNSIGNED modifier with unused parameters of INT" 2022-04-16 21:23:57 +03:00
fenglv
9f3c707b9e fix test 2022-04-16 08:15:07 +00:00
fenglv
74ef1b0198 Add aliases JSONLines and NDJSON for JSONEachRow 2022-04-16 06:01:07 +00:00
Anton Popov
2de6668b3f show names of erroneous files 2022-04-16 00:10:47 +00:00
Yakov Olkhovskiy
51b4cef6f8
Merge pull request #36101 from awakeljw/fork_chmaster
Auto assign numbers for Enum elements
2022-04-14 23:53:03 -04:00
avogar
ae01646136 Place new logic of schema inference in insert select from table function under setting 2022-04-14 19:05:20 +00:00
Anton Popov
305dd57262
Merge branch 'master' into fix_storage_distributed_ttl 2022-04-14 14:51:15 +02:00
Alexander Tokmakov
819eac6297 fix 2022-04-14 14:48:24 +02:00
Anton Popov
c76b9cc9f5
Merge pull request #36215 from CurtizJ/fix-reading-empty-arrays
Fix reading of empty arrays in reverse order
2022-04-14 13:51:48 +02:00
Anton Popov
791454678b
Merge pull request #36126 from awakeljw/fork_chmaster2
support UNSIGNED modifier with unused parameters of INT
2022-04-14 13:43:51 +02:00
avogar
a4e3a5e05e Send both stdin data and data from query/data from infile in client 2022-04-14 11:30:52 +00:00
avogar
31f469a874 Split test 01675_data_type_coroutine into 2 tests to prevent possible timeouts 2022-04-14 10:18:55 +00:00
Kruglov Pavel
86a5b2c7f9
Update 02267_file_globs_schema_inference.reference 2022-04-14 11:58:30 +02:00
Kruglov Pavel
af14431527
Update 02267_file_globs_schema_inference.sql 2022-04-14 11:56:31 +02:00
Kruglov Pavel
53ede707ae
Update 02268_json_maps_and_objects.sql 2022-04-14 11:52:32 +02:00
Kruglov Pavel
392a178d3e
Merge pull request #36195 from Avogar/fix-json-schema-inference
Fix possible segfault in schema inference for JSON formats
2022-04-14 11:51:01 +02:00
jewisliu
427c73e7a5 fix Enum overflow 2022-04-14 10:39:07 +08:00
Yakov Olkhovskiy
c1a06ac63a
Merge pull request #24896 from hexiaoting/dev_materialized_view
Add type check when create materialized view with To clause
2022-04-13 22:33:54 -04:00
Anton Popov
0595b5c22b fix reading of empty arrays in reverse order 2022-04-13 21:50:57 +00:00
avogar
ae88549c4f Allow insert select for files with formats without schema inference 2022-04-13 20:02:52 +00:00
avogar
8b60aeb7bc Improve schema inference for json objects 2022-04-13 19:13:40 +00:00
Kruglov Pavel
b6c0fd69d6
Update test 2022-04-13 19:05:58 +02:00
avogar
1c065f8c7a Some refactoring around schema inference with globs 2022-04-13 17:02:48 +00:00
Alexander Gololobov
fcb83a12ff
Merge pull request #35953 from azat/ttl-mutations
Require mutations for per-table TTL only when it had been changed
2022-04-13 17:14:04 +02:00
Alexander Tokmakov
40fea2b833 do not unfold {uuid} macro 2022-04-13 16:51:59 +02:00
Maksim Kita
2a950102bc Fixed tests 2022-04-13 16:41:21 +02:00
Vladimir C
77dac8e490
Merge pull request #36179 from CurtizJ/dynamic-columns-10 2022-04-13 15:57:32 +02:00
avogar
348cae0d16 Fix possible segfault in schema inference for JSON formats 2022-04-13 12:34:40 +00:00
Kruglov Pavel
03fc08cec3
Merge pull request #36137 from azat/client-profile-events
ProfileEvents fixes
2022-04-13 12:27:39 +02:00
Nikolai Kochetov
362fcfd2b8
Merge pull request #36075 from ClickHouse/fix-limit-push-down-over-window
Disable LIMIT push down through WINDOW functions.
2022-04-13 11:57:37 +02:00
Kseniia Sumarokova
d9ce08915a
Merge pull request #36130 from yuuch/support_MySQL_style_FORMAT_Vertical_before_semicolon
support  '\G;' at the end of query
2022-04-13 10:39:40 +02:00
Kseniia Sumarokova
9c0e96f111
Merge pull request #36175 from kssenii/fixing-s3-tests-1
Fix flacky test 01161_all_system_tables under s3 storage
2022-04-13 10:34:42 +02:00
Anton Popov
b066585cae
Apply suggestions from code review
Co-authored-by: Vladimir C <vdimir@clickhouse.com>
2022-04-12 22:12:58 +02:00
Yakov Olkhovskiy
c675e21872 tests updated 2022-04-12 15:49:08 -04:00
Azat Khuzhin
891c601589 Fix ProfileEvents overlaps (for multiple queries) in clickhouse-local
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-04-12 22:27:12 +03:00
Anton Popov
0679d4814d allow to convert empty string to objects 2022-04-12 18:58:40 +00:00
tavplubix
303ecc6f7d
Merge pull request #36136 from ClickHouse/transactions_fix_1
Minor fix for transactions
2022-04-12 21:38:47 +03:00
Azat Khuzhin
097e2f626d Do not overlap profile events snapshots for queries
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-04-12 20:54:56 +03:00
Azat Khuzhin
d9dd8f5f65 Fix filtering out snapshots from profile events
This fixes POSITION_OUT_OF_BOUND error:

    $ clickhouse-client --print-profile-events --profile-events-delay-ms=-1 -n -q 'select sleep(1); select 1'
    0
    [p1.azat.localdomain] 2022.04.12 19:31:48 [ 0 ] ContextLock: 9 (increment)
    [p1.azat.localdomain] 2022.04.12 19:31:48 [ 0 ] FunctionExecute: 1 (increment)
    [p1.azat.localdomain] 2022.04.12 19:31:49 [ 0 ] MemoryTrackerUsage: 2132102 (gauge)
    [p1.azat.localdomain] 2022.04.12 19:31:49 [ 0 ] NetworkReceiveElapsedMicroseconds: 139 (increment)
    [p1.azat.localdomain] 2022.04.12 19:31:49 [ 0 ] NetworkSendBytes: 4850 (increment)
    [p1.azat.localdomain] 2022.04.12 19:31:49 [ 0 ] NetworkSendElapsedMicroseconds: 1844 (increment)
    [p1.azat.localdomain] 2022.04.12 19:31:48 [ 0 ] Query: 1 (increment)
    [p1.azat.localdomain] 2022.04.12 19:31:48 [ 0 ] RWLockAcquiredReadLocks: 1 (increment)
    [p1.azat.localdomain] 2022.04.12 19:31:48 [ 0 ] SelectQuery: 1 (increment)
    [p1.azat.localdomain] 2022.04.12 19:31:48 [ 0 ] SelectedBytes: 1 (increment)
    [p1.azat.localdomain] 2022.04.12 19:31:48 [ 0 ] SelectedRows: 1 (increment)
    [p1.azat.localdomain] 2022.04.12 19:31:49 [ 0 ] OSCPUVirtualTimeMicroseconds: 1842 (increment)
    [p1.azat.localdomain] 2022.04.12 19:31:49 [ 0 ] OSReadChars: 426 (increment)
    [p1.azat.localdomain] 2022.04.12 19:31:49 [ 0 ] OSWriteChars: 322 (increment)
    [p1.azat.localdomain] 2022.04.12 19:31:49 [ 0 ] RealTimeMicroseconds: 1002689 (increment)
    [p1.azat.localdomain] 2022.04.12 19:31:49 [ 0 ] SleepFunctionCalls: 1 (increment)
    [p1.azat.localdomain] 2022.04.12 19:31:49 [ 0 ] SleepFunctionMicroseconds: 1000000 (increment)
    [p1.azat.localdomain] 2022.04.12 19:31:49 [ 0 ] UserTimeMicroseconds: 1843 (increment)
    1
    Error on processing query: Code: 11. DB::Exception: Position out of bound in Block::erase(), max position = 5. (POSITION_OUT_OF_BOUND) (version 22.4.1.1)
    (query: select 1)

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-04-12 20:54:56 +03:00
Azat Khuzhin
1fa3e6a426 Fix printing ProfileEvents on client for multiple queries
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-04-12 20:54:56 +03:00
Azat Khuzhin
d46eaadacc tests: do not use process substution in 02050_client_profile_events
bash does not waits then and so if the next line will be executed fast
enough, result of process substituted command can appers in stdout after
it.

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-04-12 20:54:56 +03:00
Azat Khuzhin
75789eb9a7 tests: improve 02050_client_profile_events
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-04-12 20:54:56 +03:00
Maksim Kita
aa0464d81e Fixed tests 2022-04-12 18:50:51 +02:00
kssenii
cefa64a846 Fix 2022-04-12 17:56:22 +02:00
Maksim Kita
9b332c1e31 Fix early_constant_folding performance test 2022-04-12 17:06:21 +02:00
Kruglov Pavel
2436ab8990
Merge pull request #36083 from Avogar/fix-tests
Try to avoid timeoutes in parallel parsing tests
2022-04-12 16:19:42 +02:00
mergify[bot]
0b3c15c07a
Merge branch 'master' into projection-fix1 2022-04-12 13:49:28 +00:00
jewisliu
b2c10611d1 support UNSIGNED modifier with unused parameters of INT 2022-04-12 19:49:57 +08:00
Kseniia Sumarokova
97baa250b6
Merge pull request #36131 from ClickHouse/kssenii-patch-3
Update 01171_mv_select_insert_isolation_long.sh
2022-04-12 11:56:13 +02:00
mergify[bot]
46b9a1ef80
Merge branch 'master' into client-trailing-space 2022-04-11 22:07:37 +00:00
Yakov Olkhovskiy
783dbb2e63
Merge branch 'master' into dev_materialized_view 2022-04-11 17:47:35 -04:00
Yakov Olkhovskiy
155a2a0d42
Merge pull request #35349 from yakov-olkhovskiy/interpolate-feature
Interpolate feature
2022-04-11 11:15:50 -04:00
Anton Popov
471e945efe
Merge pull request #35934 from ClickHouse/make_date
Implementation of makeDateTime() and makeDateTime64() #30895
2022-04-11 16:38:23 +02:00
Alexander Tokmakov
38c80940fd slightly beter fix 2022-04-11 16:25:59 +02:00
tavplubix
983052951a
Merge pull request #36128 from ClickHouse/fix_flaky_00971_01003
Fix flaky tests 00971 and 01003
2022-04-11 16:45:38 +03:00
Alexander Gololobov
f730ff9805 Added queries with _part_offset and another virtual column 2022-04-11 15:38:22 +02:00
Kseniia Sumarokova
991d6d18df
Update 01171_mv_select_insert_isolation_long.sh 2022-04-11 15:08: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
yuuch
36e2809fd7 support '\G;' at the end of query 2022-04-11 20:46:52 +08:00
Alexander Tokmakov
5c0d15e017 fix flaky tests 2022-04-11 12:52:26 +02:00
Vladimir C
1a604cd279
Merge pull request #36058 from xiedeyantu/master 2022-04-11 10:45:50 +02:00
jewisliu
3521292fad Auto assign numbers for Enum elements 2022-04-10 11:57:25 +08:00
xiedeyantu
5efd8a4ec0 If data type has DEFAULT NULL in table definition, make data type Nullable 2022-04-09 15:00:41 +08:00
tavplubix
faae540a85
Merge pull request #24258 from ClickHouse/mvcc_prototype
MVCC prototype for MergeTree
2022-04-08 22:02:13 +03:00
Anton Popov
ebcfe2fdc8 fix one more case with nested arrays 2022-04-08 18:29:26 +00:00
avogar
833836e8da Try to avoid timeoutes in parallel parsing tests 2022-04-08 16:46:11 +00:00
Anton Popov
6364b6f78f Merge remote-tracking branch 'upstream/master' into dynamic-columns-9 2022-04-08 15:05:51 +00:00
Anton Popov
3fce23357c fix insertion of complex json with nested arrays 2022-04-08 14:58:02 +00:00
Yakov Olkhovskiy
87c2b3e2cf fixed Nullable, tests added 2022-04-08 10:52:10 -04:00
Nikolai Kochetov
2deec53162 Disable LIMIT push down through WINDOW functions. 2022-04-08 13:39:54 +00:00
Kruglov Pavel
d7b88d7683
Merge pull request #35582 from Avogar/improve-schema-inference
Improve schema inference and add some fixes
2022-04-08 13:44:52 +02:00
Alexander Tokmakov
141fbc6980 Merge branch 'master' into mvcc_prototype 2022-04-08 13:38:11 +02:00
Alexander Tokmakov
49c35f3261 Merge branch 'master' into mvcc_prototype 2022-04-08 13:34:40 +02:00
Vitaly Baranov
45dea9933b
Merge pull request #35883 from azat/format-settings
Do not allow SETTINGS after FORMAT for INSERT queries
2022-04-08 12:38:14 +02:00
alesapin
1ba77786ea
Merge pull request #36054 from ClickHouse/fix-flaky-test
Fix flaky test
2022-04-08 12:08:21 +02:00
alesapin
8ec802bc62
Merge pull request #35475 from kssenii/remote-fs-cache-improvements
Allow to write remote fs cache on all write operations. Add `system.remote_filesystem_cache` table. Add `drop remote filesystem cache (<path>)` query. Add `system.remote_data_paths` table.
2022-04-08 12:06:26 +02:00
Vladimir C
265fa90689
Merge pull request #36033 from vdimir/cross-join-empty-list 2022-04-08 11:59:21 +02:00
Azat Khuzhin
44bf8ba568 Remove trailing whitespace in default client_name
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-04-08 08:09:47 +03:00
kssenii
0b7af1f26c Fix checks 2022-04-08 01:58:55 +02:00
Alexander Tokmakov
6a46da93ae Merge branch 'master' into mvcc_prototype 2022-04-07 23:22:19 +02:00
Alexey Milovidov
2623b05e59 Fix flaky test 2022-04-07 22:58:29 +02:00
Alexander Tokmakov
2e2e2b9190 fix a race condition 2022-04-07 18:17:43 +02:00
Kseniia Sumarokova
5f9bc1c68e
Merge pull request #35987 from awakeljw/fork_chmaster
[Improvement] improvement in PARTITION ALL
2022-04-07 17:36:35 +02:00
Azat Khuzhin
33d99c8ffb Introduce compatiblity mode for SETTINGS after FORMAT
Add allow_settings_after_format_in_insert setting, OFF by default.

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
v2: s/parser_settings_after_format_compact/allow_settings_after_format_in_insert/ (suggested by vitlibar)
v3: replace ParserSettings with a flag (requested by vitlibar)
2022-04-07 16:36:34 +03: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
Alexander Tokmakov
7f54e7b422 Merge branch 'master' into mvcc_prototype 2022-04-07 15:14:06 +02:00
avogar
1c783ed88a Resolve conflicts 2022-04-07 12:17:48 +00:00
Kruglov Pavel
73adbb4c15
Merge pull request #35986 from amosbird/better-scalar1
Fix performance regression of scalar query
2022-04-07 14:07:59 +02:00
Alexander Tokmakov
8290ffa88d Merge branch 'master' into mvcc_prototype 2022-04-07 13:50:42 +02:00
avogar
d2017a63b1 Merge branch 'master' of github.com:ClickHouse/ClickHouse into improve-schema-inference 2022-04-07 11:36:40 +00:00
vdimir
eb7ac4c3a6
Handle empty expression list in cross join 2022-04-07 11:32:32 +00:00
Kruglov Pavel
f3f8f27db5
Merge pull request #35735 from Avogar/allow-read-bools-as-numbers
Allow to infer and parse bools as numbers in JSON input formats
2022-04-07 13:20:49 +02:00
Nikolai Kochetov
82583b9349 Update 02245_format_string_stack_overflow 2022-04-07 13:07:18 +02:00
tavplubix
c463e82a69
Merge pull request #36008 from ClickHouse/tavplubix-patch-4
Fix 02248_nullable_custom_types_to_string
2022-04-07 14:05:18 +03:00
Kruglov Pavel
4b8c8e08a4
Merge pull request #36009 from ClickHouse/Avogar-patch-4
Fix flaky test 00155_long_merges
2022-04-07 12:59:57 +02:00
alesapin
379eca0db2
Merge pull request #36001 from ClickHouse/Avogar-patch-3
Make test 00159_parallel_formatting_tsv_and_friends.sh more stable
2022-04-07 12:45:57 +02:00
Alexander Gololobov
42d4a84a6f More tests for corner cases 2022-04-07 12:34:26 +02:00
tavplubix
6e9c028bbb
Merge pull request #35956 from Algunenano/limit_dns_retries
DNS cache: Add option to drop elements after several consecutive failures
2022-04-07 13:20:36 +03:00
Nikolai Kochetov
3e1b3f14c0
Merge pull request #34355 from azat/processors-profiling
Profiling on Processors level
2022-04-07 12:13:14 +02:00