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) )