SemanticTableCreate
Payload used to create Semantic Table. The required field is name.
Possible values: [clickhouse, postgres, odata_v2, odata_v4]
clickhousealias object
- string
- null
collection_id object
Identifier of the containing collection.
- string
- null
Possible values: non-empty
folder_id object
- string
- null
tags object
- string[]
- null
description object
- string
- null
connector object
- string
- null
columns object[]
Physical column name, unless a computed expression in options.sql.expr replaces it for supported SQL targets.
Semantic column kind: categorical or time.
Possible values: [categorical, time]
categoricaldescription object
Human-readable explanation of the column.
- string
- null
Whether the column can be used in filter conditions.
trueWhether the column can be used for result ordering.
trueWhether the column can be selected or used for grouping.
trueWhether the column is exposed in the semantic catalog. Hidden columns remain available to authored filters and templates.
trueAlternative terms that may refer to the column.
Exhaustive values for a low-cardinality column. Omitted from semantic catalog output when dictionary is set.
Illustrative, non-exhaustive example values. Omitted from semantic catalog output when dictionary is set.
dictionary object
Dictionary used to resolve canonical values and surface-form synonyms.
- ColumnDictionary
- null
builtin object
- object
- null
external object
- string
- null
options object
Target-specific column bindings, including an optional computed SQL expression.
- object
- null
metrics object[]
Stable metric name used by queries and derived-metric references.
Metric calculation type: simple, ratio, derived, cumulative, or conversion.
Possible values: [simple, ratio, derived, cumulative, conversion]
label object
Optional display label for the metric.
- string
- null
description object
Human-readable explanation of the metric.
- string
- null
Alternative terms that may refer to the metric.
Whether the metric can be used for result ordering.
truetrueoptions object
Target-specific metric bindings.
- object
- null
agg object
Aggregation for simple and cumulative metrics. Required for those types.
- string
- null
Possible values: [sum, avg, min, max, count, count_distinct, median, percentile]
expr object
Column or row expression for simple and cumulative metrics, or arithmetic over metrics aliases for a derived metric.
- string
- null
percentile object
Percentile fraction used when agg is percentile.
- number
- null
clauses object[]
Semantic column definition. Capability flags control filtering, sorting, grouping, and catalog visibility; values is exhaustive, samples is illustrative, and dictionary-backed columns suppress both value lists from semantic catalog output.
granularity object
- string
- null
Possible values: [day, week, month, quarter, year]
window object
Running time window for a cumulative metric. It cannot be combined with grain_to_date.
- string
- null
grain_to_date object
Calendar-to-date grain for a cumulative metric. It cannot be combined with window.
- string
- null
Possible values: [day, week, month, quarter, year]
numerator object
Numerator aggregation required for a ratio metric.
- AggSpec
- null
Possible values: [sum, avg, min, max, count, count_distinct, median, percentile]
expr object
- string
- null
percentile object
- number
- null
clauses object[]
Semantic column definition. Capability flags control filtering, sorting, grouping, and catalog visibility; values is exhaustive, samples is illustrative, and dictionary-backed columns suppress both value lists from semantic catalog output.
granularity object
- string
- null
Possible values: [day, week, month, quarter, year]
denominator object
Denominator aggregation required for a ratio metric.
- AggSpec
- null
Possible values: [sum, avg, min, max, count, count_distinct, median, percentile]
expr object
- string
- null
percentile object
- number
- null
clauses object[]
Semantic column definition. Capability flags control filtering, sorting, grouping, and catalog visibility; values is exhaustive, samples is illustrative, and dictionary-backed columns suppress both value lists from semantic catalog output.
granularity object
- string
- null
Possible values: [day, week, month, quarter, year]
base object
Base-event aggregation required for a conversion metric.
- AggSpec
- null
Possible values: [sum, avg, min, max, count, count_distinct, median, percentile]
expr object
- string
- null
percentile object
- number
- null
clauses object[]
Semantic column definition. Capability flags control filtering, sorting, grouping, and catalog visibility; values is exhaustive, samples is illustrative, and dictionary-backed columns suppress both value lists from semantic catalog output.
granularity object
- string
- null
Possible values: [day, week, month, quarter, year]
conversion object
Conversion-event aggregation required for a conversion metric.
- AggSpec
- null
Possible values: [sum, avg, min, max, count, count_distinct, median, percentile]
expr object
- string
- null
percentile object
- number
- null
clauses object[]
Semantic column definition. Capability flags control filtering, sorting, grouping, and catalog visibility; values is exhaustive, samples is illustrative, and dictionary-backed columns suppress both value lists from semantic catalog output.
granularity object
- string
- null
Possible values: [day, week, month, quarter, year]
entity object
Column identifying the entity whose conversion is measured. Required for a conversion metric.
- string
- null
metrics object[]
Metric references available to a derived metric expression. At least one is required for a derived metric.
alias object
- string
- null
offset_window object
- string
- null
filters object[]
clauses object[]required
Semantic column definition. Capability flags control filtering, sorting, grouping, and catalog visibility; values is exhaustive, samples is illustrative, and dictionary-backed columns suppress both value lists from semantic catalog output.
granularity object
- string
- null
Possible values: [day, week, month, quarter, year]
label object
- string
- null
description object
- string
- null
trueoptions object
- object
- null
{
"name": "string",
"type": "clickhouse",
"alias": "string",
"collection_id": "string",
"folder_id": "string",
"tags": [
"string"
],
"description": "string",
"connector": "string",
"comments": [
"string"
],
"instructions": [
"string"
],
"columns": [
{
"name": "string",
"kind": "categorical",
"description": "string",
"filterable": true,
"sortable": true,
"groupable": true,
"visible": true,
"synonyms": [
"string"
],
"values": [
"string"
],
"samples": [
"string"
],
"dictionary": {
"builtin": {},
"external": "string"
},
"options": {}
}
],
"metrics": [
{
"name": "string",
"type": "simple",
"label": "string",
"description": "string",
"synonyms": [
"string"
],
"sortable": true,
"visible": true,
"options": {},
"agg": "sum",
"expr": "string",
"percentile": 0,
"clauses": [
{
"column": "string",
"op": "string",
"granularity": "day"
}
],
"window": "string",
"grain_to_date": "day",
"numerator": {
"agg": "sum",
"expr": "string",
"percentile": 0,
"clauses": [
{
"column": "string",
"op": "string",
"granularity": "day"
}
]
},
"denominator": {
"agg": "sum",
"expr": "string",
"percentile": 0,
"clauses": [
{
"column": "string",
"op": "string",
"granularity": "day"
}
]
},
"base": {
"agg": "sum",
"expr": "string",
"percentile": 0,
"clauses": [
{
"column": "string",
"op": "string",
"granularity": "day"
}
]
},
"conversion": {
"agg": "sum",
"expr": "string",
"percentile": 0,
"clauses": [
{
"column": "string",
"op": "string",
"granularity": "day"
}
]
},
"entity": "string",
"metrics": [
{
"name": "string",
"alias": "string",
"offset_window": "string"
}
]
}
],
"filters": [
{
"name": "string",
"clauses": [
{
"column": "string",
"op": "string",
"granularity": "day"
}
],
"label": "string",
"description": "string",
"synonyms": [
"string"
],
"visible": true
}
],
"links": [
"string"
],
"options": {}
}