Skip to main content
On this page

Kater SQL Language

Comment directives

The comments that give a field its description, AI context, format, tags and business questions.

Audience
Data teams
DirectiveWhereExample
-- @descriptionAbove a field, join or filter-- @description Order amount before discounts.
-- @ai_contextAbove a field, join or filter-- @ai_context Values are combined without currency conversion.
-- @formatAbove a field, or trailing as /* @format … */-- @format currency(union__currency, 2)
-- @categorical, -- @continuousAbove a field or a DDL column-- @categorical
-- @tagsAbove a field. Double-quoted values.-- @tags "acquisition"
-- @business_questionsAbove a field. Double-quoted values.-- @business_questions "When did each client first show up?"
-- @labelAbove a RELATIONSHIP only-- @label Customer

Formats are a closed list: number(n), percent(n), big(n), id, plain, currency('USD', n) and currency(<dimension>, n), where n is 0 to 20. See Formats, descriptions and AI context.