message: Tested with the entry to rename is a schema.
diff: @@ -144,6 +144,9 @@ void SchemaCatalogEntry::AlterTable(ClientContext &context, AlterTableInfo *info
  case AlterTableType::RENAME_TABLE: {
  auto &transaction = Transaction::GetTransaction(context);
  auto entry = tables.GetEntry(transaction, info->table);
  + if(entry->type == CatalogType::SCHEMA) {
  + throw CatalogException("Entry \"%s\" is not a table!", entry->name.c_str());
  + }
  auto copied_entry = entry->Copy(context);
  // Drop the old table entry
  