dbt-labs / dbt-labs/dbt

[ERROR UX] "...and n others"

Open
#14,079 3 comments 0 reactions 0 assignees View on GitHub
area:static-analysis engine:v2 type:feature
Dominant language
Rust
Stars
13.8k
Forks
2.6k
Avg merge
21h 31m
Merged PRs (30d)
56

Description

from @pempey
> When an error or warning gives a list and overflows(?) in stdout, you should be able to see the entire list in the logs instead of always `...and n others`

@jtcohen6's expectations
- debug-level logs where I can see the full list - probably `logs/dbt.log`, or `--debug` if I want them on stdout
- a verbose flag to "expand" specific warnings (like we have with `--show-all-deprecations` in dbt Core)

### examples

```
error: dbt0227: No column HIGH_PRIORITY__C found. Available are SOURCE.HIGH_PRIORITY_REASON__C, SOURCE.COGNISM_CITY__C, SOURCE.ISPRIORITYRECORD, SOURCE.ABM_TIER__C, SOURCE.FO_INQUIRY__C, SOURCE.HIGH_PRIORITY_TIMESTAMP__C, SOURCE.LEAD_FROM__C ..(and 351 more)
```

```
warning: dbt1000: Skipping unit_tests for models with detected 'unsafe' and 'static_analysis' set to 'off': 'unit_test.gitlab_snowflake.snowplow_event_counts.test_snowplow_event_count_event_filtering',
'unit_test.gitlab_snowflake.snowplow_gitlab_events.test_snowplow_gitlab_events_web_page_id_deduplication',
'unit_test.gitlab_snowflake.snowplow_gitlab_events.test_snowplow_gitlab_events_tracker_filter', 'unit_test.gitlab_snowflake.snowplow_event_counts.test_snowplow_event_count_last_uploaded_at', 'unit_test.gitlab_snowflake.snowplow_gitlab_events_context_flattened.test_snowplow_gitlab_events_context_flattened' and 5 others
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.