# Подключение Greenplum к dbt v1

Локальная разработка

* **Поддерживается**: Community
* **Авторы**: Mark Poroshin, Dmitry Bevz
* **Репозиторий GitHub**: [markporoshin/dbt-greenplum](https://github.com/markporoshin/dbt-greenplum) [![](https://img.shields.io/github/stars/markporoshin/dbt-greenplum?style=for-the-badge)](https://github.com/markporoshin/dbt-greenplum)
* **Пакет PyPI**: `dbt-greenplum` [![](https://badge.fury.io/py/dbt-greenplum.svg)](https://badge.fury.io/py/dbt-greenplum)
* **Канал Slack**: [n/a](https://www.getdbt.com/community)
* **Поддерживаемая версия dbt**: v1.0.0 и новее
* **Поддержка dbt**: Not Supported
* **Минимальная версия платформы данных**: Greenplum 6.0

## Установка dbt-greenplum

Установите адаптер с помощью \`pip\`: `python -m pip install dbt-greenplum`

## Настройка dbt-greenplum

Конфигурацию, специфичную для Greenplum, см. на странице [настроек Greenplum.](https://docs.getdbt.tech/reference/resource-configs/greenplum-configs.md)

Для получения дополнительной (и, скорее всего, более актуальной) информации, смотрите [README](https://github.com/markporoshin/dbt-greenplum#README.md)

## Конфигурация профиля

Цели для Greenplum должны быть настроены с использованием следующей конфигурации в вашем файле `profiles.yml`.

\~/.dbt/profiles.yml

```yaml
company-name:
  target: dev
  outputs:
    dev:
      type: greenplum
      host: [hostname]
      user: [username]
      password: [password]
      port: [port]
      dbname: [database name]
      schema: [dbt schema]
      threads: [1 or more]
      keepalives_idle: 0 # по умолчанию 0, что указывает на системное значение по умолчанию. См. ниже
      connect_timeout: 10 # по умолчанию 10 секунд
      search_path: [optional, override the default postgres search_path]
      role: [optional, set the role dbt assumes when executing queries]
      sslmode: [optional, set the sslmode used to connect to the database]
```

### Примечания

Этот адаптер в значительной степени зависит от dbt-postgres, поэтому подробнее о настройках можно прочитать в разделе [Настройка профиля](https://docs.getdbt.tech/docs/local/connect-data-platform/postgres-setup.md)
