Commit Graph

120627 Commits

Author SHA1 Message Date
Илья Коргун
7c1832fcfc Fix named collections related statements #51609 2023-07-27 09:41:47 +03:00
Nikolai Kochetov
a4a8c73108
Merge pull request #48669 from ClickHouse/prewhere-optimization-update-sort-desc
Update sort desc in ReadFromMergeTree after applying PREWHERE info
2023-07-26 15:47:18 +02:00
robot-ch-test-poll4
110500049a
Merge pull request #50532 from nickitat/more_pushdown_for_right_side_of_join
Push down to right side of a join in more cases
2023-07-26 14:43:57 +02:00
Kruglov Pavel
19c95d0f9b
Merge pull request #52585 from ClickHouse/Avogar-patch-2
Fix possible error "Cannot drain connections: cancel first"
2023-07-26 13:22:34 +02:00
Kruglov Pavel
f176c8389d
Merge branch 'master' into Avogar-patch-2 2023-07-26 13:18:27 +02:00
Kruglov Pavel
a875cf5898
Merge pull request #51286 from Avogar/better-progress-bar-2
Use read_bytes/total_bytes_to_read for progress bar in s3/file/url/... table functions
2023-07-26 13:16:49 +02:00
Nikita Taranov
04180549b0
Fix possible double-free in Aggregator (#52439) 2023-07-26 13:15:58 +02:00
Kruglov Pavel
15cc046883
Merge branch 'master' into better-progress-bar-2 2023-07-26 13:12:24 +02:00
Anton Popov
77e645db4f
Merge pull request #52517 from CurtizJ/fix-drop-of-projection
Fix lightweight delete after drop of projection
2023-07-26 13:00:08 +02:00
Anton Popov
45542fd712
Merge branch 'master' into fix-drop-of-projection 2023-07-26 12:55:18 +02:00
Robert Schulze
d4737ca033
Merge pull request #50986 from arenadata/ADQM-822
Implement support of encrypted elements in configuration file
2023-07-26 12:27:04 +02:00
Alexander Tokmakov
4d03c23166
Merge pull request #51851 from ClickHouse/add_delay_for_replicated
Make shutdown of `ReplicatedMergeTree` tables more soft
2023-07-26 12:59:37 +03:00
Kruglov Pavel
93e10077ba
Fix attaching gdb in stress tests (#51445)
* Fix attaching gdb in stress tests

* Fix

* Update run.sh

* Try remove run_with_retry

* Return run_with_retry

* Don't set -e in run_with_retry if it was't set before

* Update tests/ci/utils.lib

* Fix bash

---------

Co-authored-by: Alexander Tokmakov <tavplubix@clickhouse.com>
2023-07-26 12:53:19 +03:00
Alexander Tokmakov
6bbed6262e
Merge branch 'master' into add_delay_for_replicated 2023-07-26 12:48:48 +03:00
Antonio Andelic
63d88ebf3c
Merge pull request #52587 from ClickHouse/fix-again-02497_trace_events_stress_long
Fix `02497_trace_events_stress_long` again
2023-07-26 11:10:32 +02:00
robot-ch-test-poll4
50dff58097
Merge pull request #51280 from saitama951/external_aggregation_fix
external_aggregation_fix for big endian machines
2023-07-26 10:47:15 +02:00
Antonio Andelic
5aae9c8833
Merge pull request #52568 from ClickHouse/fix-00995_exception_while_insert
Fix flaky `00995_exception_while_insert`
2023-07-26 09:26:12 +02:00
robot-clickhouse
48fa1047a9
Merge pull request #52575 from valbok/typos
MaterializedMySQL: Fix typos in tests
2023-07-26 06:45:54 +02:00
robot-ch-test-poll3
ead59eff9e
Merge pull request #52574 from jmaicher/fix/docs/modify-column-remove-syntax
fix(docs): Document correct MODIFY COLUMN REMOVE syntax
2023-07-26 00:10:30 +02:00
Alexey Milovidov
7ac5c421ad
Merge pull request #49343 from ClickHouse/sleep-each-row-max-time
Merging #34909
2023-07-26 00:03:27 +03:00
Alexander Tokmakov
d85f9ddb35
Update parallel_skip.json 2023-07-26 00:03:08 +03:00
Alexander Tokmakov
20300804b1
Update test.py 2023-07-26 00:01:46 +03:00
Sema Checherinda
83d869860e
Merge pull request #51946 from arenadata/ADQM-940
Expose Peak memory usage in query statistics.
2023-07-25 22:17:58 +03:00
Nikita Mikhaylov
1dc9ca2c24
Merge pull request #52549 from ClickHouse/whitespace-before-comma
Check for punctuation
2023-07-25 20:30:36 +02:00
Antonio Andelic
d78b3e560f Fix 02497_trace_events_stress_long again 2023-07-25 17:45:13 +00:00
Kruglov Pavel
59db219410
Fix possible error "Cannot drain connections: cancel first" 2023-07-25 19:21:41 +02:00
Rich Raposa
2ecfde96b6
Merge pull request #52119 from ClickHouse/DanRoscigno-patch-4
Update s3.md regarding partitioned data
2023-07-25 11:14:44 -06:00
Sanjam Panda
413ec520b3 fix code style 2023-07-25 18:54:27 +02:00
robot-ch-test-poll1
49a60b27a0
Merge pull request #51076 from priera/50727_currentDatabase_alias
#50727 new alias for current_database and added current_schemas
2023-07-25 18:22:48 +02:00
robot-ch-test-poll3
5fa2f64f84
Merge pull request #52180 from jinjunzh/iaadeflate_upgrade_qpl_v1.2.0
Upgrade QPL to v1.2.0 and accel-config to v4.0
2023-07-25 18:10:59 +02:00
Igor Nikonov
9b4357723f
Merge pull request #47135 from ClickHouse/remove-perf-test-duplicate-order-by-and-distinct
Remove duplicate_order_by_and_distinct optimization
2023-07-25 17:26:22 +02:00
Yarik Briukhovetskyi
4c2b37bf6d
Merge pull request #52576 from ClickHouse/revert-52004-rewrite_uniq_to_count
Revert "Rewrite uniq to count"
2023-07-25 17:01:56 +02:00
Yarik Briukhovetskyi
11016d4c5f
Revert "Rewrite uniq to count" 2023-07-25 16:46:50 +02:00
Sanjam Panda
c75b5bc740
Update TwoLevelStringHashTable.h 2023-07-25 20:12:22 +05:30
Azat Khuzhin
85082ad8f8
Fix data-race DatabaseReplicated::startupTables()/canExecuteReplicatedMetadataAlter() (#52490)
CI founds [1]:

    Exception: Sanitizer assert found for instance ==================
    WARNING: ThreadSanitizer: data race (pid=348)
      Write of size 8 at 0x7b58000044a0 by main thread:
        2 DB::DatabaseReplicated::startupTables(ThreadPoolImpl<ThreadFromGlobalPoolImpl<false>>&, DB::LoadingStrictnessLevel) build_docker/./src/Databases/DatabaseReplicated.cpp:526:16 (clickhouse+0x1ec45092)
        3 DB::TablesLoader::startupTables() build_docker/./src/Databases/TablesLoader.cpp:87:26 (clickhouse+0x1f9258ab) (BuildId: 7d4ce55d33d4c3e3df9fd39b304e67e53eb61a63)
        4 DB::loadMetadata(std::__1::shared_ptr<DB::Context>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&) build_docker/./src/Interpreters/loadMetadata.cpp:234:12 (clickhouse+0x1fff3834) (BuildId: 7d4ce55d33d4c3e3df9fd39b304e67e53eb61a63)
        5 DB::Server::main() build_docker/./programs/server/Server.cpp:1615:9 (clickhouse+0x163e7f78) (BuildId: 7d4ce55d33d4c3e3df9fd39b304e67e53eb61a63)
        6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x257608fe) (BuildId: 7d4ce55d33d4c3e3df9fd39b304e67e53eb61a63)
        7 DB::Server::run() build_docker/./programs/server/Server.cpp:391:25 (clickhouse+0x163d7d7c) (BuildId: 7d4ce55d33d4c3e3df9fd39b304e67e53eb61a63)
        8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x25780114) (BuildId: 7d4ce55d33d4c3e3df9fd39b304e67e53eb61a63)
        9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:196:20 (clickhouse+0x163d4c23) (BuildId: 7d4ce55d33d4c3e3df9fd39b304e67e53eb61a63)
        10 main build_docker/./programs/main.cpp:487:12 (clickhouse+0xdf8c877) (BuildId: 7d4ce55d33d4c3e3df9fd39b304e67e53eb61a63)

      Previous read of size 8 at 0x7b58000044a0 by thread T27 (mutexes: write M0, write M1):
        1 DB::DatabaseReplicated::canExecuteReplicatedMetadataAlter() const build_docker/./src/Databases/DatabaseReplicated.cpp:1303:12 (clickhouse+0x1ec5c5bd)
        2 DB::ReplicatedMergeTreeQueue::shouldExecuteLogEntry() const build_docker/./src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1471:24 (clickhouse+0x2115fb56) (BuildId: 7d4ce55d33d4c3e3df9fd39b304e67e53eb61a63)
        3 DB::ReplicatedMergeTreeQueue::selectEntryToProcess(DB::MergeTreeDataMergerMutator&, DB::MergeTreeData&) build_docker/./src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1676:13 (clickhouse+0x21163c58) (BuildId: 7d4ce55d33d4c3e3df9fd39b304e67e53eb61a63)
        4 DB::StorageReplicatedMergeTree::selectQueueEntry() build_docker/./src/Storages/StorageReplicatedMergeTree.cpp:3240:26 (clickhouse+0x20823db2) (BuildId: 7d4ce55d33d4c3e3df9fd39b304e67e53eb61a63)
        5 DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&) build_docker/./src/Storages/StorageReplicatedMergeTree.cpp:3304:65 (clickhouse+0x208240fc) (BuildId: 7d4ce55d33d4c3e3df9fd39b304e67e53eb61a63)

  [1]: https://s3.amazonaws.com/clickhouse-test-reports/52395/0b258dda4ee618a4d002e2b5246d68bbd2c77c7e/integration_tests__tsan__[5_6].html

Add ddl_worker_initialized flag to avoid this race.

Note, that it should be enough to check this flag only in
canExecuteReplicatedMetadataAlter() since only it can be run in parallel
with ctor before it had been finished.

v0: initialize ddl before startupTables()
v2: ddl_worker_initialized

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
Co-authored-by: Alexander Tokmakov <tavplubix@clickhouse.com>
2023-07-25 17:35:01 +03:00
Azat Khuzhin
79d0343bec
tests: fix 01821_join_table_race_long flakiness (#52559)
By grouping multiple queries into one clickhouse-client invocation,
since each execve of the binary can take ~1 second in debug builds.

But this slightly changes the logic, so be aware.

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
Co-authored-by: Alexander Tokmakov <tavplubix@clickhouse.com>
2023-07-25 17:34:40 +03:00
Sanjam Panda
ee37bdda92
Merge branch 'master' into external_aggregation_fix 2023-07-25 19:57:36 +05:30
Alexander Tokmakov
a6cf769222
Merge pull request #52558 from azat/tests/00719_parallel_ddl_table
tests: fix 00719_parallel_ddl_table flakiness in debug builds
2023-07-25 17:25:24 +03:00
Alexander Tokmakov
7d871dadd7
Merge pull request #52556 from azat/tests/fix-01035_avg_weighted_long
tests: fix 01035_avg_weighted_long flakiness
2023-07-25 17:21:29 +03:00
Anton Popov
2c7c38950d better check for lightweight deletes 2023-07-25 14:21:12 +00:00
Val Doroshchuk
bd09ad6736 MaterializedMySQL: Fix typos in tests 2023-07-25 16:20:24 +02:00
Julian Maicher
b91852de3a fix(docs): Document correct MODIFY COLUMN REMOVE syntax 2023-07-25 16:07:29 +02:00
Anton Popov
073dea6eef
Merge pull request #49160 from CurtizJ/flush-async-insert-queue
Allow to flush asynchronous insert queue
2023-07-25 15:58:20 +02:00
Anton Popov
4531b105ac
Merge branch 'master' into flush-async-insert-queue 2023-07-25 15:48:01 +02:00
robot-clickhouse
d7de8bf797 Automatic style fix 2023-07-25 13:03:12 +00:00
Alexander Tokmakov
328d0a5269 fix 2023-07-25 14:50:27 +02:00
Yakov Olkhovskiy
e133db7937
Merge pull request #51472 from bigo-sg/substring_index
Add function substring_index, as in spark or mysql
2023-07-25 08:43:13 -04:00
Kruglov Pavel
da02f3189d
Merge pull request #50452 from DanRoscigno/update-acid-docs
update for min_chunk_bytes_for_parallel_parsing
2023-07-25 14:15:55 +02:00
Robert Schulze
1a965b20a3
Merge pull request #52309 from rschu1ze/qc-event-descr
Minor: Update description of events "QueryCacheHits/Misses"
2023-07-25 13:54:06 +02:00
Antonio Andelic
93e5d7f51c Fix flaky 00995_exception_while_insert 2023-07-25 11:42:22 +00:00