ClickHouse / ClickHouse/ClickHouse

last_value support for Variant type

Open
#84,748 0 comments 0 reactions 0 assignees View on GitHub
comp-aggregate-functions external feature
Dominant language
C++
Stars
49.9k
Forks
9k
Avg merge
21h 32m
Merged PRs (30d)
515

Description

### Company or project name

_No response_

### Use case

https://fiddle.clickhouse.com/7cf75f16-c433-4c33-b865-99ce25324ef6

Coalescing merge tree is using last_value as aggregate function, so it's needed for proper work of arrays/other complex column types in Coalescing merge tree
https://github.com/ClickHouse/ClickHouse/issues/84015#issuecomment-3126914921
https://github.com/ClickHouse/ClickHouse/pull/79344

### Describe the solution you'd like

last_value will skip "Nullable(Nothing)" values of Variant type

### Describe alternatives you've considered

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.