Skip to main content
You can use the information_schema.streams view to return information about each stream in your Firebolt account. The view contains one row for each stream. Use a SELECT query to return information about each stream as shown in the example below.
SELECT
  stream_name,
  stream_schema,
  stream_type,
  consumer_group,
  stream_owner,
  created
FROM
  information_schema.streams;

Columns in information_schema.streams

Each row has the following columns with information about each stream:
Column NameData TypeDescription
stream_catalogTEXTThe name of the database that contains the stream.
stream_schemaTEXTThe name of the schema that contains the stream.
stream_nameTEXTThe name of the stream.
stream_typeTEXTThe type of the stream source. Currently always KAFKA.
stream_ownerTEXTThe owner of the stream.
createdTIMESTAMPTZThe timestamp when the stream was created.
ddlTEXTThe CREATE STREAM statement used to create this stream, with credentials masked for security.
descriptionTEXTOptional metadata describing the stream’s purpose.
consumer_groupTEXTThe Kafka consumer group identifier used by this stream.
offsetsTEXTA JSON array of per-partition consumer offsets, for example [{"partition_id":0,"offset":42}]. This column is only populated when explicitly selected.

Examples

View all streams

SELECT
  stream_name,
  stream_schema,
  stream_type,
  consumer_group,
  stream_owner,
  created
FROM
  information_schema.streams;

View stream offsets

The offsets column returns a JSON array with per-partition consumer offset positions. It is only populated when explicitly selected:
SELECT
  stream_name,
  offsets
FROM
  information_schema.streams
WHERE stream_name = 'my_stream';
Example output:
stream_name | offsets
------------|-------------------------------------------
my_stream   | [{"partition_id":0,"offset":150},{"partition_id":1,"offset":200}]

View stream DDL

The ddl column contains the original CREATE STREAM statement with credentials masked:
SELECT
  stream_name,
  ddl
FROM
  information_schema.streams;

Filter streams by schema

SELECT
  stream_name,
  stream_type,
  consumer_group,
  created
FROM
  information_schema.streams
WHERE stream_schema = 'public'
ORDER BY created DESC;

Notes

  • All identifiers are case-insensitive unless enclosed in double-quotes.
  • The offsets column is lazily evaluated and only populated when explicitly included in the SELECT list.
  • The ddl column masks credential values for security.
  • For more information about object identifiers, see Object identifiers.