Skip to content

xardasos/sqlmesh-imports-problem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Reproducer project for the inconsistent behavior of sqlmesh imports when using macros, affected model.

Steps to reproduce

Execute sqlmesh plan.

Using docker:

  1. docker build -t local/sqlmesh_imports_problem .
  2. docker run -it --entrypoint=/bin/bash local/sqlmesh_imports_problem
  3. sqlmesh plan

Current behavior

Error: Failed to load model definition at '/app/models/full_model.sql'.
cannot import name '_generate_next_value_' from 'enum' (/usr/local/lib/python3.12/enum.py)

Commenting out the usage of EITHER macro1 or macro2 (both macros use the same import) in the affected model makes the import error disappear.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published