File tree Expand file tree Collapse file tree 4 files changed +18
-4
lines changed Expand file tree Collapse file tree 4 files changed +18
-4
lines changed Original file line number Diff line number Diff 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+
142149If your database uses case-sensitive identifiers, make sure to properly
143150quote table and column names. For example, here's how you can reference
144151a 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
Original file line number Diff line number Diff line change 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:
Original file line number Diff line number Diff line change @@ -69,7 +69,6 @@ Run the following command to create the `users` table.
6969``` sql
7070CREATE TABLE cube_demo .ecom .users
7171( id INTEGER ,
72- user_id INTEGER ,
7372 city VARCHAR ,
7473 age INTEGER ,
7574 gender VARCHAR ,
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments