You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Algunenano
added
bug
Confirmed user-visible misbehaviour in official release
and removed
potential bug
To be reviewed by developers and confirmed/rejected.
labels
Feb 21, 2024
Describe what's wrong
Function
has
works incorrectly when the second argument is anullable
column.It may return 1 for expression
has([0, 1], a)
, whena
isNull
.It looks like that for nullable columns the function uses an
underlying
column (assumeNotNullable
), and the null bitmap is ignored.(the result for second query is wrong)
https://fiddle.clickhouse.com/d508fc65-6e05-495f-a923-a142f6b906b7
Does it reproduce on the most recent release?
Yes
How to reproduce
Which ClickHouse server version to use
23.8/24.1/latest
CREATE TABLE
statements for all tables involvedExpected behavior
has
should return 0 if the value isNull
andNull
is missing in the arrayThe text was updated successfully, but these errors were encountered: