From 1bece3883568b5da1abb523799864ba86d4f2d38 Mon Sep 17 00:00:00 2001 From: Alberto Bastos Date: Tue, 21 Jan 2025 09:46:42 +0100 Subject: [PATCH] fix table suffix check to be case-insensitive --- .../org/apache/pinot/spi/utils/builder/TableNameBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pinot-spi/src/main/java/org/apache/pinot/spi/utils/builder/TableNameBuilder.java b/pinot-spi/src/main/java/org/apache/pinot/spi/utils/builder/TableNameBuilder.java index 6c8b233f8fcf..1fd2e4db33a5 100644 --- a/pinot-spi/src/main/java/org/apache/pinot/spi/utils/builder/TableNameBuilder.java +++ b/pinot-spi/src/main/java/org/apache/pinot/spi/utils/builder/TableNameBuilder.java @@ -70,7 +70,7 @@ public String tableNameWithType(String tableName) { * @return Whether the table has type suffix that matches the builder type */ private boolean tableHasTypeSuffix(String tableName) { - return tableName.endsWith(_typeSuffix); + return tableName.toUpperCase().endsWith(_typeSuffix); } /**