[Bug] Partial parsing error at path ['raw_code']: None is not of type 'string' when modifying source if snapshot is snapping the source and snapshot is declared with yaml #11164
Labels
bug
Something isn't working
partial_parsing
snapshots
Issues related to dbt's snapshot functionality
Is this a new bug in dbt-core?
Current Behavior
If we have a snapshot declared in the fancy new yaml way that is snapping a source - then partial parsing will error when the source is modified.
Expected Behavior
No error.
Steps To Reproduce
Project setup.
Do an initial parse:
Edit the description of our source:
Do a subsequent - i.e. partially parsed parse:
Workaround: Do a full parse whenever you change the source file by deleting the target folder or adding the
--no-partial-parse
flag. This is kinda cumbersome in the dbt Cloud IDE though - each save of a file will do a partial parse behind the scenes.Relevant log output
No response
Environment
Which database adapter are you using with dbt?
postgres
Additional Context
This isn't an issue if we stuck to our good old sql file way of declaring snapshots:
Initial parse:
Modify source like above then reparse:
The text was updated successfully, but these errors were encountered: