Skip to content

Commit 02b8390

Browse files
committed
docs(modeling): minor improvements
1 parent 46aa513 commit 02b8390

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

docs/content/Schema/Fundamentals/Syntax.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,7 @@ cube(`orders`, {
8989
cubes:
9090
- name: orders
9191
sql: >
92-
SELECT *
93-
FROM orders, line_items
94-
WHERE orders.id = line_items.order_id
92+
SELECT * FROM orders, line_items WHERE orders.id = line_items.order_id
9593
```
9694
9795
</CodeTabs>
@@ -103,7 +101,9 @@ YAML syntax is very similar to JavaScript syntax, with a few key differences:
103101
- In YAML syntax, cubes, views, and context variables should be wrapped in `{}`,
104102
e.g., `{FILTER_PARAMS.orders.created_at.filter('created_at')}`.
105103
- In YAML syntax, string values only need to have quotes around them if they
106-
contain special values, e.g., `"{CUBE}.user_id = {users.id}"`.
104+
contain special values, e.g., `"{CUBE}.user_id = {users.id}"`. Special values
105+
include references to `CUBE` and other declared cubes, `FILTER_PARAMS`,
106+
`COMPILE_CONTEXT`, and `SECURITY_CONTEXT`.
107107
108108
[self-folder-structure]: #folder-structure
109109
[self-naming]: #naming

docs/content/Schema/Reference/cube.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ redirect_from:
1212

1313
A `cube` represents a table of data in Cube. Cubes are typically declared in
1414
separate files with one cube per file. Within each cube are definitions of
15-
measures, dimensions, and joins between cubes. A cube should always be declared
16-
with a capital letter.
15+
measures, dimensions, and joins between cubes.
1716

1817
<CodeTabs>
1918

0 commit comments

Comments
 (0)