Closed nsoria1 closed 4 months ago
Thanks for raising this! This is due to the fact that the print()
function behaves differently in dbt Core and dbt Cloud. I am checking with the team if there is a way to update the print()
behaviour.
I will keep it open for now and will think of a long term solution.
@b-per thanks for the reply! On dbt Cloud should behave correctly? I haven't tested there.
I don't think that dbt Cloud IDE will show the print()
results either. I don't know about the dbt Cloud jobs.
@b-per is there any way to identify the detected resources to simplify the next steps? Otherwise we need to go file by file
Hi @sn-nsoria
What do you mean here?
Hi @b-per - thanks for replying. I mean, when I got a warn alert for example for some of the rules, how can I identify which models / tables / objects are not following the rule so we can go and fix it? Thanks
Most of the tests (if not all), should start with is_empty_fct_abcd
.
To see the failing records, you can:
print_dbt_project_evaluator_issues
(which it seems does not work in the IDE and the Cloud CLI) but might work for jobs in dbt Cloudfct_abcd
that has been created in the warehouseThis issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please comment on the issue or else it will be closed in 7 days.
Although we are closing this issue as stale, it's not gone forever. Issues can be reopened if there is renewed community interest. Just add a comment to notify the maintainers.
Describe the bug
Following these instructions, I used the macro print_dbt_project_evaluator_issues in the property on-run-end. At the end of running dbt_project_evaluator, I get nothing.
on-run-end: "{{ dbt_project_evaluator.print_dbt_project_evaluator_issues() }}"
Steps to reproduce
My dbt_project.yml looks something like this:
on-run-end: "{{ dbt_project_evaluator.print_dbt_project_evaluator_issues() }}"
Run the command:dbt build package:dbt_project_evaluator
Expected results
I expect dbt_project_evaluator to show up information about the warn steps highlighted in the command.
Screenshots and log output
System information
Which database are you using dbt with?
The output of
dbt --version
:Additional context
Are you interested in contributing the fix?