Skip to main content

materialized_table_versions

Creates, updates, deletes, gets or lists a materialized_table_versions resource.

Overview

Namematerialized_table_versions
TypeResource
Idconfluent.sql.materialized_table_versions

Fields

The following fields are returned by SELECT queries:

The requested Materialized Table Version.

NameDatatypeDescription
namestringThe resource version name, unique within the Kafka cluster. Name conforms to DNS Subdomain (RFC 1123). (pattern: [a-z0-9]([-a-z0-9][a-z0-9])?(.[a-z0-9]([-a-z0-9][a-z0-9])?)*, example: mt-123-v4)
environment_idstringThe unique identifier for the environment.
organization_idstring (uuid)The unique identifier for the organization.
api_versionstringAPIVersion defines the schema version of this representation of a resource. (sql/v1) (example: sql/v1)
kindstringKind defines the object this REST resource represents. (MaterializedTableVersion)
metadataobjectObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
specobjectThe specifications of the Materialized Table Version.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_sqlv1_materialized_table_versionselectorganization_id, environment_id, kafka_cluster_id, table_name, versionRetrieve a specific version of a Materialized Table.
list_sqlv1_materialized_table_versionsselectorganization_id, environment_id, kafka_cluster_id, table_namepage_size, page_tokenRetrieve a sorted and paginated list of all versions for a specific Materialized Table.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
environment_idstringThe unique identifier for the environment.
kafka_cluster_idstringThe unique identifier for the database.
organization_idstring (uuid)The unique identifier for the organization.
table_namestringThe unique identifier for the Materialized Table.
versioninteger (int32)The version number of the Materialized Table.
page_sizeinteger (int32)A pagination size for collection requests.
page_tokenstringAn opaque pagination token for collection requests.

SELECT examples

Retrieve a specific version of a Materialized Table.

SELECT
name,
environment_id,
organization_id,
api_version,
kind,
metadata,
spec
FROM confluent.sql.materialized_table_versions
WHERE organization_id = '{{ organization_id }}' -- required
AND environment_id = '{{ environment_id }}' -- required
AND kafka_cluster_id = '{{ kafka_cluster_id }}' -- required
AND table_name = '{{ table_name }}' -- required
AND version = '{{ version }}' -- required
;