-
I am trying to understand the code that produces the number of built objects in the log. An example looks like this.
I'd like to know how DBT generates a total of 59 objects in the above line. Which resource types are considered to be included while counting this total and which objects are actually run by DBT afterwards. Any help would be greatly appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @sadeka4 so the log in question is an instance of the LogModelResult event. There are additional similar events in dbt-core: LogFreshnessResult, LogNodeNoOpResult, LogSnapshotResult, LogSeedResult, and LogTestResult. Something similar about all of these is that they all have a
There is one event that is slight different, LogBatchResult. The |
Beta Was this translation helpful? Give feedback.
Hi @sadeka4 so the log in question is an instance of the LogModelResult event. There are additional similar events in dbt-core: LogFreshnessResult, LogNodeNoOpResult, LogSnapshotResult, LogSeedResult, and LogTestResult. Something similar about all of these is that they all have a
total
attribute. Thistotal
is the number of nodes selected for execution in the given run, which is calculated in _runtime_initialize ofGraphRunnableTask
. We can see in this function that the totalnum_nodes
is the "selected for execution" nodes that are one of