Skip to content

How to populate AggregatingMergeTree with pre-aggregated data? #756

@gryphon

Description

@gryphon

Thanks for a great job!

We are trying to migrate our old pre-aggregated data from our own solution to clickhouse.

We have data as follows (simplified):

  • date, domain, views
  • 12.01.2017, ya.ru, 234
  • 12.01.2017, google.com, 333
  • ....

Views is an aggregated column in AggregatingMergeTree. When inserting this data to table clickhouse shows an error that views values are not an aggregating function type.

I think this also could be useful to backup/restore data from AggregatingMergeTree tables.

Please advise.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions