streamstack icon indicating copy to clipboard operation
streamstack copied to clipboard

[feature] Auto Iceberg export, grouped by stream prefix

Open addu390 opened this issue 3 months ago • 0 comments

Confluent and AutoMQ both have table topics where topic data lands in Iceberg automatically. We want the same thing for streamstack streams.

Major difference for streamstack: streams are typically low granularity, so mapping one stream to one Iceberg table would create a ton of tiny tables. Instead, group streams by prefix and export each group into a single table. So everything under sessions/* becomes one sessions table.

What this would need:

  • A per-prefix export config (target catalog, table name, schema handling, commit interval)
  • A background exporter that tails streams in the group and writes Parquet + Iceberg commits.
  • Some story around schema, probably start with a fixed schema per prefix and evolve from there

Open questions:

  • Where does the exporter run, on the node that owns the stream or as a separate worker pool?
  • What happens when streams in the same prefix have incompatible payloads?

addu390 avatar Aug 18 '26 04:08 addu390