Commit Graph

87403 Commits

Author SHA1 Message Date
kssenii
37d11cfb1c Merge master 2022-04-28 00:44:15 +02:00
kssenii
67e0cf9ab6 One more fix 2022-04-28 00:37:57 +02:00
alesapin
f1c5f92de4
Merge pull request #36685 from kssenii/cache-fix-restart
Cache fix
2022-04-27 23:49:32 +02:00
Alexey Milovidov
2bed97bebc
Merge pull request #36717 from kayhaw/patch-1
Add a missing **ESTIMATE** in explain syntax
2022-04-27 21:47:40 +03:00
kssenii
da1392877a Better 2022-04-27 20:01:59 +02:00
Kseniia Sumarokova
39b3c1c6af
Merge pull request #36697 from KinderRiven/fix_bug_for_local_cache
Fix deadlock for local cache
2022-04-27 18:11:43 +02:00
小蝌蚪
11cc8639ca
Add a missing **ESTIMATE** in explain syntax 2022-04-28 00:10:59 +08:00
Alexey Milovidov
39a98684e6
Merge pull request #36319 from ClickHouse/speed-up-build
Speed up build a little
2022-04-27 19:04:46 +03:00
Kseniia Sumarokova
0d09bb9897
Merge pull request #36699 from amosbird/bettermysqlhandler
Slightly better mysql handler
2022-04-27 17:07:35 +02:00
mergify[bot]
9410e2813f
Merge branch 'master' into fix-stress-test 2022-04-27 14:51:55 +00:00
KinderRiven
cd540c3c51 fix 2022-04-27 19:36:25 +08:00
KinderRiven
813f1bd001 fix 2022-04-27 19:31:50 +08:00
KinderRiven
ad4fb637f0 fix set better state 2022-04-27 19:17:46 +08:00
Amos Bird
1cba00478d
Slightly better mysql handler 2022-04-27 18:28:09 +08:00
Ilya Yatsishin
d705f8ead4
Merge pull request #36689 from ClickHouse/remove-excessive-logging 2022-04-27 12:18:28 +02:00
KinderRiven
504e2c26db fix bug for deadlock in local cache 2022-04-27 17:34:14 +08:00
Alexey Milovidov
20281c25b3
Merge pull request #36653 from ramazanpolat/patch-2
add missing pandas package
2022-04-27 05:26:53 +03:00
Alexey Milovidov
b8a9f1411a
Merge pull request #36649 from azat/system.processes-is_all_data_sent
clickhouse-test: improve left queries after the test hardening
2022-04-27 05:21:22 +03:00
Alexey Milovidov
acea30ffbf
Merge pull request #36669 from ClickHouse/kssenii-patch-3
Update 00170_s3_cache.sql
2022-04-27 03:48:00 +03:00
Alexey Milovidov
5355ba78b3
Merge pull request #36585 from azat/22.4-tests-fixes
Simplify 01834_alias_columns_laziness_filimonov test
2022-04-27 03:47:34 +03:00
Alexey Milovidov
e85c5679e9
Update S3Common.cpp 2022-04-27 03:33:01 +03:00
Alexey Milovidov
3c53cd42bb Remove excessive logging from S3 2022-04-27 02:30:13 +02:00
Alexander Tokmakov
b1949ee901
Merge pull request #36680 from ClickHouse/better_logs_virtual_parts
Better logs for virtual parts
2022-04-26 21:36:20 +03:00
kssenii
64168faf0a Fix 2022-04-26 20:31:42 +02:00
Ivan Blinkov
c0ee49920f
[docs] title doesn't need a period + make it shorter (#36678) 2022-04-26 21:09:03 +03:00
Alexander Tokmakov
d149ac8bd7 better logs for virtual parts 2022-04-26 16:58:40 +02:00
Alexander Gololobov
3c000b098a
Merge pull request #36638 from nickitat/fix_sorting_step
Fix SortingStep::updateOutputStream()
2022-04-26 15:49:49 +02:00
Kruglov Pavel
89892cb652
Update 00061_merge_tree_alter.sql 2022-04-26 15:46:25 +02:00
Vladimir C
ca7ba0a198
Merge pull request #36537 from Joeywzr/add_bin_tests
Add function bin tests for Int/UInt128/UInt256
2022-04-26 14:49:19 +02:00
Alexander Tokmakov
32f4565def
Merge pull request #36642 from ClickHouse/fix_settings_in_create_query
Fix parsing of settings in create query
2022-04-26 15:22:12 +03:00
Kseniia Sumarokova
5198eec6f7
Update 00170_s3_cache.sql 2022-04-26 13:58:35 +02:00
alesapin
57dd5d03d9
Merge pull request #36652 from amosbird/fixunstabletest1
Fix flaky test
2022-04-26 13:33:14 +02:00
Ilya Yatsishin
8ede5a090f
Merge pull request #36668 from ClickHouse/auto/v22.3.4.20-lts
Update version_date.tsv after v22.3.4.20-lts
2022-04-26 12:48:41 +02:00
robot-clickhouse
a96276aa09 Update version_date.tsv after v22.3.4.20-lts 2022-04-26 10:47:39 +00:00
Alexander Tokmakov
190becdcc3
Merge pull request #36644 from ClickHouse/fix_some_flaky_tests
Fix some flaky tests
2022-04-26 13:40:14 +03:00
Anton Popov
17bb7f175b
Merge pull request #36544 from CurtizJ/tuple-numeric-identifiers
Allow names of tuple elements that start from digits
2022-04-26 12:22:03 +02:00
kssenii
b874750807 Better 2022-04-26 12:13:21 +02:00
kssenii
41bba15e20 Fix 2022-04-26 12:09:58 +02:00
Alexander Tokmakov
bd1f12e5d5
Update 02180_group_by_lowcardinality.sql 2022-04-26 13:04:19 +03:00
alesapin
3b2f6dfce8
Merge pull request #36655 from ClickHouse/style_fix
Fix style issue reported by black formatter
2022-04-26 11:53:38 +02:00
Vladimir C
1aa9d77246
Merge pull request #36453 from zombee0/master 2022-04-26 11:47:42 +02:00
Nikita Mikhaylov
7d95051d32
Fixed integer overflow in toStartOfInterval (#36546) 2022-04-26 11:44:57 +02:00
Kseniia Sumarokova
81db081b88
Merge pull request #36639 from kssenii/better-drop-cache
Improve drop cache query
2022-04-26 11:25:46 +02:00
Azat Khuzhin
87421d81ce tests: use TSVRaw format in 02117_show_create_table_system
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-04-26 12:15:00 +03:00
Azat Khuzhin
b6f127c977 tests: fix system.processes definition in 02117_show_create_table_system
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-04-26 12:15:00 +03:00
Azat Khuzhin
c2c8b5cd7e clickhouse-test: improve left queries after the test hardening
Right now it is possible to have "false-positive" for this hardening,
because there is a tiny delay (that can be quite significant on CI, when
it is under pressure) between when the server sends EndOfStream and the
server removes an entry from system.processes.

But now system.processes has is_all_data_sent column, that means that
the EndOfStream was sent, and we can use it to avoid false positive.

Here is an example of such report [1]:

    2022-04-25 03:47:18 00806_alter_update:                                                     [ FAIL ] 0.95 sec. - Queries left in background after the test finished:
    2022-04-25 03:47:18         "elapsed": 0.100084746,
    2022-04-25 03:47:18         "is_cancelled": 0,
    2022-04-25 03:47:18         "query": "DROP TABLE alter_update_00806;",
    2022-04-25 03:47:18         "thread_ids": [
    2022-04-25 03:47:18             "8950"
    2022-04-25 03:47:18         ],

    2022.04.25 03:47:17.887095 [ 8950 ] {7c062004-4c22-486c-934a-f405846e2c81} <Debug> executeQuery: (from [::1]:52012) (comment: 00806_alter_update.sql) DROP TABLE alter_update_00806;
    2022.04.25 03:47:17.887493 [ 8950 ] {7c062004-4c22-486c-934a-f405846e2c81} <Trace> ContextAccess (default): Access granted: DROP TABLE ON test_7ntsjn.alter_update_00806
    2022.04.25 03:47:17.887765 [ 8950 ] {7c062004-4c22-486c-934a-f405846e2c81} <Trace> test_7ntsjn.alter_update_00806 (1bc92bca-10a7-444e-be5e-7f61f4650169): Found 2 old parts to remove.
    2022.04.25 03:47:17.887947 [ 8950 ] {7c062004-4c22-486c-934a-f405846e2c81} <Debug> test_7ntsjn.alter_update_00806 (1bc92bca-10a7-444e-be5e-7f61f4650169): Removing part from filesystem 20180101_20180101_1_1_0
    2022.04.25 03:47:17.888960 [ 8950 ] {7c062004-4c22-486c-934a-f405846e2c81} <Debug> test_7ntsjn.alter_update_00806 (1bc92bca-10a7-444e-be5e-7f61f4650169): Removing part from filesystem 20180102_20180102_2_2_0
    2022.04.25 03:47:17.890620 [ 8950 ] {7c062004-4c22-486c-934a-f405846e2c81} <Debug> DatabaseCatalog: Waiting for table 1bc92bca-10a7-444e-be5e-7f61f4650169 to be finally dropped
    2022.04.25 03:47:17.895046 [ 8950 ] {7c062004-4c22-486c-934a-f405846e2c81} <Debug> MemoryTracker: Peak memory usage (for query): 0.00 B.
    ...
    2022.04.25 03:47:17.938328 [ 4422 ] {aa01985a-78f5-4c0e-b646-8d04a4a1dc77} <Debug> executeQuery: (from [::1]:59416) (comment: 00806_alter_update.sql) DROP DATABASE test_7ntsjn
    2022.04.25 03:47:17.938667 [ 4422 ] {aa01985a-78f5-4c0e-b646-8d04a4a1dc77} <Trace> ContextAccess (default): Access granted: DROP DATABASE ON test_7ntsjn.*
    ...
    2022.04.25 03:47:18.154847 [ 8950 ] {} <Debug> TCPHandler: Processed in 0.269358257 sec.
    2022.04.25 03:47:18.154991 [ 8950 ] {} <Debug> TCPHandler: Done processing connection.
    2022.04.25 03:47:18.155181 [ 8950 ] {} <Debug> TCP-Session: e1d8176a-ee62-4e0a-9855-fe9eb52e06dc Destroying unnamed session of user 94309d50-4f52-5250-31bd-74fecac179db

  [1]: https://s3.amazonaws.com/clickhouse-test-reports/36319/a646cf76b6d4699f06aea1e8d777edb1ad6fd2c5/stateless_tests__debug__actions__[1/3]/runlog.log

So as you can see here DROP TABLE was captured when elapsed was 0.1,
while TCPHandler processes it for 0.26 seconds.
Also from the same report you are seeing that DROP DATABASE was executed
before TCPHandler stopoped processing DROP TABLE.

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-04-26 12:15:00 +03:00
Azat Khuzhin
6339a48923 Add is_all_data_sent into system.processes
v2: fix SHOW PROCESSLIST (does not have process list entry)
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-04-26 12:15:00 +03:00
Anton Popov
e051751012
Merge pull request #36637 from CurtizJ/dynamic-columns-11
Fix merges of wide parts with type `Object`
2022-04-26 10:34:04 +02:00
Alexander Gololobov
cb9d95659c Fix style issue reported by black formatter 2022-04-26 09:57:05 +02:00
Ramazan Polat
07fcb57729
add missing pandas package 2022-04-26 10:29:21 +03:00