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

Corrected syntax for defining the foreign key reference model using ref() #6268

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

joebloomreach
Copy link
Contributor

When declaring the model reference for a foreign key constraint, the code sample said to use to: "{{ ref('other_model_name') }}" which results in "Compilation error [...] 'ref' is undefined"

Using to: ref('other_model_name') parses correctly.

What are you changing in this pull request and why?

Checklist

…ef()

Code sample indicated to use `to: "{{ ref('other_model_name) }}"' which results in "Compilation error [...] 'ref' is undefined"

Using `to: ref('other_model_name')` parses correctly.
@joebloomreach joebloomreach requested a review from a team as a code owner October 9, 2024 18:00
Copy link

welcome bot commented Oct 9, 2024

Hello!👋 Thanks for contributing to the dbt product documentation and opening this pull request! ✨
We use Markdown and some HTML to write the dbt product documentation. When writing content, you can use our style guide and content types to understand our writing standards and how we organize information in the dbt product docs.
We'll review your contribution and respond as soon as we can. 😄

Copy link

vercel bot commented Oct 9, 2024

@joebloomreach is attempting to deploy a commit to the dbt-labs Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions bot added the content Improvements or additions to content label Oct 9, 2024
@runleonarun runleonarun added the new contributor Label for first-time contributors label Oct 9, 2024
@github-actions github-actions bot added the size: x-small This change will take under 3 hours to fix. label Oct 9, 2024
@mirnawong1
Copy link
Contributor

Great catch @joebloomreach ! Thanks for opening a pr up to update this! Looking forward to future contributions ✨

@mirnawong1 mirnawong1 merged commit 5e40569 into dbt-labs:current Oct 9, 2024
5 of 7 checks passed
@joebloomreach
Copy link
Contributor Author

Great catch @joebloomreach ! Thanks for opening a pr up to update this! Looking forward to future contributions ✨

Happy to help!

@joebloomreach joebloomreach changed the title Corrected syntax for defining the foreign key reference model usingef() Corrected syntax for defining the foreign key reference model using ref() Oct 9, 2024
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 new contributor Label for first-time contributors size: x-small This change will take under 3 hours to fix.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants