Skip to content

Commit

Permalink
Fix TableNameGenerator
Browse files Browse the repository at this point in the history
Since Presto is not much case-sensitive, TableNameGenerator should
produce table should be lower case to prevent casing issues.
  • Loading branch information
kokosing committed Mar 30, 2017
1 parent 97fb5d4 commit e2c3d52
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e2c3d52

Please sign in to comment.