Object. Defines the table schema. Specify the following attributes:
-
referenced_columns
Array of strings. Names of the model columns to include as read-only reference columns, as they appear on the model. These columns become the key columns of the input table. The input table is joined to the model on these columns, and rows are matched on them when you write data. At least one column is required. Each name must match exactly one visible model column and resolve to exactly one physical base column. You cannot reference formula, cohort, or constant columns. -
new_columns
Array of objects. The new editable columns to create. For each column, specify the following attributes:-
name. String. Display name of the column. -
data_type. String. Data type of the column in the warehouse, for example,VARCHAR,DOUBLE, orDATE. The supported values depend on the underlying CDW. -
type. String. Semantic role of the column:ATTRIBUTEfor dimension columns orMEASUREfor numeric columns. -
allowed_values. Array of strings. Optional. Up to 500 permitted values, which turn the column into a fixed-choice column. Each value must be non-empty, at most 8192 characters, and valid for the columnβsdata_type: a number for numeric types,trueorfalseforBOOL, and an epoch integer forDATE,DATE_TIME, andTIME. Writes that contain any other non-empty value are rejected. If you omit this attribute, the column accepts any value that its data type supports.
-
-
referenced_column_time_dimensions
Array of objects. Optional. Locks the referenced date columns to a specific time dimension (grain) at creation. Each entry includes thecolumn_identifier, which is the name of the referenced model column exactly as specified inreferenced_columns, and thetime_dimension. Supported values fortime_dimensionareHOURLY,DAILY,WEEKLY,MONTHLY,QUARTERLY, andYEARLY. If you omit a column, ThoughtSpot applies no bucketing to it. The time dimension applies only toDATEandDATE_TIMEcolumns.HOURLYrequires aDATE_TIMEcolumn. If you specifyHOURLYfor aDATEcolumn, it is ignored and the column is not bucketed. Date-part grains, such as day of the week, and grains onTIMEcolumns are not supported. Time dimensions apply only to referenced columns. Columns created throughnew_columnsare always unbucketed.