From f63e90f3207ad88146571fe35d7dbd8c23942ea8 Mon Sep 17 00:00:00 2001 From: lokiore Date: Fri, 24 Jul 2026 10:54:51 -0700 Subject: [PATCH] PHOENIX-7970 :- QueryDatabaseMetaDataIT.testShowTables fails after SYSTEM.HA_GROUP is added to the SYSTEM schema The consistent-failover work adds a new system table, SYSTEM.HA_GROUP, raising the SYSTEM schema table count from 12 to 13. testShowTables hard-codes the old count, so "SHOW TABLES IN SYSTEM" now fails with expected:<12> but was:<13>. Update the expected count to 13 and assert the returned set contains HA_GROUP so the test documents that the table is expected in the SYSTEM schema. Test-only change; no production code is affected. The "SHOW TABLES IN SYSTEM LIKE 'FUNC%'" assertion is unchanged. Generated-by: Claude Code (Opus 4.8 (1M context)) --- .../org/apache/phoenix/end2end/QueryDatabaseMetaDataIT.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phoenix-core/src/it/java/org/apache/phoenix/end2end/QueryDatabaseMetaDataIT.java b/phoenix-core/src/it/java/org/apache/phoenix/end2end/QueryDatabaseMetaDataIT.java index 60e0aba9f77..dc2aedf5906 100644 --- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/QueryDatabaseMetaDataIT.java +++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/QueryDatabaseMetaDataIT.java @@ -434,9 +434,10 @@ public void testShowTables() throws SQLException { tables.add(rs.getString("TABLE_NAME")); assertEquals("SYSTEM", rs.getString("TABLE_SCHEM")); } - assertEquals(12, tables.size()); + assertEquals(13, tables.size()); assertTrue(tables.contains("CATALOG")); assertTrue(tables.contains("FUNCTION")); + assertTrue(tables.contains("HA_GROUP")); tables.clear(); // Add a filter on the table name.