Fix some comments

This commit is contained in:
Azat Khuzhin 2021-08-08 09:58:07 +03:00
parent b8a679158c
commit 3be3c503aa
2 changed files with 1 additions and 2 deletions

View File

@ -1378,7 +1378,7 @@ void InterpreterSelectQuery::executeImpl(QueryPlan & query_plan, const BlockInpu
/// Limit is no longer needed if there is prelimit.
///
/// NOTE: that LIMIT cannot be applied of OFFSET should not be applied,
/// NOTE: that LIMIT cannot be applied if OFFSET should not be applied,
/// since LIMIT will apply OFFSET too.
/// This is the case for various optimizations for distributed queries,
/// and when LIMIT cannot be applied it will be applied on the initiator anyway.

View File

@ -553,7 +553,6 @@ std::optional<QueryProcessingStage::Enum> StorageDistributed::getOptimizedQueryP
if (const ASTPtr order_by = select.orderBy())
return default_stage;
// LIMIT BY
// LIMIT
// OFFSET
if (select.limitLength() || select.limitOffset())