Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit 3d6e488

Browse files
nicor88Jeremy Guiselin
andauthored
fix: use string when text is passed (#498)
Co-authored-by: Jeremy Guiselin <jeremy.guiselin@jobteaser.com>
1 parent 673b9a7 commit 3d6e488

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

dbt/adapters/athena/column.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from dataclasses import dataclass
2+
from typing import ClassVar, Dict
23

34
from dbt.adapters.athena.relation import TableType
45
from dbt.adapters.base.column import Column
@@ -9,6 +10,11 @@
910
class AthenaColumn(Column):
1011
table_type: TableType = TableType.TABLE
1112

13+
TYPE_LABELS: ClassVar[Dict[str, str]] = {
14+
"STRING": "VARCHAR",
15+
"TEXT": "VARCHAR",
16+
}
17+
1218
def is_iceberg(self) -> bool:
1319
return self.table_type == TableType.ICEBERG
1420

dbt/adapters/athena/impl.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ class AthenaAdapter(SQLAdapter):
122122
ConnectionManager = AthenaConnectionManager
123123
Relation = AthenaRelation
124124
AdapterSpecificConfigs = AthenaConfig
125+
Column = AthenaColumn
125126

126127
# There is no such concept as constraints in Athena
127128
CONSTRAINT_SUPPORT = {

0 commit comments

Comments
 (0)