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

Issue when querying two tables in dbt #2

Open
teddythinh opened this issue Dec 25, 2023 · 0 comments
Open

Issue when querying two tables in dbt #2

teddythinh opened this issue Dec 25, 2023 · 0 comments

Comments

@teddythinh
Copy link

Hi @GokuMohandas, I have followed your course to use dbt to transform data.

At the step with writing query to join two tables projects and tags together with this code in the file dbt_transforms/models/labeled_projects/labeled_projects.sql:

SELECT p.id, created_on, title, description, tag
FROM `made-with-ml-359923.mlops_course.projects` p
LEFT JOIN `made-with-ml-359923.mlops_course.tags` t
ON p.id = t.id

I'm getting this error: Name id not found inside t at [9:13]

I believe the cause is there is no column id in the tags table so when I query on this line ON p.id = t.id, it throws this error. I also tested in BigQuery and it throws the same error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant