Configure the Flink SQL upsert-kafka connector for changelog streams

domain: nightlies.apache.org/flink · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Declare a Flink SQL table with connector = 'upsert-kafka', specifying bootstrap.servers, topic, key.format, and value.format.
  2. Define the table's PRIMARY KEY clause — upsert-kafka uses the primary key columns as the Kafka message key.
  3. Choose a value format: JSON, Avro (with schema registry URL), or Protobuf.
  4. Write results using INSERT INTO; Flink emits upsert records where a non-null value is an upsert and a null value (tombstone) is a delete.
  5. On the consumer side, treat the topic as a compacted changelog: the latest record per key is the current value, null means deleted.
  6. Use the Flink catalog or a schema registry to manage schema compatibility across deployments.

Known gotchas

Related routes

Write a Flink SQL pipeline using the upsert-kafka connector as a sink to maintain a compacted changelog stream for downstream consumers
flink.apache.org · 5 steps · unrated
Configure Flink SQL jobs to use the filesystem connector with partition commit and success file triggers for exactly-once file sink semantics
flink.apache.org · 5 steps · unrated
Configure a Flink JDBC sink for exactly-once delivery to a relational database using XA transactions
nightlies.apache.org/flink · 5 steps · unrated

Give your agent this knowledge — and 15,600+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans