Hi Jeff,
First off, thank you for maintaining dbt-sqlite!
I've encountered some persistent and confusing issues with profile parsing and schema path resolution when using dbt-sqlite v1.9.1 (with dbt-core v1.9.4) on macOS arm64.
Specifically, dbt debug and dbt run/test are inconsistently failing with errors about missing required profile keys (schema_directory, schema, schemas_and_paths), even when the profiles.yml file is correctly configured according to the documentation.
Additionally, when attempting to build models targeting the default main schema, the adapter seems to incorrectly generate paths like main_main.db instead of using the file specified in schemas_and_paths for the main schema.
We've done extensive troubleshooting (clean venvs, different dbt versions, Docker isolation, various profile configurations) and documented the full details, error messages, and reproduction steps in a corresponding dbt-core issue here:
dbt-core #11467
It seems there might be a bug in how the adapter interacts with dbt's profile parsing or how it resolves paths specifically for the main schema in recent versions.
Environment:
- dbt-sqlite: 1.9.1
- dbt-core: 1.9.4
- Python: 3.10.14
- OS: macOS Sonoma 14.x (arm64)
Thanks for looking into this when you have a chance!
Hi Jeff,
First off, thank you for maintaining
dbt-sqlite!I've encountered some persistent and confusing issues with profile parsing and schema path resolution when using
dbt-sqlitev1.9.1 (with dbt-core v1.9.4) on macOS arm64.Specifically,
dbt debuganddbt run/testare inconsistently failing with errors about missing required profile keys (schema_directory,schema,schemas_and_paths), even when theprofiles.ymlfile is correctly configured according to the documentation.Additionally, when attempting to build models targeting the default
mainschema, the adapter seems to incorrectly generate paths likemain_main.dbinstead of using the file specified inschemas_and_pathsfor the main schema.We've done extensive troubleshooting (clean venvs, different dbt versions, Docker isolation, various profile configurations) and documented the full details, error messages, and reproduction steps in a corresponding
dbt-coreissue here:dbt-core #11467It seems there might be a bug in how the adapter interacts with dbt's profile parsing or how it resolves paths specifically for the
mainschema in recent versions.Environment:
Thanks for looking into this when you have a chance!