Skip to content

BI tool compatibility with -State datatypes in tables #29109

@UnamedRus

Description

@UnamedRus

Use case

Improve clickhouse usability with BI tools which doesn't know anything about AggregationFunction data type

A clear and concise description of what is the intended usage scenario is.

Describe the solution you'd like

auto_finalize_aggregation_states setting which will do the following:

  1. For system.tables, DESC table_name return not AggregationFunction(xxxx), but resulting type.
  2. For columns with AggregationFunction datatype:
    2.1. For non-aggregation queries will transparently apply finalizeAggregation() function.
    2.2. For aggregation queries will transparently apply -Merge combinator for aggregation functions around them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions