You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is clunky to override the run method to pass res/execute_macro_result as agate_table=execute_macro_result when instantiating RunResult — since there is no precise point to override, a user has to copy the entire implementation and make small changes. Overriding this way deprives the user of benefiting from future improvements to this method.
It is also clunky and necessary to patch process_run_result in RunResultsArtifact.from_execution_results to propagate agate_result from RunResult to RunResultOutput.
Is this your first time submitting a feature request?
Describe the feature
Propagate the return value of
dbt
run-operation
in the result asagate_table
, similar todbt
show
from #7208.Expected usage:
Describe alternatives you've considered
Subclass
RunOperationTask
and register a custom commandrun-operation-with-results
.Attempt: https://stackoverflow.com/revisions/79138906/4
Problems:
run
method to passres
/execute_macro_result
asagate_table=execute_macro_result
when instantiatingRunResult
— since there is no precise point to override, a user has to copy the entire implementation and make small changes. Overriding this way deprives the user of benefiting from future improvements to this method.process_run_result
inRunResultsArtifact.from_execution_results
to propagateagate_result
fromRunResult
toRunResultOutput
.Who will this benefit?
Anyone writing a macro that has a return value.
Are you interested in contributing this feature?
Yes
Anything else?
Asked by another user: https://stackoverflow.com/questions/79126257/accessing-query-results-from-dbt-in-python-script
The text was updated successfully, but these errors were encountered: