From 329a9f6e7de70464baaab494bc6ee92dcf43a696 Mon Sep 17 00:00:00 2001 From: Roshan Jobanputra Date: Thu, 17 Oct 2024 14:58:06 -0700 Subject: [PATCH] builtins: Populate envelope/key-format/value-format columns on mz_kafka_source_tables table --- .../content/sql/system-catalog/mz_internal.md | 3 + .../src/catalog/builtin_table_updates.rs | 27 +++- src/catalog/src/builtin.rs | 3 + src/catalog/src/memory/objects.rs | 144 +++++++++--------- .../autogenerated/mz_internal.slt | 3 + 5 files changed, 105 insertions(+), 75 deletions(-) diff --git a/doc/user/content/sql/system-catalog/mz_internal.md b/doc/user/content/sql/system-catalog/mz_internal.md index ebf48da608f33..89ce961008f84 100644 --- a/doc/user/content/sql/system-catalog/mz_internal.md +++ b/doc/user/content/sql/system-catalog/mz_internal.md @@ -578,6 +578,9 @@ table and the corresponding upstream Kafka topic being ingested. | ------------------- | ---------------- | -------- | | `id` | [`text`] | The ID of the table. Corresponds to [`mz_catalog.mz_tables.id`](../mz_catalog#mz_tables). | | `topic` | [`text`] | The topic being ingested. | +| `envelope_type` | [`text`] | The [envelope](/sql/create-source/#envelopes) type: `none`, `upsert`, or `debezium`. `NULL` for other source types. | +| `key_format` | [`text`] | The [format](/sql/create-source/#formats) of the Kafka message key: `avro`, `protobuf`, `csv`, `regex`, `bytes`, `json`, `text`, or `NULL`. | +| `value_format` | [`text`] | The [format](/sql/create-source/#formats) of the Kafka message value: `avro`, `protobuf`, `csv`, `regex`, `bytes`, `json`, `text`. `NULL` for other source types. |