Skip to main content
DocsCML Reference

CML — Attributes reference

Attributes are the dimension columns in a node.

Types

TypeMaps toNotes
stringVARCHAR, TEXT, CHARDefault for text columns
integerINT, BIGINTWhole numbers
floatFLOAT, DECIMAL, NUMERICDecimal numbers
dateDATEDate only (no time)
datetimeTIMESTAMP, TIMESTAMPTZDate + time
booleanBOOLTrue/false

Roles

RoleDescription
primary_keyUnique row identifier
foreign_keyReference to another node's primary key
attributeStandard dimension (default)
dimensionAlias for attribute

Special flags

FlagTypeDescription
is_datebooleanEnables date grain picker in Discover
is_hiddenbooleanHides field from Discover picker
geo_typestringGeographic type — see Geo types →