SemanticTableCreate
Payload used to create Semantic Table. Required fields are name, type.
Possible values: non-empty and <= 63 characters, Value must match regular expression ^[a-z][a-z0-9_]{0,62}(?![\s\S])
Possible values: [clickhouse, postgres, oracle, odata_v2, odata_v4]
alias 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]
categoricaldata_type object
- ArrowFieldType
- null
Arrow type name, e.g. 'int64', 'utf8', 'decimal'
unit object
- string
- null
Possible values: [s, ms, us, ns]
timezone object
- string
- null
precision object
- integer
- null
Possible values: >= 1 and <= 76
scale object
- integer
- null
Possible values: >= 0
label object
- string
- null
description 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[]
Possible values: [simple, ratio, derived, cumulative, conversion]
data_type object
- ArrowFieldType
- null
Arrow type name, e.g. 'int64', 'utf8', 'decimal'
unit object
- string
- null
Possible values: [s, ms, us, ns]
timezone object
- string
- null
precision object
- integer
- null
Possible values: >= 1 and <= 76
scale object
- integer
- null
Possible values: >= 0
label object
- string
- null
description object
- string
- null
truetrueoptions object
- object
- null
agg object
- string
- 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: [minute, hour, day, week, month, quarter, year]
window object
- string
- null
grain_to_date object
- string
- null
Possible values: [minute, hour, day, week, month, quarter, year]
numerator object
- 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: [minute, hour, day, week, month, quarter, year]
denominator object
- 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: [minute, hour, day, week, month, quarter, year]
base object
- 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: [minute, hour, day, week, month, quarter, year]
conversion object
- 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: [minute, hour, day, week, month, quarter, year]
entity object
- string
- null
metrics object[]
alias object
- string
- null
offset_window object
- string
- null
filters object[]
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: [minute, hour, day, week, month, quarter, year]
label object
- string
- null
description object
- string
- null
truelinks object[]
Allowed values: semantic.table, semantic.ontology.
Possible values: [semantic.table, semantic.ontology]
Target resource id
name object
Entity name inside the target (ontology only)
- string
- null
options 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",
"data_type": {
"name": "string",
"unit": "s",
"timezone": "string",
"precision": 0,
"scale": 0
},
"label": "string",
"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",
"data_type": {
"name": "string",
"unit": "s",
"timezone": "string",
"precision": 0,
"scale": 0
},
"label": "string",
"description": "string",
"synonyms": [
"string"
],
"sortable": true,
"visible": true,
"options": {},
"agg": "sum",
"expr": "string",
"percentile": 0,
"clauses": [
{
"column": "string",
"op": "string",
"granularity": "minute"
}
],
"window": "string",
"grain_to_date": "minute",
"numerator": {
"agg": "sum",
"expr": "string",
"percentile": 0,
"clauses": [
{
"column": "string",
"op": "string",
"granularity": "minute"
}
]
},
"denominator": {
"agg": "sum",
"expr": "string",
"percentile": 0,
"clauses": [
{
"column": "string",
"op": "string",
"granularity": "minute"
}
]
},
"base": {
"agg": "sum",
"expr": "string",
"percentile": 0,
"clauses": [
{
"column": "string",
"op": "string",
"granularity": "minute"
}
]
},
"conversion": {
"agg": "sum",
"expr": "string",
"percentile": 0,
"clauses": [
{
"column": "string",
"op": "string",
"granularity": "minute"
}
]
},
"entity": "string",
"metrics": [
{
"name": "string",
"alias": "string",
"offset_window": "string"
}
]
}
],
"filters": [
{
"name": "string",
"clauses": [
{
"column": "string",
"op": "string",
"granularity": "minute"
}
],
"label": "string",
"description": "string",
"synonyms": [
"string"
],
"visible": true
}
],
"links": [
{
"category": "semantic.table",
"id": "string",
"name": "string"
}
],
"options": {}
}