Skip to content

Commit 232f3d1

Browse files
committed
Fix
1 parent 81cfe7c commit 232f3d1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Interpreters/evaluateConstantExpression.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ namespace
612612

613613
if (!type->equals(*node->result_type))
614614
{
615-
cast_col = tryCastColumn(column, value->result_type, node->result_type);
615+
cast_col = tryCastColumn(column, type, node->result_type);
616616
if (!cast_col)
617617
return {};
618618
const auto & col_nullable = assert_cast<const ColumnNullable &>(*cast_col);
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
drop table if exists t1;
22

3-
create table t1 (Col LowCardinality(String)) engine = MergeTree;
3+
create table t1 (Col LowCardinality(String)) engine = MergeTree order by ();
44
insert into t1 values ('a'), ('b'), ('c');
55

66
select * from remote('127.{1,2}', currentDatabase(), t1, multiIf(Col = 'a', 0, Col = 'b', 1, -1)) where Col in ('a', 'b') order by all settings optimize_skip_unused_shards=1;

0 commit comments

Comments
 (0)