Skip to content

Commit

Permalink
Revert the change in get_result_from_cursor to fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
aajisaka committed Nov 15, 2023
1 parent acadda6 commit a5b45ef
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 a5b45ef

Please sign in to comment.