Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update SL-MF tutorial for proper expr usage and BigQuery #4010

Merged
merged 7 commits into from
Sep 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,9 @@ from source

```YAML
dimensions:
- name: date_trunc('day', ordered_at)
- name: ordered_at
expr: date_trunc('day', ordered_at)
# use date_trunc(ordered_at, DAY) if using [BigQuery](/docs/build/dimensions#time)
type: time
type_params:
time_granularity: day
Expand All @@ -166,7 +168,9 @@ We'll discuss an alternate situation, dimensional tables that have static numeri
```YAML
...
dimensions:
- name: date_trunc('day', ordered_at)
- name: ordered_at
expr: date_trunc('day', ordered_at)
# use date_trunc(ordered_at, DAY) if using BigQuery
type: time
type_params:
time_granularity: day
Expand Down Expand Up @@ -254,6 +258,8 @@ semantic_models:

dimensions:
- name: ordered_at
expr: date_trunc('day', ordered_at)
# use date_trunc(ordered_at, DAY) if using BigQuery
type: time
type_params:
time_granularity: day
Expand Down