Skip to content

AttributeError: 'SQLiteCredentials' object has no attribute 'host' #47

Closed
@ChristianKranemann

Description

@ChristianKranemann

Hey

i am using dbt-sqlit 1.4.0 with dbt-core 1.5.2 and i get the following error:

  File "XXX\.venv\Lib\site-packages\dbt\adapters\sqlite\connections.py", line 40, in unique_field
    return self.host
           ^^^^^^^^^
AttributeError: 'SQLiteCredentials' object has no attribute 'host'

The problem is the telemetry hash in SQLiteCredentials subclassing Credentials :

    @property
    def unique_field(self):
        """
        Hashed and included in anonymous telemetry to track adapter adoption.
        Pick a field that can uniquely identify one team/organization building with this adapter
        """
        return self.host

Credentials from dbt.adapters.base has no field host. Maybee change it to self.schema_directory ?

Best Regards!

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