Skip to content

Commit

Permalink
Make exception messages consistent
Browse files Browse the repository at this point in the history
Change the exception message to be consistent with the exception message thrown by the other db clients which don't support this feature.
  • Loading branch information
findinpath authored and hashhar committed Apr 23, 2021
1 parent d4ae79b commit c055755
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -472,7 +472,7 @@ public void dropTable(AccumuloTable table)
public void renameTable(SchemaTableName oldName, SchemaTableName newName)
{
if (!oldName.getSchemaName().equals(newName.getSchemaName())) {
throw new TrinoException(NOT_SUPPORTED, "Accumulo does not support renaming tables to different namespaces (schemas)");
throw new TrinoException(NOT_SUPPORTED, "This connector does not support renaming tables across schemas");
}

AccumuloTable oldTable = getTable(oldName);
Expand Down

0 comments on commit c055755

Please sign in to comment.