mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 09:02:00 +00:00
Try to enable normal projections.
This commit is contained in:
parent
483bd165e7
commit
95431168c2
@ -134,6 +134,8 @@ ASTPtr ASTProjectionSelectQuery::cloneToASTSelect() const
|
||||
if (groupBy())
|
||||
select_query->setExpression(ASTSelectQuery::Expression::GROUP_BY, groupBy()->clone());
|
||||
// Get rid of orderBy. It's used for projection definition only
|
||||
if (orderBy())
|
||||
select_query->setExpression(ASTSelectQuery::Expression::ORDER_BY, orderBy()->clone());
|
||||
return node;
|
||||
}
|
||||
|
||||
|
@ -313,7 +313,7 @@ QueryPlanPtr MergeTreeDataSelectExecutor::read(
|
||||
}
|
||||
}
|
||||
|
||||
if (processed_stage >= QueryProcessingStage::WithMergeableState)
|
||||
if (query_info.aggregate_projection->type == "aggregate")
|
||||
{
|
||||
/// Here we create shared ManyAggregatedData for both projection and ordinary data.
|
||||
/// For ordinary data, AggregatedData is filled in a usual way.
|
||||
|
@ -104,8 +104,8 @@ ProjectionDescription::getProjectionFromAST(const ASTPtr & definition_ast, const
|
||||
if (!projection_definition->query)
|
||||
throw Exception("QUERY is required for projection", ErrorCodes::INCORRECT_QUERY);
|
||||
|
||||
if (projection_definition->type == "normal")
|
||||
throw Exception("Normal projections are not supported for now", ErrorCodes::NOT_IMPLEMENTED);
|
||||
// if (projection_definition->type == "normal")
|
||||
// throw Exception("Normal projections are not supported for now", ErrorCodes::NOT_IMPLEMENTED);
|
||||
|
||||
ProjectionDescription result;
|
||||
result.definition_ast = projection_definition->clone();
|
||||
|
Loading…
Reference in New Issue
Block a user