-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
add macro_context_generator on adapter #9251
Merged
colin-rogers-dbt
merged 24 commits into
feature/decouple-adapters-from-core
from
adapters-macro-context-generator
Dec 11, 2023
Merged
Changes from 22 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
2474722
moving types_pb2.py to common/events
colin-rogers-dbt 07743b7
merge
colin-rogers-dbt 252e3e3
Merge branch 'feature/decouple-adapters-from-core' of https://github.…
colin-rogers-dbt ff9d519
Merge branch 'feature/decouple-adapters-from-core' of https://github.…
colin-rogers-dbt bf079b1
Merge branch 'feature/decouple-adapters-from-core' of https://github.…
colin-rogers-dbt 3187ded
Merge branch 'feature/decouple-adapters-from-core' of https://github.…
colin-rogers-dbt 4da67bf
Merge branch 'feature/decouple-adapters-from-core' of https://github.…
colin-rogers-dbt c03823f
Merge branch 'feature/decouple-adapters-from-core' of https://github.…
colin-rogers-dbt 2811ccd
Merge branch 'feature/decouple-adapters-from-core' of https://github.…
colin-rogers-dbt 4dec100
remove manifest from adapter.execute_macro, replace with MacroResolve…
MichelleArk 3e5515b
rename to MacroResolverProtocol
MichelleArk a70edd6
Merge branch 'feature/decouple-adapters-from-core' into macro-resolve…
MichelleArk 7b1e332
pass MacroResolverProtcol in adapter.calculate_freshness_from_metadata
MichelleArk 3620ce6
changelog entry
MichelleArk 538481a
fix adapter.calculate_freshness call
MichelleArk f61da7b
add macro_context_generator on adapter
MichelleArk 325717f
fix adapter test setup
MichelleArk bb12375
changelog entry
MichelleArk e88138a
Merge branch 'feature/decouple-adapters-from-core' of https://github.…
colin-rogers-dbt 1740df5
Update parser to support conversion metrics (#9173)
WilliamDee 977a842
Merge branch 'feature/decouple-adapters-from-core' of https://github.…
colin-rogers-dbt 001bd51
merge feature/decouple-adapters-from-core
colin-rogers-dbt 2bb2922
Add typing for macro_context_generator, fix query_header_context
colin-rogers-dbt 003606a
merge main
colin-rogers-dbt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
kind: Under the Hood | ||
body: add macro_context_generator on adapter | ||
time: 2023-12-08T00:48:54.506911+09:00 | ||
custom: | ||
Author: michelleark | ||
Issue: "9247" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v6.json", "dbt_version": "1.8.0a1", "generated_at": "2023-12-06T23:58:24.592514Z", "invocation_id": "e1267ed0-3444-45b0-89d6-789d548c1b1a", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2023-12-06T23:58:24.505025Z", "completed_at": "2023-12-06T23:58:24.513104Z"}, {"name": "execute", "started_at": "2023-12-06T23:58:24.515046Z", "completed_at": "2023-12-06T23:58:24.570681Z"}], "thread_id": "Thread-99 (worker)", "execution_time": 0.07069063186645508, "adapter_response": {"_message": "CREATE VIEW", "code": "CREATE VIEW", "rows_affected": -1}, "message": "CREATE VIEW", "failures": null, "unique_id": "model.test.metricflow_time_spine", "compiled": true, "compiled_code": "SELECT to_date('02/20/2023', 'mm/dd/yyyy') as date_day", "relation_name": "\"dbt\".\"test17019071022207203621_test_previous_version_state\".\"metricflow_time_spine\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-12-06T23:58:24.509989Z", "completed_at": "2023-12-06T23:58:24.513530Z"}, {"name": "execute", "started_at": "2023-12-06T23:58:24.517941Z", "completed_at": "2023-12-06T23:58:24.571727Z"}], "thread_id": "Thread-100 (worker)", "execution_time": 0.07077383995056152, "adapter_response": {"_message": "CREATE VIEW", "code": "CREATE VIEW", "rows_affected": -1}, "message": "CREATE VIEW", "failures": null, "unique_id": "model.test.my_model", "compiled": true, "compiled_code": "select 1 as id", "relation_name": "\"dbt\".\"test17019071022207203621_test_previous_version_state\".\"my_model\""}], "elapsed_time": 0.6561338901519775, "args": {"log_file_max_bytes": 10485760, "use_colors_file": true, "strict_mode": false, "cache_selected_only": false, "enable_legacy_logger": false, "log_level_file": "debug", "vars": {}, "project_dir": "/private/var/folders/k6/gtt07v8j2vn51m_z05xk_fjc0000gp/T/pytest-of-michelleark/pytest-955/project7", "which": "run", "defer": false, "write_json": true, "log_path": "/Users/michelleark/src/dbt-core/logs/test17019071022207203621", "log_format": "default", "log_level": "info", "invocation_command": "dbt tests/functional/artifacts", "printer_width": 80, "favor_state": false, "exclude": [], "partial_parse_file_diff": true, "profiles_dir": "/private/var/folders/k6/gtt07v8j2vn51m_z05xk_fjc0000gp/T/pytest-of-michelleark/pytest-955/profile7", "use_colors": true, "macro_debugging": false, "introspect": true, "quiet": false, "show_resource_report": false, "select": [], "version_check": true, "populate_cache": true, "empty": false, "print": true, "send_anonymous_usage_stats": false, "log_format_file": "debug", "indirect_selection": "eager", "partial_parse": true, "warn_error_options": {"include": [], "exclude": []}, "static_parser": true}} | ||
{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v6.json", "dbt_version": "1.8.0a1", "generated_at": "2023-12-08T18:33:26.385305Z", "invocation_id": "74d0d61f-8496-4661-9d15-1a48f395508b", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2023-12-08T18:33:26.238276Z", "completed_at": "2023-12-08T18:33:26.245635Z"}, {"name": "execute", "started_at": "2023-12-08T18:33:26.246342Z", "completed_at": "2023-12-08T18:33:26.361436Z"}], "thread_id": "Thread-107 (worker)", "execution_time": 0.12888598442077637, "adapter_response": {"_message": "CREATE VIEW", "code": "CREATE VIEW", "rows_affected": -1}, "message": "CREATE VIEW", "failures": null, "unique_id": "model.test.my_model", "compiled": true, "compiled_code": "select 1 as id", "relation_name": "\"dbt\".\"test17020604041734807591_test_previous_version_state\".\"my_model\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-12-08T18:33:26.235770Z", "completed_at": "2023-12-08T18:33:26.240830Z"}, {"name": "execute", "started_at": "2023-12-08T18:33:26.241467Z", "completed_at": "2023-12-08T18:33:26.371786Z"}], "thread_id": "Thread-106 (worker)", "execution_time": 0.13865900039672852, "adapter_response": {"_message": "CREATE VIEW", "code": "CREATE VIEW", "rows_affected": -1}, "message": "CREATE VIEW", "failures": null, "unique_id": "model.test.metricflow_time_spine", "compiled": true, "compiled_code": "SELECT to_date('02/20/2023', 'mm/dd/yyyy') as date_day", "relation_name": "\"dbt\".\"test17020604041734807591_test_previous_version_state\".\"metricflow_time_spine\""}], "elapsed_time": 0.27949094772338867, "args": {"partial_parse_file_diff": true, "populate_cache": true, "log_path": "/Users/colinrogers/projects/dbt-core/logs/test17020604041734807591", "project_dir": "/private/var/folders/5_/1cykfnvj641gf4rsdwj6v8p00000gp/T/pytest-of-colinrogers/pytest-12/project12", "profiles_dir": "/private/var/folders/5_/1cykfnvj641gf4rsdwj6v8p00000gp/T/pytest-of-colinrogers/pytest-12/profile12", "write_json": true, "log_file_max_bytes": 10485760, "defer": false, "use_colors": true, "version_check": true, "printer_width": 80, "log_level": "info", "cache_selected_only": false, "enable_legacy_logger": false, "exclude": [], "send_anonymous_usage_stats": false, "log_format_file": "debug", "log_level_file": "debug", "warn_error_options": {"include": [], "exclude": []}, "favor_state": false, "use_colors_file": true, "static_parser": true, "log_format": "default", "macro_debugging": false, "introspect": true, "print": true, "select": [], "empty": false, "invocation_command": "dbt --cov=core --cov-append --cov-report=xml tests/functional -k not tests/functional/graph_selection", "show_resource_report": false, "vars": {}, "quiet": false, "partial_parse": true, "indirect_selection": "eager", "which": "run", "strict_mode": false}} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love this change to the unused lambda parameter name.