Skip to content

Missing unused column in "if" expression when upgrading to 21.11.4.14 #31687

@bullet1337

Description

@bullet1337

21.11.4.14

create table test (x String) Engine=StripeLog
select if(toUInt8(0), y, 42) from test

Throws exception DB::Exception: Missing columns: 'y'
Excpecting 42
btw select if(0, y, 42) from test works fine

Metadata

Metadata

Labels

potential bugTo be reviewed by developers and confirmed/rejected.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions