mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
Merge pull request #60689 from azat/system.parts-no-uuid-fix
Fix system.parts for non-Atomic/Ordinary database engine (i.e. Memory)
This commit is contained in:
commit
091f4c3e35
@ -138,7 +138,7 @@ StoragesInfoStream::StoragesInfoStream(const SelectQueryInfo & query_info, Conte
|
||||
|
||||
String engine_name = storage->getName();
|
||||
UUID storage_uuid = storage->getStorageID().uuid;
|
||||
if (database->getEngineName() == "Ordinary")
|
||||
if (storage_uuid == UUIDHelpers::Nil)
|
||||
{
|
||||
SipHash hash;
|
||||
hash.update(database_name);
|
||||
|
@ -1 +1,2 @@
|
||||
test all_1_1_0 1
|
||||
test2 all_1_1_0 1
|
||||
|
@ -5,4 +5,12 @@ CUR_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
# shellcheck source=../shell_config.sh
|
||||
. "$CUR_DIR"/../shell_config.sh
|
||||
|
||||
$CLICKHOUSE_LOCAL --multiquery "CREATE TABLE test (x UInt8) ENGINE = MergeTree ORDER BY (); INSERT INTO test SELECT 1; SELECT table, name, rows FROM system.parts WHERE database = currentDatabase();"
|
||||
$CLICKHOUSE_LOCAL --multiquery "
|
||||
CREATE TABLE test (x UInt8) ENGINE = MergeTree ORDER BY ();
|
||||
INSERT INTO test SELECT 1;
|
||||
|
||||
CREATE TABLE test2 (x UInt8) ENGINE = MergeTree ORDER BY ();
|
||||
INSERT INTO test2 SELECT 1;
|
||||
|
||||
SELECT table, name, rows FROM system.parts WHERE database = currentDatabase();
|
||||
"
|
||||
|
Loading…
Reference in New Issue
Block a user