Skip to content

Update mrt_lap_times_years.sql #9

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update mrt_lap_times_years.sql #9

wants to merge 1 commit into from

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 No newline at end of file
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.

1 participant