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
I think there might be a bug with partial parsing if a yaml ("schema") file is missing version: 2, per #7060!
models:
- name: any_modeldescription: My favorite model
-- models/any_model.sqlselect1as id
$ dbt parse
00:32:51 Running with dbt=1.5.0-b4
00:32:51 Unable to do partial parsing because an error occurred. Switching to full reparse.
00:32:52 Performance info: target/perf_info.json
In logs/dbt.log:
PP exception info: {'code': ' schema_file.pp_dict = {"version": schema_file.dict_from_yaml["version"]}', 'parse_file_type': 'model', 'exception': "KeyError: 'version'", 'location': 'line 810 in merge_patch', 'traceback': 'Traceback (most recent call last):
File "/Users/jerco/dev/product/dbt-core/core/dbt/parser/manifest.py", line 293, in load
project_parser_files = self.partial_parser.get_parsing_files()
File "/Users/jerco/dev/product/dbt-core/core/dbt/parser/partial.py", line 188, in get_parsing_files
self.update_in_saved(file_id)
File "/Users/jerco/dev/product/dbt-core/core/dbt/parser/partial.py", line 288, in update_in_saved
self.update_mssat_in_saved(new_source_file, old_source_file)
File "/Users/jerco/dev/product/dbt-core/core/dbt/parser/partial.py", line 316, in update_mssat_in_saved
self.remove_node_in_saved(new_source_file, unique_id)
File "/Users/jerco/dev/product/dbt-core/core/dbt/parser/partial.py", line 350, in remove_node_in_saved
self.merge_patch(schema_file, dict_key, elem_patch)
File "/Users/jerco/dev/product/dbt-core/core/dbt/parser/partial.py", line 810, in merge_patch
schema_file.pp_dict = {"version": schema_file.dict_from_yaml["version"]}
KeyError: \'version\'
'}
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
[Bug] [Partial parsing] Error in merge_patch when version: 2 missing from yaml file
[CT-2337] [Bug] [Partial parsing] Error in merge_patch when version: 2 missing from yaml file
Mar 29, 2023
I think there might be a bug with partial parsing if a yaml ("schema") file is missing
version: 2
, per #7060!In
logs/dbt.log
:The text was updated successfully, but these errors were encountered: