mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
Fix test from fuzzer.
This commit is contained in:
parent
7320411a7f
commit
57e5407fd8
@ -342,6 +342,13 @@ static void executeAction(const ExpressionActions::Action & action, ExecutionCon
|
|||||||
res_column.type = action.node->result_type;
|
res_column.type = action.node->result_type;
|
||||||
res_column.name = action.node->result_name;
|
res_column.name = action.node->result_name;
|
||||||
|
|
||||||
|
if (action.node->column)
|
||||||
|
{
|
||||||
|
/// Do not execut function if it's result is already known.
|
||||||
|
res_column.column = action.node->column->cloneResized(num_rows);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
ColumnsWithTypeAndName arguments(action.arguments.size());
|
ColumnsWithTypeAndName arguments(action.arguments.size());
|
||||||
for (size_t i = 0; i < arguments.size(); ++i)
|
for (size_t i = 0; i < arguments.size(); ++i)
|
||||||
{
|
{
|
||||||
|
@ -3,4 +3,8 @@ create table tab (a LowCardinality(String), b LowCardinality(String)) engine = M
|
|||||||
|
|
||||||
insert into tab values ('1', 'a'), ('2', 'b');
|
insert into tab values ('1', 'a'), ('2', 'b');
|
||||||
SELECT a = '1' FROM tab WHERE a = '1' and b='a';
|
SELECT a = '1' FROM tab WHERE a = '1' and b='a';
|
||||||
|
|
||||||
|
-- Fuzzed
|
||||||
|
SELECT * FROM tab WHERE (a = '1') AND 0 AND (b = 'a');
|
||||||
|
|
||||||
drop table if exists tab;
|
drop table if exists tab;
|
||||||
|
Loading…
Reference in New Issue
Block a user