Skip to content

Commit

Permalink
Revert the change in get_result_from_cursor to fix test (#279)
Browse files Browse the repository at this point in the history
  • Loading branch information
aajisaka authored Nov 15, 2023
1 parent acadda6 commit 879f41a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbt/adapters/glue/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def get_response(cls, cursor) -> AdapterResponse:
def get_result_from_cursor(cls, cursor: GlueCursor, limit: Optional[int]) -> agate.Table:
data: List[Any] = []
column_names: List[str] = []
if not cursor.description:
if cursor.description is not None:
column_names = [col[0] for col in cursor.description()]
if limit:
rows = cursor.fetchmany(limit)
Expand Down

0 comments on commit 879f41a

Please sign in to comment.