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

Conversation

tromsky
Copy link
Contributor

@tromsky tromsky commented Sep 2, 2023

Using an expression in a dimension name is not valid, and the expression is not valid for BigQuery

What are you changing in this pull request and why?

I only have access to BigQuery for doing tutorial lessons and walkthroughs as that was the adapter used in one of the original quickstart guides for dbt Core. The date_trunc function used in this guide is not valid for BigQuery so I've included a comment with the BigQuery version.

Also, as I was trying to follow along, I was getting errors due to the use of a function call within the name param of a dimension (for ordered_at). I set the name to ordered_at and moved the function call into an expr param and that seemed to work so I'm including it here.

Checklist

  • Review the Content style guide and About versioning so my content adheres to these guidelines.
  • Add a checklist item for anything that needs to happen before this PR is merged, such as "needs technical review" or "change base branch."

Using an expression in a dimension name is not valid, and the expression is not valid for BigQuery
@tromsky tromsky requested a review from a team as a code owner September 2, 2023 15:08
@netlify
Copy link

netlify bot commented Sep 2, 2023

Deploy Preview for docs-getdbt-com ready!

Name Link
🔨 Latest commit 32d7fdf
🔍 Latest deploy log https://app.netlify.com/sites/docs-getdbt-com/deploys/64fef781fd08b40008ed5e66
😎 Deploy Preview https://deploy-preview-4010--docs-getdbt-com.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@github-actions github-actions bot added content Improvements or additions to content guides Knowledge best suited for Guides size: small This change will take 1 to 2 days to address labels Sep 2, 2023
Copy link
Contributor

@mirnawong1 mirnawong1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey @tromsky , thanks for opening this pr to clarify that - def makes sense and really appreciate your contribution ✨ I'll get this merged for you.

@mirnawong1 mirnawong1 merged commit e756244 into dbt-labs:current Sep 11, 2023
7 checks passed
@tromsky tromsky deleted the patch-2 branch September 12, 2023 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content Improvements or additions to content guides Knowledge best suited for Guides size: small This change will take 1 to 2 days to address
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants