From b8331ef76fc0798a7b43e2f17674be488329f464 Mon Sep 17 00:00:00 2001 From: junjun Date: Thu, 20 Aug 2026 14:14:36 +0800 Subject: [PATCH] fix: The number of columns returned by Hive DESCRIBE does not match the ColumnSchema constructor #1210 --- backend/apps/db/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/apps/db/db.py b/backend/apps/db/db.py index 029d8df6..cfbd2ec1 100644 --- a/backend/apps/db/db.py +++ b/backend/apps/db/db.py @@ -596,7 +596,7 @@ def get_fields(ds: CoreDatasource, table_name: str = None): with get_driver_pool(ds).connection() as conn, conn.cursor() as cursor: cursor.execute(sql) res = cursor.fetchall() - res_list = [ColumnSchema(*item) for item in res] + res_list = [ColumnSchema(*item[:3]) for item in res] return res_list