@@ -139,7 +139,7 @@ public TableDto createTable(String catalogName, String databaseName, String tabl
139
139
return requestWrapper (name , "createTable" , () -> {
140
140
checkArgument (table != null , "Table cannot be null" );
141
141
checkArgument (tableName != null && !tableName .isEmpty (), "table name is required" );
142
- checkArgument (table .getName () != null && tableName .equals (table .getName ().getTableName ()),
142
+ checkArgument (table .getName () != null && tableName .equalsIgnoreCase (table .getName ().getTableName ()),
143
143
"Table name does not match the name in the table" );
144
144
145
145
eventBus .post (new MetacatCreateTablePreEvent (name , metacatContext ));
@@ -315,7 +315,7 @@ public TableDto updateTable(String catalogName, String databaseName, String tabl
315
315
return requestWrapper (name , "updateTable" , () -> {
316
316
checkArgument (table != null , "Table cannot be null" );
317
317
checkArgument (tableName != null && !tableName .isEmpty (), "table name is required" );
318
- checkArgument (table .getName () != null && tableName .equals (table .getName ().getTableName ()),
318
+ checkArgument (table .getName () != null && tableName .equalsIgnoreCase (table .getName ().getTableName ()),
319
319
"Table name does not match the name in the table" );
320
320
321
321
eventBus .post (new MetacatUpdateTablePreEvent (name , table , metacatContext ));
0 commit comments