概述
本篇用来解析[2]
[2]中所有Flink SQL的含义
Compacted Topics
那么这个概念是什么意思呢?
引用[1]中的一段话
As mentioned at the begining, tombstones and compacted topics are often (but not always) two sides of the same coin.
A compacted topic retains the latest value for every key, and so is a perfect way to retain state with which you might want to rehydrate a target datastore with.
意思就是说更新非常快,时刻需要保持最新值的一种kafka topic
所以经常需要做的是upsert操作
References:
[1]Kafka Connect, ksqlDB, and Kafka Tombstone messages
[2]03 Temporal Table Join between a non-compacted and compacted Kafka Topic