Skip to content

Commit d24d27b

Browse files
Merge pull request ClickHouse#86734 from ClickHouse/backport/25.8/86391
Backport ClickHouse#86391 to 25.8: Skip DataLake tables for `DROP REPLICA`
2 parents 4d3191e + 0e9b5bb commit d24d27b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Interpreters/InterpreterSystemQuery.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,7 @@ void InterpreterSystemQuery::dropReplica(ASTSystemQuery & query)
11331133
{
11341134
getContext()->checkAccess(AccessType::SYSTEM_DROP_REPLICA, query.getDatabase());
11351135
DatabasePtr database = DatabaseCatalog::instance().getDatabase(query.getDatabase());
1136-
for (auto iterator = database->getTablesIterator(getContext()); iterator->isValid(); iterator->next())
1136+
for (auto iterator = database->getLightweightTablesIterator(getContext()); iterator->isValid(); iterator->next())
11371137
dropReplicaImpl(query, iterator->table());
11381138
LOG_TRACE(log, "Dropped replica {} from database {}", query.replica, backQuoteIfNeed(database->getDatabaseName()));
11391139
}

0 commit comments

Comments
 (0)