Open ttusing opened 10 months ago
Thanks for reaching out @ttusing !
We agree that it would be nice to have more information logged to the console.
For example it would be nice to have output similar to dbt build
like this:
20:30:59 1 of 2 START sql view model dbt_dbeatty.my_model_1 ............................. [RUN]
20:30:59 2 of 2 START sql table model dbt_dbeatty.my_model_2 ............................ [RUN]
20:30:59 1 of 2 OK created sql view model dbt_dbeatty.my_model_1 ........................ [SUCCESS 1 in 0.78s]
20:31:00 2 of 2 OK created sql table model dbt_dbeatty.my_model_2 ....................... [SUCCESS 1 in 1.55s]
dbt run
full_refresh
flag to override it.full_refresh
flagtarget/run_results.json
It looks to me like 2 and 4 are already covered, but we should double-check.
For example, here is the output I get when the objects already exist:
$ dbt clone --state artifacts --target green
20:51:01 Running with dbt=1.7.5
20:51:03 Registered adapter: snowflake=1.7.1
20:51:03 Found 2 models, 1 analysis, 0 sources, 0 exposures, 0 metrics, 436 macros, 0 groups, 0 semantic models
20:51:03
20:51:04 Concurrency: 10 threads (target='green')
20:51:04
20:51:04 Relation "ANALYTICS_DEV"."DBT_DBEATTY_GREEN"."MY_MODEL" already exists
20:51:04 Relation "ANALYTICS_DEV"."DBT_DBEATTY_GREEN"."MYMODEL" already exists
20:51:04
20:51:04 Completed successfully
20:51:04
20:51:04 Done. PASS=2 WARN=0 ERROR=0 SKIP=0 TOTAL=2
But those go away when I use the --full-refresh
flag.
dbt build --target blue --target-path artifacts
dbt clone --target green --state artifacts --full-refresh
Is this your first time submitting a feature request?
Describe the feature
Currently, running
dbt clone
has very minimal output to the log. Here an example log:I get very little information about what objects were cloned, their names/schemas/database, or anything else.
Information that would be useful in the log:
dbt build
--full-refresh
tag.Describe alternatives you've considered
Using the debug log, which contains some of this information is a less convenient format.
Who will this benefit?
Any developers using
dbt clone
, especially as part of a deploy process.Are you interested in contributing this feature?
Yes, especially if pointed to modules
Anything else?
No response