Files
floci/docs
Vũ Thế Huy 5807e901a4 feat(redshift): add streaming materialized views over Amazon MSK (#9206)
CREATE MATERIALIZED VIEW over a topic of an MSK external schema, REFRESH MATERIALIZED VIEW, DROP MATERIALIZED VIEW and DROP SCHEMA ... CASCADE now work, with the transaction, AUTO REFRESH YES, JOIN and aggregate guards of the Kinesis views. The topic's staging table has Redshift's eight Kafka columns.

A refresh positions each partition itself by manual assignment and a seek, reads up to the end offset the partition has when the refresh starts, and saves per-partition checkpoints only after the batch statement commits. Each view reads through its own consumer group. The first refresh starts at the earliest offset, and a partition that ends before its checkpoint is read again from its beginning.

With IAM enforcement on, CREATE and REFRESH check kafka:GetBootstrapBrokers on the cluster and, with AUTHENTICATION iam, kafka-cluster:Connect, DescribeTopic, ReadData, AlterGroup and DescribeGroup on the cluster, topic and group ARNs. A missing cluster fails with 42704, a cluster without a running broker or an unreachable broker with 58030, and a missing topic with 42P01.

KafkaRestClient.partitionOffsets reads a partition's beginning and end offsets. StreamingViewSupport holds the source lock, drop, unbind and batching shared by the Kinesis and MSK views, and DROP SCHEMA of an MSK schema holds a schema lock so no view is created while it runs.

Closes #7814
2026-11-23 13:35:08 -04:00
..
2026-03-15 17:43:56 -05:00