Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"files.autoSave": "afterDelay",
"screencastMode.onlyKeyboardShortcuts": true,
"terminal.integrated.fontSize": 18,
"workbench.activityBar.visible": true,
"workbench.colorTheme": "Visual Studio Dark",
"workbench.fontAliasing": "antialiased",
"workbench.statusBar.visible": true
Expand Down
Binary file modified data/nyc_parking_violations.db
Binary file not shown.
Binary file modified data/prod_nyc_parking_violations.db
Binary file not shown.
2 changes: 1 addition & 1 deletion nyc_parking_violations/dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ models:
gold:
+materialized: table
tests:
+store_failures: true
+store_failures: true # help store failed test
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
SELECT
code AS violation_code,
definition,
manhattan_96th_st_below,
all_other_areas
FROM
parking_violation_codes
SELECT
code AS violation_code,
definition,
manhattan_96th_st_below,
all_other_areas
From
parking_violation_codes
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,4 @@ The total number of tickets issued for a specific violation code.

{% docs total_revenue_usd %}
The total revenue accumulated from tickets, based on the violation code. This sum is represented in USD.
{% enddocs %}
{% enddocs %}
2 changes: 1 addition & 1 deletion nyc_parking_violations/models/docs/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,4 +185,4 @@ models:
- name: registration_state
description: '{{ doc("registration_state") }}'
- name: ticket_count
description: '{{ doc("ticket_count") }}'
description: '{{ doc("ticket_count") }}'
4 changes: 0 additions & 4 deletions nyc_parking_violations/models/example/ref_model.sql

This file was deleted.

4 changes: 4 additions & 0 deletions nyc_parking_violations/models/examples/ref_model.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
SELECT
COUNT(*)
FROM
{{ref('first_model')}}
8 changes: 4 additions & 4 deletions nyc_parking_violations/profiles.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
nyc_parking_violations:
nyc_parking_violations: #always remember to name correctly, change from default
outputs:
dev:
type: duckdb
path: '../data/nyc_parking_violations.db'
path: '../data/nyc_parking_violations.db' #always add the path
prod:
type: duckdb
# note that path is slightly different as GitHub actions
# note that path is slightldbty different as GitHub actions
# start in the root directory and not in the
# nyc_parking_violations directory
path: './data/prod_nyc_parking_violations.db'
path: '../data/prod_nyc_parking_violations.db'
target: dev
Empty file.
Loading