-
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
Operation result #774
Merged
Merged
Operation result #774
Changes from all commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
e09f8bf
First pass, just dump generated catalog data to stdout
jwerderits 89ad5d6
Actually write structured data, write it to disk
jwerderits 2ae45ab
Fix release_connection issues in dbt catalog generate
jwerderits 8cb3091
clean up TODOs
jwerderits da107f3
Fix bugs, add unit tests
jwerderits b29fe7f
ok, I guess accepting None is pretty important here
jwerderits 1e95657
Finally get a (bad) integration test going
jwerderits 612d88b
Cleanup the tests, verify the entire schema
jwerderits 223a764
turn this into a constant
jwerderits b232d7f
Comment / import cleanup
jwerderits 4f6cd0a
Add an operations config entry and an OperationLoader
jwerderits 0c5e214
Rearranged stuff, added an OperationRunner that I'm not sure about
jwerderits 7abb9d9
Add functions for operating on operations inside the graph
jwerderits 0c62326
Fix wrong name
jwerderits 512493f
Rearrange where the agate table -> dict conversion happens, add new r…
jwerderits 9c74375
Add 'operation' type
jwerderits 2db41c5
Add get_catalog macro with postgres implementation
jwerderits 7d27c1b
make operations loader more macro-like rather than node-like
jwerderits 2c47a31
Tell jinja to use the new OperationExtension
jwerderits ef22e70
Now instead of import errors I have ones I don't understand, which is…
jwerderits 4f39ef6
pep8
jwerderits 8ca876a
Remove RunManager to avoid compiling I hope
jwerderits e2c1cde
Make the parser pass the macro type along
jwerderits 6f78e63
Allow operations in the macro subgraph
jwerderits fcbc9d7
I don't understand why, but my test passes now
jwerderits b26ac2c
Removed a bunch of TODOs/etc from development
jwerderits 2622194
More todos/bad file adds
jwerderits 1b03e36
Remove this method as it is now handled in sql/operations
jwerderits 9ec5d70
forgot 'yield from' is py3 only
jwerderits f1a6461
Remove useless return statement, add a comment instead
jwerderits d0a7ee0
Add a note about resource type overlaps in parsed nodes/macros
jwerderits 3d7ed8e
add newline
jwerderits 55d98f7
Didn't need this, I guess
jwerderits 9324a2c
Move some things around and break out some methods
jwerderits 5216b51
More refactoring, I do not believe we need OperationRunner here
jwerderits 726aaad
move operations into macros
jwerderits fda7013
first part of making the adapter responsible for this stuff
jwerderits 15fe9a3
Make the adapter operate on an actual ParsedManifest instead of the f…
jwerderits f6fb149
Have result data key be a variable
jwerderits 70da428
Make contexts accept ParsedMacro
jwerderits 0dd2375
PR feedback
jwerderits 9b432b8
Fix file renames
jwerderits 04ffaba
update changelog
jwerderits 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
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
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
4 changes: 4 additions & 0 deletions
4
dbt/include/global_project/macros/operations/catalog/get_catalog.sql
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,4 @@ | ||
{% operation get_catalog_data %} | ||
{% set catalog = dbt.get_catalog() %} | ||
{{ return(catalog) }} | ||
{% endoperation %} |
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
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