mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 09:32:06 +00:00
Fix for passes that use column source
This commit is contained in:
parent
0f7daeffc8
commit
de115c4da7
@ -49,6 +49,9 @@ public:
|
|||||||
if (!first_argument_column_node)
|
if (!first_argument_column_node)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (first_argument_column_node->getColumnName() == "__grouping_set")
|
||||||
|
return;
|
||||||
|
|
||||||
auto column_source = first_argument_column_node->getColumnSource();
|
auto column_source = first_argument_column_node->getColumnSource();
|
||||||
auto * table_node = column_source->as<TableNode>();
|
auto * table_node = column_source->as<TableNode>();
|
||||||
|
|
||||||
|
@ -91,6 +91,9 @@ public:
|
|||||||
const auto * column_id = func_node->getArguments().getNodes()[0]->as<ColumnNode>();
|
const auto * column_id = func_node->getArguments().getNodes()[0]->as<ColumnNode>();
|
||||||
if (!column_id) return;
|
if (!column_id) return;
|
||||||
|
|
||||||
|
if (column_id->getColumnName() == "__grouping_set")
|
||||||
|
return;
|
||||||
|
|
||||||
const auto * column_type = column_id->getColumnType().get();
|
const auto * column_type = column_id->getColumnType().get();
|
||||||
if (!isDateOrDate32(column_type) && !isDateTime(column_type) && !isDateTime64(column_type)) return;
|
if (!isDateOrDate32(column_type) && !isDateTime(column_type) && !isDateTime64(column_type)) return;
|
||||||
|
|
||||||
|
@ -52,6 +52,9 @@ public:
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
auto & column_node = node->as<ColumnNode &>();
|
auto & column_node = node->as<ColumnNode &>();
|
||||||
|
if (column_node.getColumnName() == "__grouping_set")
|
||||||
|
return;
|
||||||
|
|
||||||
auto column_source_node = column_node.getColumnSource();
|
auto column_source_node = column_node.getColumnSource();
|
||||||
auto column_source_node_type = column_source_node->getNodeType();
|
auto column_source_node_type = column_source_node->getNodeType();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user