From 934e3180e883eadebedc8647a1d1f67b0f172ccf Mon Sep 17 00:00:00 2001 From: Aimery Methena Date: Tue, 7 Jan 2025 16:51:13 +0000 Subject: [PATCH] use case resolver for listPaginatedTables as well --- .../athena/connectors/oracle/OracleMetadataHandler.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/athena-oracle/src/main/java/com/amazonaws/athena/connectors/oracle/OracleMetadataHandler.java b/athena-oracle/src/main/java/com/amazonaws/athena/connectors/oracle/OracleMetadataHandler.java index 10400a55aa..f89b037f63 100644 --- a/athena-oracle/src/main/java/com/amazonaws/athena/connectors/oracle/OracleMetadataHandler.java +++ b/athena-oracle/src/main/java/com/amazonaws/athena/connectors/oracle/OracleMetadataHandler.java @@ -253,7 +253,8 @@ protected ListTablesResponse listPaginatedTables(final Connection connection, fi int t = token != null ? Integer.parseInt(token) : 0; LOGGER.info("Starting pagination at {} with page size {}", token, pageSize); - List paginatedTables = getPaginatedTables(connection, listTablesRequest.getSchemaName(), t, pageSize); + String casedSchemaName = OracleCaseResolver.getAdjustedSchemaName(connection, listTablesRequest.getSchemaName(), configOptions); + List paginatedTables = getPaginatedTables(connection, casedSchemaName, t, pageSize); LOGGER.info("{} tables returned. Next token is {}", paginatedTables.size(), t + pageSize); return new ListTablesResponse(listTablesRequest.getCatalogName(), paginatedTables, Integer.toString(t + pageSize)); }