Skip to content

CLI Reference

tables

Print how each Kafka topic maps to a table, stream and consumer group, without connecting to the warehouse.

sqlload tables [--topics-file FILE]

sqlload tables shows how the Kafka exporter names each topic’s table, stream and consumer group, without connecting to the warehouse. It prints one tab-separated line per topic:

<topic> <table> <stream> <consumer group>

A topic a naming rule skips (skip = true) prints - after its name. Topics that include doesn’t match, or exclude does, aren’t listed.

Option Meaning
--topics-file <FILE> Read topic names, one per line, from this file instead of listing them in Kafka.

With the repository’s sqlload.example.toml:

$ sqlload tables --topics-file topics.txt
shop.legacy-orders ORDERS_V1 orders_v1 sqlload-orders_v1
shop.orders_v2.events ORDERS__EVENTS orders__events sqlload-orders__events
shop.payments_v1.events PAYMENTS__EVENTS payments__events sqlload-payments__events

shop.orders.dlq, also in the file, matches the example’s exclude. See Kafka topic naming for the rules.