From 37015c650e5425f58651dbc2fedd50584bb29676 Mon Sep 17 00:00:00 2001 From: Jothi Prakash Date: Fri, 20 Sep 2024 12:30:48 +0530 Subject: [PATCH] Minor fix --- src/databricks/sql/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/databricks/sql/utils.py b/src/databricks/sql/utils.py index 5f7c6d16..97df6d4d 100644 --- a/src/databricks/sql/utils.py +++ b/src/databricks/sql/utils.py @@ -617,11 +617,11 @@ def convert_to_assigned_datatypes_in_column_table(column_table, description): if description[i][1] == "decimal": converted_column_table.append(tuple(v if v is None else Decimal(v) for v in col)) elif description[i][1] == "date": - converted_column_table[i].append(tuple( + converted_column_table.append(tuple( v if v is None else datetime.date.fromisoformat(v) for v in col )) elif description[i][1] == "timestamp": - converted_column_table[i].append(tuple( + converted_column_table.append(tuple( ( v if v is None