diff --git a/tests/queries/0_stateless/02888_system_tables_with_inaccsessible_table_function.reference b/tests/queries/0_stateless/02888_system_tables_with_inaccsessible_table_function.reference index f6c14a28b456..99876e84d481 100644 --- a/tests/queries/0_stateless/02888_system_tables_with_inaccsessible_table_function.reference +++ b/tests/queries/0_stateless/02888_system_tables_with_inaccsessible_table_function.reference @@ -1,4 +1,4 @@ -tablefunc01 StorageProxy CREATE TABLE default.tablefunc01 (`x` Int32) AS postgresql(\'127.121.0.1:5432\', \'postgres_db\', \'postgres_table\', \'postgres_user\', \'[HIDDEN]\') [] 1 967e329f-e10a-4a5e-8c27-1ece57daa6a9 -tablefunc02 StorageProxy CREATE TABLE default.tablefunc02 (`x` Int32) AS mysql(\'127.123.0.1:3306\', \'mysql_db\', \'mysql_table\', \'mysql_user\', \'[HIDDEN]\') [] 1 997be33d-087b-432b-b90d-c7dc398addf7 -tablefunc01 StorageProxy CREATE TABLE default.tablefunc01 (`x` Int32) AS postgresql(\'127.121.0.1:5432\', \'postgres_db\', \'postgres_table\', \'postgres_user\', \'[HIDDEN]\') [] 1 967e329f-e10a-4a5e-8c27-1ece57daa6a9 -tablefunc02 StorageProxy CREATE TABLE default.tablefunc02 (`x` Int32) AS mysql(\'127.123.0.1:3306\', \'mysql_db\', \'mysql_table\', \'mysql_user\', \'[HIDDEN]\') [] 1 997be33d-087b-432b-b90d-c7dc398addf7 +tablefunc01 StorageProxy CREATE TABLE default.tablefunc01 (`x` Int32) AS postgresql(\'127.121.0.1:5432\', \'postgres_db\', \'postgres_table\', \'postgres_user\', \'[HIDDEN]\') [] 1 1 +tablefunc02 StorageProxy CREATE TABLE default.tablefunc02 (`x` Int32) AS mysql(\'127.123.0.1:3306\', \'mysql_db\', \'mysql_table\', \'mysql_user\', \'[HIDDEN]\') [] 1 1 +tablefunc01 StorageProxy CREATE TABLE default.tablefunc01 (`x` Int32) AS postgresql(\'127.121.0.1:5432\', \'postgres_db\', \'postgres_table\', \'postgres_user\', \'[HIDDEN]\') [] 1 1 +tablefunc02 StorageProxy CREATE TABLE default.tablefunc02 (`x` Int32) AS mysql(\'127.123.0.1:3306\', \'mysql_db\', \'mysql_table\', \'mysql_user\', \'[HIDDEN]\') [] 1 1 diff --git a/tests/queries/0_stateless/02888_system_tables_with_inaccsessible_table_function.sql b/tests/queries/0_stateless/02888_system_tables_with_inaccsessible_table_function.sql index b2f4c22ba129..b5fd39da3d64 100644 --- a/tests/queries/0_stateless/02888_system_tables_with_inaccsessible_table_function.sql +++ b/tests/queries/0_stateless/02888_system_tables_with_inaccsessible_table_function.sql @@ -5,11 +5,11 @@ DROP DATABASE IF EXISTS {CLICKHOUSE_DATABASE:Identifier}; CREATE DATABASE {CLICKHOUSE_DATABASE:Identifier}; -CREATE TABLE {CLICKHOUSE_DATABASE:Identifier}.tablefunc01 UUID '967e329f-e10a-4a5e-8c27-1ece57daa6a9' (x int) AS postgresql('127.121.0.1:5432', 'postgres_db', 'postgres_table', 'postgres_user', '124444'); -CREATE TABLE {CLICKHOUSE_DATABASE:Identifier}.tablefunc02 UUID '997be33d-087b-432b-b90d-c7dc398addf7' (x int) AS mysql('127.123.0.1:3306', 'mysql_db', 'mysql_table', 'mysql_user','123123'); +CREATE TABLE {CLICKHOUSE_DATABASE:Identifier}.tablefunc01 (x int) AS postgresql('127.121.0.1:5432', 'postgres_db', 'postgres_table', 'postgres_user', '124444'); +CREATE TABLE {CLICKHOUSE_DATABASE:Identifier}.tablefunc02 (x int) AS mysql('127.123.0.1:3306', 'mysql_db', 'mysql_table', 'mysql_user','123123'); -SELECT name, engine, engine_full, create_table_query, data_paths, notEmpty([metadata_path]), uuid +SELECT name, engine, engine_full, create_table_query, data_paths, notEmpty([metadata_path]), notEmpty([uuid]) FROM system.tables WHERE name like '%tablefunc%' and database=currentDatabase() ORDER BY metadata_modification_time; @@ -18,10 +18,10 @@ DETACH TABLE {CLICKHOUSE_DATABASE:Identifier}.tablefunc01; DETACH TABLE {CLICKHOUSE_DATABASE:Identifier}.tablefunc02; -ATTACH TABLE {CLICKHOUSE_DATABASE:Identifier}.tablefunc01 UUID '967e329f-e10a-4a5e-8c27-1ece57daa6a9'; -ATTACH TABLE {CLICKHOUSE_DATABASE:Identifier}.tablefunc02 UUID '997be33d-087b-432b-b90d-c7dc398addf7'; +ATTACH TABLE {CLICKHOUSE_DATABASE:Identifier}.tablefunc01; +ATTACH TABLE {CLICKHOUSE_DATABASE:Identifier}.tablefunc02; -SELECT name, engine, engine_full, create_table_query, data_paths, notEmpty([metadata_path]), uuid +SELECT name, engine, engine_full, create_table_query, data_paths, notEmpty([metadata_path]), notEmpty([uuid]) FROM system.tables WHERE name like '%tablefunc%' and database=currentDatabase() ORDER BY metadata_modification_time;