Skip to content

Commit 5bd5270

Browse files
committed
docs: Misc fixes. Closes #7286 and #7532
1 parent a2fdf1e commit 5bd5270

File tree

4 files changed

+18
-4
lines changed

4 files changed

+18
-4
lines changed

docs/pages/product/data-modeling/syntax.mdx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,13 @@ cube(`orders`, {
139139

140140
</CodeTabs>
141141

142+
### User-defined functions
143+
144+
If you have created a [user-defined function][link-sql-udf] (UDF) in your data
145+
source, you can use it in the `sql` parameter as well.
146+
147+
### Case sensitivity
148+
142149
If your database uses case-sensitive identifiers, make sure to properly
143150
quote table and column names. For example, here's how you can reference
144151
a Postgres table that contains uppercase letters in its name:
@@ -570,4 +577,5 @@ defining dynamic data models.
570577
[wiki-snake-case]: https://en.wikipedia.org/wiki/Snake_case
571578
[wiki-yaml]: https://en.wikipedia.org/wiki/YAML
572579
[link-snowflake-listagg]: https://docs.snowflake.com/en/sql-reference/functions/listagg
573-
[link-bigquery-stringagg]: https://cloud.google.com/bigquery/docs/reference/standard-sql/functions-and-operators#string_agg
580+
[link-bigquery-stringagg]: https://cloud.google.com/bigquery/docs/reference/standard-sql/functions-and-operators#string_agg
581+
[link-sql-udf]: https://en.wikipedia.org/wiki/User-defined_function#Databases

docs/pages/product/getting-started/cloud/create-data-model.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ cubes:
5555

5656
joins:
5757
- name: users
58-
sql: "{CUBE}.USER_ID = {users}.USER_ID"
58+
sql: "{CUBE}.USER_ID = {users}.ID"
5959
relationship: many_to_one
6060

6161
dimensions:
@@ -127,7 +127,7 @@ cubes:
127127
128128
joins:
129129
- name: users
130-
sql: "{CUBE}.USER_ID = {users}.USER_ID"
130+
sql: "{CUBE}.USER_ID = {users}.ID"
131131
relationship: many_to_one
132132
133133
dimensions:

docs/pages/product/getting-started/cloud/load-data.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ Run the following command to create the `users` table.
6969
```sql
7070
CREATE TABLE cube_demo.ecom.users
7171
( id INTEGER,
72-
user_id INTEGER,
7372
city VARCHAR,
7473
age INTEGER,
7574
gender VARCHAR,

docs/pages/reference/data-model/pre-aggregations.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -986,6 +986,13 @@ existing tables.
986986

987987
</WarningBox>
988988

989+
<WarningBox>
990+
991+
Because incremental refreshes generate their own SQL, you **must not** use the
992+
[`sql`](#parameters-refresh-key-sql) property here.
993+
994+
</WarningBox>
995+
989996
<CodeTabs>
990997

991998
```javascript

0 commit comments

Comments
 (0)