-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-submit #297 to enable users to fix their glue_session_id name and…
… re-use it (#322) * Adds minimal model contract enforcement for glue adapter (#297) * Updated to check for contract enforcement * Added a method correct string types for glue columns * Updated the CHANGELOG with changes * Utilize new GlueColumn class --------- Co-authored-by: Brian Nguyen <[email protected]> Co-authored-by: menuetb <[email protected]> * fixed bug --------- Co-authored-by: brianhtn <[email protected]> Co-authored-by: Brian Nguyen <[email protected]> Co-authored-by: menuetb <[email protected]> Co-authored-by: Vincent.PAUWELS <[email protected]>
- Loading branch information
1 parent
6b43053
commit 2b89c9c
Showing
5 changed files
with
41 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from dataclasses import dataclass | ||
from typing import ClassVar, Dict | ||
|
||
from dbt.adapters.base.column import Column | ||
|
||
|
||
@dataclass | ||
class GlueColumn(Column): | ||
# Overwriting dafult string types to support glue | ||
# TODO: Convert to supported glue types as needed | ||
# Please ref: https://github.com/dbt-athena/dbt-athena/blob/main/dbt/adapters/athena/column.py | ||
TYPE_LABELS: ClassVar[Dict[str, str]] = { | ||
"STRING": "STRING", | ||
"TEXT": "STRING", | ||
"VARCHAR": "STRING" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters