Skip to content

Commit b8331ef

Browse files
committed
fix: The number of columns returned by Hive DESCRIBE does not match the ColumnSchema constructor #1210
1 parent 7a32b13 commit b8331ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/apps/db/db.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ def get_fields(ds: CoreDatasource, table_name: str = None):
596596
with get_driver_pool(ds).connection() as conn, conn.cursor() as cursor:
597597
cursor.execute(sql)
598598
res = cursor.fetchall()
599-
res_list = [ColumnSchema(*item) for item in res]
599+
res_list = [ColumnSchema(*item[:3]) for item in res]
600600
return res_list
601601

602602

0 commit comments

Comments
 (0)