You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dbt treats unrecognized keys under config: as custom keys and silently discards them (CustomKeyInConfigDeprecation, D026 — dbt Cloud has been warning about this on every run). A scan across all five subprojects found 8 real occurrences, and they weren't cosmetic: config dbt was throwing away.
Three spine models (chain_swap_trades, dex_solana_bot_trades, dex_evm_bot_trades) had their whole columns: block — including the YAML anchors the per-project sibling models alias — nested under config:, so none of those column descriptions ever made it into the manifest. The block moves to the model level; anchors still precede their aliases, so the siblings are untouched.
Four solana *_bot_users models buried a user column with an intended unique test inside config:. For soul_sniper and alpha_dex that was their only test, so the constraint has never run. The column is now live (and the scalar data_tests: unique shorthand corrected to a list, which is what dbt requires once the key is actually read). This PR's CI runs those four unique tests for the first time — if one fails, the data violates a constraint its author intended, which is worth knowing.
ajna_erc20_pools used singular tag:, so its four tags were never applied; renamed to tags:. None of them is used by any prod/CI selector (those only use prod_exclude, remove, static), so the only effect is a one-time state:modified flag.
Medium Risk
No SQL or model logic changes, but CI will newly run four unique tests on bot user tables that may fail if duplicate users exist in production data.
Overview
Resolves CustomKeyInConfigDeprecation (D026) by fixing YAML where dbt was ignoring real metadata.
Spine trade models (chain_swap_trades, dex_evm_bot_trades, dex_solana_bot_trades) had entire columns: blocks (including YAML anchors sibling models reuse) nested under config:, so column docs never reached the manifest. Those blocks are moved to the model level with the same anchor definitions.
Four Solana *_bot_users models had a user column and unique test under config:; for some models that was the only constraint, so it never ran. Columns/tests are now at model level, with data_tests: unique expressed as a list.
ajna_erc20_pools used invalid tag: instead of tags:, so its four tags were never applied (renamed only; prod selectors do not depend on them).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dbt: dailycovers the Daily dbt subprojectdbt: dexcovers the DEX dbt subprojectdbt: solanacovers the Solana dbt subprojectready-for-reviewthis PR development is complete, please review
1 participant
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
dbt treats unrecognized keys under
config:as custom keys and silently discards them (CustomKeyInConfigDeprecation, D026 — dbt Cloud has been warning about this on every run). A scan across all five subprojects found 8 real occurrences, and they weren't cosmetic: config dbt was throwing away.Three spine models (
chain_swap_trades,dex_solana_bot_trades,dex_evm_bot_trades) had their wholecolumns:block — including the YAML anchors the per-project sibling models alias — nested underconfig:, so none of those column descriptions ever made it into the manifest. The block moves to the model level; anchors still precede their aliases, so the siblings are untouched.Four solana
*_bot_usersmodels buried ausercolumn with an intendeduniquetest insideconfig:. Forsoul_sniperandalpha_dexthat was their only test, so the constraint has never run. The column is now live (and the scalardata_tests: uniqueshorthand corrected to a list, which is what dbt requires once the key is actually read). This PR's CI runs those four unique tests for the first time — if one fails, the data violates a constraint its author intended, which is worth knowing.ajna_erc20_poolsused singulartag:, so its four tags were never applied; renamed totags:. None of them is used by any prod/CI selector (those only useprod_exclude,remove,static), so the only effect is a one-timestate:modifiedflag.