From a5b45ef180795436ce101743670ec217d7de63bf Mon Sep 17 00:00:00 2001 From: Akira Ajisaka Date: Wed, 15 Nov 2023 14:16:13 +0900 Subject: [PATCH] Revert the change in get_result_from_cursor to fix test --- dbt/adapters/glue/connections.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbt/adapters/glue/connections.py b/dbt/adapters/glue/connections.py index ad2006e8..43cd4423 100644 --- a/dbt/adapters/glue/connections.py +++ b/dbt/adapters/glue/connections.py @@ -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)