aws-samples / dbt-glue

This repository contains the dbt-glue adapter
Apache License 2.0
101 stars 69 forks source link

Adds minimal model contract enforcement for glue adapter #297

Closed brianhtn closed 11 months ago

brianhtn commented 12 months ago

resolves #296

Description

This PR adds limited dbt model contract enforcement for the glue adapter. It adds a call to the get_assert_columns_equivalent() macro which is used to enforce the schemas for view and table materializations.

I say "limited" because it's missing a portion of the enforcements which includes but not limited to constraints and potential various Glue specific datatypes. In this PR, I only addressed the string type.

Checklist

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.