Documentation Index

Fetch the complete documentation index at: https://kb.vastdata.com/llms.txt

Use this file to discover all available pages before exploring further.

blobexpansion add-columns

Prev Next

This command adds additional fields to be parsed from Kafka event messages. This creates additional columns, corresponding to these additional fields, in the target table.

Usage

vcli: admin> blobexpansion add-columns --database-name DATABASE
                                       --table-name TABLE 
                                       --arrow-schema ARROW_SCHEMA
                                      [--tenant-id TENANT]
                                      [--source-column-name SOURCE_COLUMN]
                                      [--add-copy-source-column]

Required Parameters

--database-name DATABASE

Kafka bucket name containing the source topic

--table-name TABLE

Source Kafka topic name

--arrow-schema ARROW_SCHEMA

Column definitions to add, as a comma-separated list of name-type

Example --arrow-schema id-string, status-int

Options

--tenant-id TENANT

Tenant ID (optional)

--source-column-name SOURCE_COLUMN

Source column name (defaults to 'value')

--add-copy-source-column

If set, copies the raw source (json) to the target table.

Example

This example shows the blobexpansion add-columns command with sample values.

vcli: admin> blobexpansion add-columns --tenant-id 1 --database-name kafka_bucket --table-name my_topic --source-column-name value --arrow-schema new_col1-string,new_col2-int --add-copy-source-column