Repository navigation
Conversation
|
Workflow [PR], commit [d0e103b] Summary: ❌
|
|
A crash occurs in AggregateFunctionNull when working with sparse columns of the Nullable type. When the type of the column is Nullable, the code was relying on the idea that all columns will be wrapped with ColumnNullable. But this is not always true. When we work with sparse columns, if ALL non-default values (that we store separately) are not NULL, then we may not get columns wrapped in ColumnNullable. So, in the test,
|
|
Note that a) this feature was introduced in the current development and not released so no need to backport and b) I'm reverting it in #88999 |
|
@pamarcos still fails for me :(, I will merge with master to re-trigger the CI and to double-validate with bugfix check. |
…ault-logical-error
|
@amosbird Here's another bug related to sparse nullable columns |
|
Yeah, this looks like another valid fix. Thanks! |
|
FYI this bug is not related to #88999 because it was found in 25.8 |
| OPTIMIZE TABLE t2 FINAL; | ||
|
|
||
| WITH cte AS ( | ||
| SELECT id, max(CASE WHEN value != '' THEN value END) as b |
There was a problem hiding this comment.
So these create Nullable column, right? And later we do not add Nullable wrapper for b from some table? But, shouldn't we have have implicit CAST for these? I think we should, then why it is not enough?
| @@ -0,0 +1,46 @@ | |||
| -- There were crashes in AggregateFunctionNullUnary when column type is Nullable | |||
| -- but actual column is not wrapped in ColumnNullable (e.g. sparse column values) | |||
There was a problem hiding this comment.
Let's also include your explanation for the test - #91738 (comment)
| -- There were crashes in AggregateFunctionNullUnary when column type is Nullable | ||
| -- but actual column is not wrapped in ColumnNullable (e.g. sparse column values) | ||
|
|
||
| SET enable_analyzer=1; |
There was a problem hiding this comment.
Shouldn't it fail w/o analyzer as well?
|
Already fixed in #95157. |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Fixes a segfault in case of
count distinctnullable sparse columns.Documentation entry for user-facing changes