From 04d59c7a7c4491c9de7e50b707282ef3c48d6ae3 Mon Sep 17 00:00:00 2001 From: jsc0218 Date: Mon, 9 Dec 2024 19:44:59 +0000 Subject: [PATCH] fix --- src/Databases/PostgreSQL/fetchPostgreSQLTableStructure.cpp | 2 +- tests/integration/test_storage_postgresql/test.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Databases/PostgreSQL/fetchPostgreSQLTableStructure.cpp b/src/Databases/PostgreSQL/fetchPostgreSQLTableStructure.cpp index 5268dbcb59f..29105142029 100644 --- a/src/Databases/PostgreSQL/fetchPostgreSQLTableStructure.cpp +++ b/src/Databases/PostgreSQL/fetchPostgreSQLTableStructure.cpp @@ -256,7 +256,7 @@ PostgreSQLTableStructure::ColumnsInfoPtr readNamesAndTypesList( { throw Exception( ErrorCodes::BAD_ARGUMENTS, - "PostgreSQL cannot infer dimensions of an empty array: {}.{}", + "PostgreSQL cannot infer dimensions of an empty array: {}.{}. Make sure no empty array values in the first row.", postgres_table, postgres_column); } diff --git a/tests/integration/test_storage_postgresql/test.py b/tests/integration/test_storage_postgresql/test.py index 78bb1167d79..b31cef826ae 100644 --- a/tests/integration/test_storage_postgresql/test.py +++ b/tests/integration/test_storage_postgresql/test.py @@ -267,7 +267,7 @@ def test_postgres_array_ndim_error_messges(started_cluster): assert False except Exception as error: assert ( - 'PostgreSQL cannot infer dimensions of an empty array: array_ndim_view."Mixed-case with spaces"' + 'PostgreSQL cannot infer dimensions of an empty array: array_ndim_view."Mixed-case with spaces". Make sure no empty array values in the first row.' in str(error) )