Skip to content

Fix duplicate external model generation from directory files#5897

Open
reachsrinivaschennupati-tech wants to merge 1 commit into
SQLMesh:mainfrom
reachsrinivaschennupati-tech:fix/external-models-directory-duplicates
Open

Fix duplicate external model generation from directory files#5897
reachsrinivaschennupati-tech wants to merge 1 commit into
SQLMesh:mainfrom
reachsrinivaschennupati-tech:fix/external-models-directory-duplicates

Conversation

@reachsrinivaschennupati-tech

@reachsrinivaschennupati-tech reachsrinivaschennupati-tech commented Jul 10, 2026

Copy link
Copy Markdown

Summary

  • avoid writing external models loaded from external_models/*.yaml back into generated external_models.yaml
  • keep refetch behavior for external models that came from the generated root file
  • add a regression test for create_external_models with an external_models/ entry

Fixes #5880

Tests

All Tests Successfully passed locally

Signed-off-by: srinivas chennupati <reachsrinivaschennupati@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: create_external_models causes duplicate model ConfigError when using external_models/ directory

1 participant