This commit is contained in:
Shichao Jin 2024-10-26 22:15:54 -04:00 committed by GitHub
parent 0feb4651d8
commit 5a11b62418
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -301,7 +301,7 @@ Block ProjectionDescription::calculate(const Block & block, ContextPtr context)
query_ast_copy = query_ast->clone();
auto * select_row_exists = query_ast_copy->as<ASTSelectQuery>();
if (!select_row_exists)
throw Exception(ErrorCodes::LOGICAL_ERROR, "Cannot get ASTSelectQuery whening adding _row_exists = 1. It's a bug");
throw Exception(ErrorCodes::LOGICAL_ERROR, "Cannot get ASTSelectQuery when adding _row_exists = 1. It's a bug");
select_row_exists->setExpression(
ASTSelectQuery::Expression::WHERE,