Closed markporoshin closed 2 years ago
@markporoshin I remembered what's missing here! You need to define the Plugin
in /dbt/adapters/greenplum/__init.py__
like how it is done in dbt-synapse/dbt/adapters/synapse/__init__.py
and dbt-redshift/dbt/adapters/redshift/__init__.py
it will look something like this
# __init__.py
from dbt.adapters.greenplum.connections import greenplumConnectionManager
from dbt.adapters.greenplum.connections import greenplumCredentials
from dbt.adapters.greenplum.impl import greenplumAdapter
from dbt.adapters.base import AdapterPlugin
from dbt.include import greenplum
Plugin = AdapterPlugin(
adapter=greenplumAdapter,
credentials=greenplumCredentials,
include_path=greenplum.PACKAGE_PATH,
dependencies=['postgres']
)
I inherited the adapter from dbt-postgres because I want to do less code copying. Rewrote setup.py and minor fix with compression