Skip to content

Commit

Permalink
changed GlueColumn base class
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremynadal33 committed Aug 6, 2024
1 parent 726ae4c commit 8d90910
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## New versio
## New version
- Fix session provisioning timeout and delay handling
- Change GlueColumn parent from base Column to SparkColumn

## v1.8.1
- Fix typo in README.md
Expand Down
4 changes: 2 additions & 2 deletions dbt/adapters/glue/column.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from dataclasses import dataclass
from typing import ClassVar, Dict

from dbt.adapters.base.column import Column
from dbt.adapters.spark.column import SparkColumn


@dataclass
class GlueColumn(Column):
class GlueColumn(SparkColumn):
# 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
Expand Down
9 changes: 9 additions & 0 deletions tests/unit/test_column.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import unittest

from dbt.adapters.glue.column import GlueColumn


class TestGlueColumn(unittest.TestCase):
def test_column_quote(self):
test_column = GlueColumn("col_name", "INT")
self.assertEqual(test_column.quoted, "`col_name`")

0 comments on commit 8d90910

Please sign in to comment.