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.
30 changes: 30 additions & 0 deletions logs/dbt.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
23:41:56.000836 [debug] [MainThread]: Sending event: {'category': 'dbt', 'action': 'invocation', 'label': 'start', 'context': [<snowplow_tracker.self_describing_json.SelfDescribingJson object at 0x774bc9ad1720>, <snowplow_tracker.self_describing_json.SelfDescribingJson object at 0x774bc7933190>, <snowplow_tracker.self_describing_json.SelfDescribingJson object at 0x774bc79331c0>]}


============================== 23:41:56.009031 | 9d6fd76f-75d4-4c0d-8ebe-929393e1e918 ==============================
23:41:56.009031 [info ] [MainThread]: Running with dbt=1.6.1
23:41:56.009664 [debug] [MainThread]: running dbt with arguments {'target_path': 'None', 'version_check': 'True', 'log_format': 'default', 'fail_fast': 'False', 'profiles_dir': '/home/vscode/.dbt', 'warn_error': 'None', 'log_path': 'logs', 'invocation_command': 'dbt init', 'use_colors': 'True', 'send_anonymous_usage_stats': 'True', 'printer_width': '80', 'indirect_selection': 'eager', 'partial_parse': 'True', 'write_json': 'True', 'cache_selected_only': 'False', 'introspect': 'True', 'log_cache_events': 'False', 'static_parser': 'True', 'debug': 'False', 'quiet': 'False', 'use_experimental_parser': 'False', 'warn_error_options': 'WarnErrorOptions(include=[], exclude=[])', 'no_print': 'None'}
23:41:56.010272 [warn ] [MainThread]: [ConfigFolderDirectory]: Unable to parse dict {'dir': PosixPath('/home/vscode/.dbt')}
23:41:56.010710 [info ] [MainThread]: Creating dbt configuration folder at
23:42:19.414329 [debug] [MainThread]: Starter project path: /home/vscode/.local/lib/python3.10/site-packages/dbt/include/starter_project
23:42:19.423825 [info ] [MainThread]:
Your new dbt project "nyc_parking_violations" was created!

For more information on how to configure the profiles.yml file,
please consult the dbt documentation here:

https://docs.getdbt.com/docs/configure-your-profile

One more thing:

Need help? Don't hesitate to reach out to us via GitHub issues or on Slack:

https://community.getdbt.com/

Happy modeling!

23:42:19.425604 [info ] [MainThread]: Setting up your profile.
23:42:27.452958 [info ] [MainThread]: No sample profile found for duckdb.
23:42:27.453793 [debug] [MainThread]: Command `dbt init` succeeded at 23:42:27.453629 after 31.46 seconds
23:42:27.454288 [debug] [MainThread]: Sending event: {'category': 'dbt', 'action': 'invocation', 'label': 'end', 'context': [<snowplow_tracker.self_describing_json.SelfDescribingJson object at 0x774bc9ad1720>, <snowplow_tracker.self_describing_json.SelfDescribingJson object at 0x774bc77ec610>, <snowplow_tracker.self_describing_json.SelfDescribingJson object at 0x774bc77ec6a0>]}
23:42:27.454763 [debug] [MainThread]: Flushing usage events
1 change: 1 addition & 0 deletions nyc_parking_violations/.user.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
id: edf1dc2f-f118-4c32-b017-17090e645fc2
3 changes: 2 additions & 1 deletion nyc_parking_violations/dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,6 @@ models:
+materialized: view
gold:
+materialized: table

tests:
+store_failures: true
+store_failures: true
2 changes: 1 addition & 1 deletion nyc_parking_violations/models/docs/docs_blocks.md
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") }}'
10 changes: 5 additions & 5 deletions nyc_parking_violations/tests/generic/generic_not_null.sql
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
-- source: https://docs.getdbt.com/guides/best-practices/writing-custom-generic-tests#generic-tests-with-default-config-values
{% test generic_not_null(model, column_name) %}

select *
from {{ model }}
where {{ column_name }} is null
{% test generic_not_null(model, column_name) %}

SELECT *
FROM {{ model }}
WHERE {{ column_name }} IS NULL

{% endtest %}
Loading