Commit Graph

126421 Commits

Author SHA1 Message Date
Azat Khuzhin
720ea8441c Fix global context for tests with --gtest_filter
If you run tests that requires context, but do not initialize it, then
it will SIGSEGV, because Context is not initialized.

Fix this by using google test envrionment, and instead of gtest_main
implement own main function that will initialize it.

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-10-13 13:44:30 +02:00
Mikhail f. Shiryaev
e60983f5ae
Do not fail if label-to-remove does not exists in PR 2023-10-13 13:32:56 +02:00
Alexander Tokmakov
ebfad5c8b8
Merge pull request #55587 from azat/fix-replica-group
Fix replica groups for Replicated database engine
2023-10-13 13:07:28 +02:00
Azat Khuzhin
db1b9408f3 Fix replica groups for Replicated database engine
Should fix 02447_drop_database_replica test

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-10-13 12:32:17 +02:00
vdimir
e64abfc557
Merge pull request #49555 from ClickHouse/vdimir/analyzer_fix_join_tests
Fixing join tests with analyzer
2023-10-13 12:29:58 +02:00
grantovsky
4bf3c4156e
Update Russian version replacingmergetree.md. dded is_deleted parameter description
Added is_deleted parameter description for russian documentaion version
2023-10-13 12:07:25 +03:00
bhavuk2002
c4f604dad2 files which were i working on were also commited removed them 2023-10-13 11:03:16 +05:30
bhavuk2002
1deb830dab updated dashboard.html 2023-10-13 10:57:33 +05:30
Alexey Milovidov
8a1363bcf1
Merge pull request #49486 from bigo-sg/test_hive_null_as_default
Set defaults_for_omitted_fields to true for hive text format
2023-10-13 02:01:09 +02:00
Jihyuk Bok
3c6ddb5e15
Add backward compatibility on the obsoleted storage configuration (#55557)
* add backward compatibility on the deleted storage configuration

* update the reference file
2023-10-13 00:37:55 +02:00
robot-ch-test-poll3
3bb141cd51
Merge pull request #55570 from ClickHouse/docs-datetime-functions
Add syntax and examples to docs of date/time functions
2023-10-12 22:28:03 +02:00
rfraposa
c066f6044d Add syntax and examples to docs of date/time functions 2023-10-12 11:24:57 -06:00
Alexey Milovidov
b60726e6ce
Merge pull request #55486 from Ryado/patch-4
Update mysql.md - Remove the Private Preview Note
2023-10-12 19:12:15 +02:00
robot-clickhouse-ci-1
211c80e1a0
Merge pull request #54421 from evillique/cluster-groups
Add replica groups to Replicated database engine
2023-10-12 18:14:42 +02:00
Alexey Milovidov
b53a98217c
Merge pull request #55489 from kitaisreal/external-aggregation-improve-performance
Improve performance of external aggregation with a lot of temporary files
2023-10-12 18:00:41 +02:00
Alexey Milovidov
e48fad0e24
Merge pull request #55495 from kitaisreal/aggregating-transform-init-generate-race-condition-fix
AggregatingTransform initGenerate race condition fix
2023-10-12 17:54:36 +02:00
Alexander Tokmakov
4c06f79f3a
Update src/Common/NamePrompter.h 2023-10-12 17:30:01 +02:00
robot-clickhouse-ci-2
299845b422
Merge pull request #55553 from ClickHouse/another-promise-fix-3
Avoid setting same promise twice
2023-10-12 17:29:01 +02:00
Nikolay Degterinsky
20e16be27b Fixes & improvements 2023-10-12 15:02:08 +00:00
Nikita Mikhaylov
81bbb0fce1
Improve merge selecting algorithm for big partitions (#55526)
Improved overall resilience for ClickHouse in case of many parts within partition (more than 1000). It might reduce the number of TOO_MANY_PARTS errors.
2023-10-12 17:00:25 +02:00
Nikita Mikhaylov
a2ee30707d
Better error message in case when merge selecting task failed (#55554) 2023-10-12 16:59:03 +02:00
Han Fei
54fb9a836e
Merge pull request #55503 from hanfei1991/hanfei/fix-export-logs-structure-mismatch
fix lots of 'Structure does not match' warnings in ci
2023-10-12 16:15:00 +02:00
Azat Khuzhin
fd16e52164 Update 00626_replace_partition_from_table_zookeeper to avoid using comments after semicolon
It does not have multiquery, so better to use shell comments

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-10-12 14:57:03 +02:00
Azat Khuzhin
2cbb069b68 Add ability to ignore data after semicolon in Values format
This is required for client, to handle comments in multiquery mode.

v0: separate context for input format
v2: cannot use separate context since params and stuff are changed in global context
v3: do not sent this setting to the server (breaks queries for readonly profiles)
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-10-12 14:55:26 +02:00
Robert Schulze
332a0cfa24
Merge pull request #55529 from ucasfl/invert
Forbid create inverted index if setting not enabled
2023-10-12 14:40:58 +02:00
Han Fei
9ab9075c2b update again 2023-10-12 13:59:33 +02:00
robot-clickhouse-ci-1
1905c44a33
Merge pull request #55550 from ClickHouse/tavplubix-patch-9
Update table.md
2023-10-12 13:21:07 +02:00
Antonio Andelic
22f5d6d708 Reset promise_to_build 2023-10-12 10:57:21 +00:00
Alexander Tokmakov
6dbc224fc7
Update table.md 2023-10-12 12:50:05 +02:00
vdimir
3aac663bd2
fix 2023-10-12 10:46:58 +00:00
vdimir
ef989fdb2e
Revert "Fix 01062_pm_all_join_with_block_continuation"
This reverts commit 88865ace8efb3c10307ddce088a7c44ebb7009fd.
2023-10-12 10:45:58 +00:00
vdimir
dcdcdc5a86
fix style check 2023-10-12 10:45:57 +00:00
vdimir
94fa777b8d
Fix 01890_materialized_distributed_join
Function getHeaderForProcessingStage handle join on top of query tree
2023-10-12 10:45:57 +00:00
vdimir
84e838d038
Fix 02382_join_and_filtering_set
Copy missing corresponding code from Interpreter, adjust test (removed
with cube)
2023-10-12 10:45:56 +00:00
vdimir
16eeec69bf
Fix 02000_join_on_const 2023-10-12 10:45:56 +00:00
vdimir
fcb116ad4f
Fix 01062_pm_all_join_with_block_continuation
Fixed test file, JOIN using alias from external scope
2023-10-12 10:45:56 +00:00
vdimir
624f38633c
Fix 01721_join_implicit_cast_long 2023-10-12 10:45:55 +00:00
vdimir
a799d4ec62
Fix 01049_join_low_card_bug_long 2023-10-12 10:45:55 +00:00
Azat Khuzhin
a5cced2b9e Move comment into correct place
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-10-12 12:25:08 +02:00
Azat Khuzhin
f379d9cac5 Fix checking of non handled data for Values format
PeekableReadBuffer::hasUnreadData() does not checks the underlying
buffer, and so it simply ignore some issues, like:

    INSERT INTO test_01179_str values ('foo'); ('bar')

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-10-12 12:25:08 +02:00
vdimir
5bc6642b57
Merge pull request #55480 from myrrc/fix/s3-remove-stale-parts
Remove existing moving/ dir if allow_remove_stale_moving_parts is off
2023-10-12 12:00:30 +02:00
robot-clickhouse-ci-2
2eedb31ae3
Merge pull request #55498 from bytadaniel/patch-4
add npm packages to both en and zh docs from ru
2023-10-12 11:31:24 +02:00
flynn
a97ce4cbfc update test 2023-10-12 09:15:54 +00:00
robot-clickhouse-ci-1
c40a79f0b4
Merge pull request #54813 from lingtaolf/feature/function-getClientHttpHeader
Add function getHttpHeader
2023-10-12 10:13:20 +02:00
Kruglov Pavel
453de30ad6
Destroy fiber in case of exception in cancelBefore in AsyncTaskExecutor (#55516)
* Destroy fiber in case of exception in cancelBefore in AsyncTaskExecutor

* Update AsyncTaskExecutor.cpp

---------

Co-authored-by: Alexey Milovidov <milovidov@clickhouse.com>
2023-10-11 21:04:43 -07:00
flynn
268ea30c41 Forbid create inverted index if setting not enabled 2023-10-12 03:50:55 +00:00
taiyang-li
7cd24d0af0 solve conflicts 2023-10-12 10:30:05 +08:00
JackyWoo
1f553f3d65 Merge branch 'master' into lb_nearest_host_name 2023-10-12 10:19:17 +08:00
robot-ch-test-poll
749412bfeb
Merge pull request #55523 from myrrc/nfc/kst-to-contrib
add k-morozov to trusted contributors
2023-10-12 01:03:37 +02:00
Robert Schulze
7b14392675
Merge pull request #55481 from rschu1ze/better-use-mysql-types-in-show-columns
Make `use_mysql_types_in_show_columns` affect only `SHOW COLUMNS`
2023-10-12 00:36:46 +02:00