├── .github ├── docker │ └── docker-compose.yml ├── scripts │ ├── increment_version.py │ └── increment_version_test.py └── workflows │ ├── .gitkeep │ ├── python-publish.yml │ └── tests.yml ├── .gitignore ├── CHANGELOG.md ├── MANIFEST.in ├── README.md ├── dbt ├── adapters │ └── ydb │ │ ├── __init__.py │ │ ├── __version__.py │ │ ├── column.py │ │ ├── connections.py │ │ ├── impl.py │ │ └── relation.py └── include │ └── ydb │ ├── __init__.py │ ├── dbt_project.yml │ ├── macros │ ├── adapters.sql │ ├── catalog.sql │ ├── generic_test_sql │ │ ├── accepted_values.sql │ │ └── relationships.sql │ ├── get_custom_name │ │ └── get_custom_schema.sql │ └── materializations │ │ ├── models │ │ ├── incremental │ │ │ └── incremental.sql │ │ ├── table.sql │ │ └── view.sql │ │ ├── seeds │ │ └── seed.sql │ │ └── snapshots │ │ ├── helpers.sql │ │ ├── snapshot.sql │ │ ├── snapshot_merge.sql │ │ └── strategies.sql │ └── profile_template.yml ├── examples └── jaffle_shop │ ├── .gitignore │ ├── README.md │ ├── dbt_project.yml │ ├── models │ ├── customers.sql │ ├── docs.md │ ├── orders.sql │ ├── overview.md │ ├── schema.yml │ └── staging │ │ ├── schema.yml │ │ ├── stg_customers.sql │ │ ├── stg_orders.sql │ │ └── stg_payments.sql │ ├── profiles.yml │ ├── seeds │ ├── .gitkeep │ ├── raw_customers.csv │ ├── raw_orders.csv │ └── raw_payments.csv │ └── snapshots │ └── orders_snapshot.yml ├── poetry.lock ├── pyproject.toml └── tests ├── __init__.py ├── conftest.py └── functional └── adapter └── basic ├── test_adapter_methods.py ├── test_base.py ├── test_empty.py ├── test_ephemeral.py ├── test_generic_tests.py ├── test_incremental.py ├── test_singular_tests.py ├── test_singular_tests_ephemeral.py ├── test_snapshot_check_cols.py ├── test_snapshot_timestamp.py ├── test_table_materialization.py └── test_validate_connection.py /.github/docker/docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/.github/docker/docker-compose.yml -------------------------------------------------------------------------------- /.github/scripts/increment_version.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/.github/scripts/increment_version.py -------------------------------------------------------------------------------- /.github/scripts/increment_version_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/.github/scripts/increment_version_test.py -------------------------------------------------------------------------------- /.github/workflows/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.github/workflows/python-publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/.github/workflows/python-publish.yml -------------------------------------------------------------------------------- /.github/workflows/tests.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/.github/workflows/tests.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/.gitignore -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /MANIFEST.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/MANIFEST.in -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/README.md -------------------------------------------------------------------------------- /dbt/adapters/ydb/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/dbt/adapters/ydb/__init__.py -------------------------------------------------------------------------------- /dbt/adapters/ydb/__version__.py: -------------------------------------------------------------------------------- 1 | version = "0.0.12" 2 | -------------------------------------------------------------------------------- /dbt/adapters/ydb/column.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/dbt/adapters/ydb/column.py -------------------------------------------------------------------------------- /dbt/adapters/ydb/connections.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/dbt/adapters/ydb/connections.py -------------------------------------------------------------------------------- /dbt/adapters/ydb/impl.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/dbt/adapters/ydb/impl.py -------------------------------------------------------------------------------- /dbt/adapters/ydb/relation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/dbt/adapters/ydb/relation.py -------------------------------------------------------------------------------- /dbt/include/ydb/__init__.py: -------------------------------------------------------------------------------- 1 | import os 2 | 3 | PACKAGE_PATH = os.path.dirname(__file__) 4 | -------------------------------------------------------------------------------- /dbt/include/ydb/dbt_project.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/dbt/include/ydb/dbt_project.yml -------------------------------------------------------------------------------- /dbt/include/ydb/macros/adapters.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/dbt/include/ydb/macros/adapters.sql -------------------------------------------------------------------------------- /dbt/include/ydb/macros/catalog.sql: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /dbt/include/ydb/macros/generic_test_sql/accepted_values.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/dbt/include/ydb/macros/generic_test_sql/accepted_values.sql -------------------------------------------------------------------------------- /dbt/include/ydb/macros/generic_test_sql/relationships.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/dbt/include/ydb/macros/generic_test_sql/relationships.sql -------------------------------------------------------------------------------- /dbt/include/ydb/macros/get_custom_name/get_custom_schema.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/dbt/include/ydb/macros/get_custom_name/get_custom_schema.sql -------------------------------------------------------------------------------- /dbt/include/ydb/macros/materializations/models/incremental/incremental.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/dbt/include/ydb/macros/materializations/models/incremental/incremental.sql -------------------------------------------------------------------------------- /dbt/include/ydb/macros/materializations/models/table.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/dbt/include/ydb/macros/materializations/models/table.sql -------------------------------------------------------------------------------- /dbt/include/ydb/macros/materializations/models/view.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/dbt/include/ydb/macros/materializations/models/view.sql -------------------------------------------------------------------------------- /dbt/include/ydb/macros/materializations/seeds/seed.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/dbt/include/ydb/macros/materializations/seeds/seed.sql -------------------------------------------------------------------------------- /dbt/include/ydb/macros/materializations/snapshots/helpers.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/dbt/include/ydb/macros/materializations/snapshots/helpers.sql -------------------------------------------------------------------------------- /dbt/include/ydb/macros/materializations/snapshots/snapshot.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/dbt/include/ydb/macros/materializations/snapshots/snapshot.sql -------------------------------------------------------------------------------- /dbt/include/ydb/macros/materializations/snapshots/snapshot_merge.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/dbt/include/ydb/macros/materializations/snapshots/snapshot_merge.sql -------------------------------------------------------------------------------- /dbt/include/ydb/macros/materializations/snapshots/strategies.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/dbt/include/ydb/macros/materializations/snapshots/strategies.sql -------------------------------------------------------------------------------- /dbt/include/ydb/profile_template.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/dbt/include/ydb/profile_template.yml -------------------------------------------------------------------------------- /examples/jaffle_shop/.gitignore: -------------------------------------------------------------------------------- 1 | target/ 2 | logs/ 3 | .user.yml 4 | -------------------------------------------------------------------------------- /examples/jaffle_shop/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/examples/jaffle_shop/README.md -------------------------------------------------------------------------------- /examples/jaffle_shop/dbt_project.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/examples/jaffle_shop/dbt_project.yml -------------------------------------------------------------------------------- /examples/jaffle_shop/models/customers.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/examples/jaffle_shop/models/customers.sql -------------------------------------------------------------------------------- /examples/jaffle_shop/models/docs.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/examples/jaffle_shop/models/docs.md -------------------------------------------------------------------------------- /examples/jaffle_shop/models/orders.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/examples/jaffle_shop/models/orders.sql -------------------------------------------------------------------------------- /examples/jaffle_shop/models/overview.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/examples/jaffle_shop/models/overview.md -------------------------------------------------------------------------------- /examples/jaffle_shop/models/schema.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/examples/jaffle_shop/models/schema.yml -------------------------------------------------------------------------------- /examples/jaffle_shop/models/staging/schema.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/examples/jaffle_shop/models/staging/schema.yml -------------------------------------------------------------------------------- /examples/jaffle_shop/models/staging/stg_customers.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/examples/jaffle_shop/models/staging/stg_customers.sql -------------------------------------------------------------------------------- /examples/jaffle_shop/models/staging/stg_orders.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/examples/jaffle_shop/models/staging/stg_orders.sql -------------------------------------------------------------------------------- /examples/jaffle_shop/models/staging/stg_payments.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/examples/jaffle_shop/models/staging/stg_payments.sql -------------------------------------------------------------------------------- /examples/jaffle_shop/profiles.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/examples/jaffle_shop/profiles.yml -------------------------------------------------------------------------------- /examples/jaffle_shop/seeds/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/jaffle_shop/seeds/raw_customers.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/examples/jaffle_shop/seeds/raw_customers.csv -------------------------------------------------------------------------------- /examples/jaffle_shop/seeds/raw_orders.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/examples/jaffle_shop/seeds/raw_orders.csv -------------------------------------------------------------------------------- /examples/jaffle_shop/seeds/raw_payments.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/examples/jaffle_shop/seeds/raw_payments.csv -------------------------------------------------------------------------------- /examples/jaffle_shop/snapshots/orders_snapshot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/examples/jaffle_shop/snapshots/orders_snapshot.yml -------------------------------------------------------------------------------- /poetry.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/poetry.lock -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/pyproject.toml -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/tests/conftest.py -------------------------------------------------------------------------------- /tests/functional/adapter/basic/test_adapter_methods.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/tests/functional/adapter/basic/test_adapter_methods.py -------------------------------------------------------------------------------- /tests/functional/adapter/basic/test_base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/tests/functional/adapter/basic/test_base.py -------------------------------------------------------------------------------- /tests/functional/adapter/basic/test_empty.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/tests/functional/adapter/basic/test_empty.py -------------------------------------------------------------------------------- /tests/functional/adapter/basic/test_ephemeral.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/tests/functional/adapter/basic/test_ephemeral.py -------------------------------------------------------------------------------- /tests/functional/adapter/basic/test_generic_tests.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/tests/functional/adapter/basic/test_generic_tests.py -------------------------------------------------------------------------------- /tests/functional/adapter/basic/test_incremental.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/tests/functional/adapter/basic/test_incremental.py -------------------------------------------------------------------------------- /tests/functional/adapter/basic/test_singular_tests.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/tests/functional/adapter/basic/test_singular_tests.py -------------------------------------------------------------------------------- /tests/functional/adapter/basic/test_singular_tests_ephemeral.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/tests/functional/adapter/basic/test_singular_tests_ephemeral.py -------------------------------------------------------------------------------- /tests/functional/adapter/basic/test_snapshot_check_cols.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/tests/functional/adapter/basic/test_snapshot_check_cols.py -------------------------------------------------------------------------------- /tests/functional/adapter/basic/test_snapshot_timestamp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/tests/functional/adapter/basic/test_snapshot_timestamp.py -------------------------------------------------------------------------------- /tests/functional/adapter/basic/test_table_materialization.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/tests/functional/adapter/basic/test_table_materialization.py -------------------------------------------------------------------------------- /tests/functional/adapter/basic/test_validate_connection.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ydb-platform/dbt-ydb/HEAD/tests/functional/adapter/basic/test_validate_connection.py --------------------------------------------------------------------------------