From e2c3d52d9d1377a61e7ebff08b055c55ec747c81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Grzegorz=20Kokosi=C5=84ski?= Date: Thu, 30 Mar 2017 08:12:11 +0200 Subject: [PATCH] Fix TableNameGenerator Since Presto is not much case-sensitive, TableNameGenerator should produce table should be lower case to prevent casing issues. --- .../tempto/internal/fulfillment/table/TableNameGenerator.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tempto-core/src/main/java/com/teradata/tempto/internal/fulfillment/table/TableNameGenerator.java b/tempto-core/src/main/java/com/teradata/tempto/internal/fulfillment/table/TableNameGenerator.java index 4a9483e6..d8eef1b4 100644 --- a/tempto-core/src/main/java/com/teradata/tempto/internal/fulfillment/table/TableNameGenerator.java +++ b/tempto-core/src/main/java/com/teradata/tempto/internal/fulfillment/table/TableNameGenerator.java @@ -22,7 +22,8 @@ public class TableNameGenerator public String generateMutableTableNameInDatabase(String baseTableName) { - return MUTABLE_TABLE_NAME_PREFIX + baseTableName + "_" + randomAlphanumeric(8); + String tableName = MUTABLE_TABLE_NAME_PREFIX + baseTableName + "_" + randomAlphanumeric(8); + return tableName.toLowerCase(); } public boolean isMutableTableName(String tableNameInDatabase)