Skip to content

Commit

Permalink
Update aggregatingmergetree.md
Browse files Browse the repository at this point in the history
.
  • Loading branch information
BorisTyshkevich committed Mar 4, 2024
1 parent f03d5ad commit b8531f7
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -102,6 +102,7 @@ FINAL
## Merge two data streams

Q. I have 2 Kafka topics from which I am storing events into 2 different tables (A and B) having the same unique ID. I want to create a single table that combines the data in tables A and B into one table C. The problem is that data received asynchronously and not all the data is available when a row arrives in Table A or vice-versa.

A. You can use AggregatingMergeTree with Nullable columns and any aggregation function or Non-Nullable column and max aggregation function if it aceptable for your data.

```
Expand Down

0 comments on commit b8531f7

Please sign in to comment.