Skip to content

Commit

Permalink
Parse command should return manifest when invoked via dbtRunner (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
iknox-fa authored Apr 11, 2023
1 parent 7a4d3bd commit 49eed67
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changes/unreleased/Under the Hood-20230410-164543.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Under the Hood
body: '`Parse` now returns manifest when invoked via dbtRunner'
time: 2023-04-10T16:45:43.17915-05:00
custom:
Author: iknox-fa
Issue: "6547"
6 changes: 4 additions & 2 deletions core/dbt/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ class dbtRunnerResult:
bool, # debug
CatalogArtifact, # docs generate
List[str], # list/ls
None, # clean, deps, init, parse, source
Manifest, # parse
None, # clean, deps, init, source
RunExecutionResult, # build, compile, run, seed, snapshot, test
RunOperationResultsArtifact, # run-operation
] = None
Expand Down Expand Up @@ -533,7 +534,8 @@ def list(ctx, **kwargs):
def parse(ctx, **kwargs):
"""Parses the project and provides information on performance"""
# manifest generation and writing happens in @requires.manifest
return None, True

return ctx.obj["manifest"], True


# dbt run
Expand Down

0 comments on commit 49eed67

Please sign in to comment.