Skip to content

Issue with Profile Parsing and main Schema Path Resolution (v1.9.1) #61

@allenday

Description

@allenday

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions