Queries Warnings¶
WARN-COLUMN-CHECK-UNAVAILABLE: Column check unavailable on this adapter¶
- Level: warning
- Domain: execute
- Suppressible: yes
Message template:
Column check unavailable on {adapter_type} ({mechanism} validates the query but returns no result schema).
Fix: Chart column checks need a schema-bearing mechanism (DuckDB, BigQuery dry run). Verify chart columns against a sample run, e.g. dct query
Fired during dct validate --warehouse when the adapter can validate that the query is accepted by the warehouse but cannot return a result schema, so chart channel column checks are skipped. Use a DuckDB or BigQuery source for full column verification.
WARN-DATE-AS-TEXT: A charted x column is a date the query turned into text¶
- Level: warning
- Domain: query
- Suppressible: yes
Message template:
Fix: Return the date itself (with date_trunc for a grain) instead of formatting it; the axis labels dates by grain. For a month-of-year or day-of-week category, return the month or weekday name.
Fires when a column some chart uses as its x is a date or timestamp wrapped in a formatting call (strftime, to_char, to_varchar, format_date, format_timestamp, format_datetime, date_format, SQL Server FORMAT) or cast to a text type. Text has no time scale, label thinning, or gaps for missing periods, so the chart draws it as categories.
The warning needs evidence that the input is temporal. Functions that take only dates (strftime, format_date, format_timestamp, format_datetime, date_format) count on the format alone. Functions that also format numbers (to_char, to_varchar, SQL Server FORMAT) and casts to text count only when the value is evidently a date: a date_trunc/date function, a date literal, a cast to a date type, or a column named like a date (created_at, order_date, ts).
A month or weekday name alone stays quiet (%b, %A, Mon, FMDay, DATENAME(month, d), monthname(d)): that is a deliberate seasonality category. Any other format warns, including a month or hour number alone.
When the format or the date_trunc unit is not a literal, the warning still fires but leaves the format and grain out of the message.
The detector reads the query's own SELECT list, for columns charted as x by a chart or one of its layers. A date made text in a CTE, view, or dbt model is not seen.
WARN-DBT-MANIFEST-MISSING: Queries use dbt macros but no manifest was found¶
- Level: warning
- Domain: execute
- Suppressible: yes
Message template:
Fix: Run 'dbt parse' in the dbt project.
Fired once per manifest path, per validate run and per board render, when one or more queries call ref() or source() but no manifest is present at that path. The refs were not checked against the manifest. Run 'dbt parse' to generate target/manifest.json; a source that sets target_path: is looked up at <target_path>/manifest.json.
WARN-DBT-MODEL-COLUMNS-UNRESOLVED: A dbt model's output columns could not be derived statically¶
- Level: warning
- Domain: execute
- Suppressible: yes
Message template:
Query {query_name!r} reads dbt model {model!r}, whose output columns could not be derived from its SQL ({reason}); column references against it were not checked.
Fix: The reason names what blocks static derivation (a SELECT * wants explicit projections; an unaliased cast or expression wants an alias; seeds and snapshots are never derivable); the columns can always be verified with dct validate --warehouse after dbt run.
Fired when a board query reads a dbt model whose output columns cannot be derived statically from its manifest SQL: a SELECT *, a macro in projection position, a snapshot (dbt injects meta columns at build time), or SQL that does not parse. Reported rather than silently skipped: an unchecked column reference is not a verified one.
WARN-DBT-QUERY-COLUMNS-INDETERMINATE: A query's dbt column references could not be determined¶
- Level: warning
- Domain: execute
- Suppressible: yes
Message template:
Query {query_name!r} uses dbt ref()/source() but the columns it reads could not be determined ({reason}); they were not checked against the dbt models.
Fix: The reason names what blocks the analysis (a SELECT * wants explicit columns; a templated identifier is decided at render time); the query can always be verified with dct validate --warehouse after dbt run.
Fired when a board query that calls ref()/source() cannot be statically analyzed for the (table, column) pairs it consumes: a SELECT *, a templated identifier, an ambiguous unqualified column, or SQL that does not parse. The model-column drift check makes no claim either way for such a query; this warning keeps that gap visible instead of passing it in silence. Queries with no dbt calls are out of scope; the SQL lint tiers own those.
WARN-MISSING-JOIN-PREDICATE: Join is missing a predicate and may produce a cartesian product¶
- Level: warning
- Domain: query
- Suppressible: yes
Message template:
Fix: Add an ON clause that relates the tables, or write CROSS JOIN if the cartesian product is intended. Intentional on a constant predicate? Silence it with ignore: [WARN-MISSING-JOIN-PREDICATE] on the query.
Fires when query validation detects a comma join, a JOIN with no ON, or a join on a constant (ON TRUE, ON 1 = 1) between two sources that can each return many rows. That multiplies every row of one by every row of the other; it almost always means a missing ON clause.
An explicit CROSS JOIN is read as intended (a date spine, a year × category grid) and stays quiet. BigQuery's parser reads a comma join (FROM a, b) as a cross join, so on BigQuery a comma join stays quiet too.
A source that returns one row by construction never multiplies rows, so a join against it stays quiet: a subquery or CTE that aggregates with no GROUP BY, a SELECT with no FROM, or a LIMIT 1. So does a table function such as generate_series. A filter that merely happens to match one row does not count. Emitted by validate_compiled_queries via the query validator.
WARN-PARSE-ERROR: SQL query could not be parsed for semantic validation¶
- Level: warning
- Domain: query
- Suppressible: yes
Message template:
Fix: Check the SQL syntax. The query may still execute, but semantic validation (reaggregation, missing join predicates) cannot run on unparseable SQL.
Fires when a SQL query cannot be parsed as a structured AST. The query may still execute against the warehouse; this warning surfaces that semantic validation (reaggregation, missing join predicates) cannot run on unparseable SQL. Emitted by compile() for authored queries whose dialect resolves and whose failure carries a specific position.
WARN-REAGGREGATION: Grouping-dependent aggregate applied on top of an aggregated input¶
- Level: warning
- Domain: query
- Suppressible: yes
Message template:
Fix: Compute the aggregate once over the underlying rows, or carry the SUM and COUNT up and divide them in the outer query.
Fires when an outer query applies an aggregate whose result depends on how rows were grouped to a column that a CTE or subquery already aggregated: AVG, MEDIAN, or a percentile over any aggregate, and SUM over an AVG, MEDIAN, or percentile, and any DISTINCT aggregate, which collapses equal pre-aggregated values. An average of averages weights every group equally, so it differs from the average of the underlying rows. The message names both functions, for example AVG over AVG. Emitted by validate_compiled_queries via the query validator.
Pairs that compose exactly stay quiet: SUM or COUNT over SUM or COUNT, MAX over MAX, and MIN over MIN. So do window functions (LAG, a running SUM(...) OVER), which run per row, and aggregates with a FILTER (WHERE ...) clause, which pick a subset of rows.
WARN-SEMANTIC-COMPILE-FAILED: Semantic SQL could not be compiled¶
- Level: warning
- Domain: query
- Suppressible: yes
Message template:
Fix: Use the names dct semantics SOURCE lists: a dataset or constellation as the table, AGG(calculation) or AGG(metric) for measures, and relationship.attribute paths or roles to group by.
Reported by dct query --validate when the query reads a dataset or constellation of its source's MetricFlow bundle and MetricFlow cannot compile it, the bundle cannot be loaded, or the source requires its bundle and the query reads a table outside it. The message is the engine's own, with the declared names the query's mistyped ones nearly match. The query is compiled, never run. It is an error, and cannot be suppressed: the same query fails when it runs.
WARN-SESSION-TIME-ZONE-UNSUPPORTED: Source cannot run queries in the board time zone¶
- Level: warning
- Domain: execute
- Suppressible: yes
Message template:
Source {source!r} ({adapter_type}) has no session time zone, so its queries run in the warehouse's own zone, not the board's {time_zone}.
Fix: Convert in the SQL where the board's zone matters, or set regional.time_zone to UTC.
Fired when a board sets a regional.time_zone other than UTC and a query's source is on a warehouse with no session time zone to set (SQLite, SQL Server, Fabric, MySQL, MariaDB, Athena, Presto). Every other warehouse runs its queries in the board's zone, so date truncation and casts agree with the printed times; on this one they follow the warehouse's own zone and the query runs as written.
WARN-SOURCE-TIME-ZONE-OVERRIDDEN: Source time zone is overridden by the board¶
- Level: warning
- Domain: execute
- Suppressible: yes
Message template:
Fix: Remove the source's time zone, or set regional.time_zone to match it.
Fired when a Trino source's timezone or a DuckDB source's settings.TimeZone differs from the board's regional.time_zone. Queries always run in the board's zone, so the source's own zone has no effect; it still loads so a dbt profile target maps over.
WARN-UNREFERENCED-QUERY: Query is defined but nothing reads it¶
- Level: warning
- Domain: compile
- Suppressible: yes
Message template:
Fix: Delete the query, or reference it from a chart or variable.
Fires at compile time for a query defined in the board tree that no chart (or layer), variable option list or enabled/visible probe, board title or text, or other query's {{ queries.<name> }} reads. A chart-focused board is judged against the unfocused one. Emitted by compile/validate/board_warnings.py.
WARN-WAREHOUSE-CHECK-UNAVAILABLE: Warehouse check unavailable on this adapter¶
- Level: warning
- Domain: execute
- Suppressible: yes
Message template:
Fix: The query is unverified, not verified. Check it against a source with a check mechanism (DuckDB, BigQuery, Postgres, Redshift, Snowflake), or run it directly, e.g. dct query
Fired during dct validate --warehouse when a query could not be checked without running it at full cost: the adapter offers no mechanism (DESCRIBE, EXPLAIN, or a dry run), the query composes another query's cached result, or the warehouse was never reached. The query is reported as unchecked rather than valid: nothing inspected the SQL. --warehouse will never run the query itself to find out.