Skip to content

Conversation

@conradstephens
Copy link

Description & motivation

To-do before merge

Screenshots:

Validation of models:

Changes to existing models:

Checklist:

  • My pull request represents one logical piece of work.
  • My commits are related to the pull request and look clean.
  • My SQL follows the dbt Labs style guide.
  • I have materialized my models appropriately.
  • I have added appropriate tests and documentation to any new models.
  • I have updated the README file.
    {%- if project.warehouse == 'redshift' %}
  • I have added sort and dist keys to models materialized as tables.
  • I have validated the SQL in any late-binding views.
    {% endif %}

Copy link

@senior-dev-bot senior-dev-bot bot left a comment

Choose a reason for hiding this comment

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

Feedback from Senior Dev Bot

Comment on lines 14 to 22
lap,
lap_time_milliseconds
from lap_times
left join races
leftjoin races
on lap_times.race_id = races.race_id
where lap_time_milliseconds is not null
)
select * from expanded_lap_times_by_year
select * from expanded_lap_times_by_year

Choose a reason for hiding this comment

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

Make sure to use correct SQL syntax. The keyword is LEFT JOIN not leftjoin. Using incorrect syntax can cause unexpected errors or behavior.

from lap_times
-    leftjoin races
+    LEFT JOIN races

Also, best practice is to include a newline at the end of files to avoid version control issues.

+select * from expanded_lap_times_by_year
\n

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

Successfully merging this pull request may close these issues.

2 participants