fix: The number of columns returned by Hive DESCRIBE does not match the ColumnSchema constructor #1210

This commit is contained in:
junjun
2026-08-20 14:17:11 +08:00
committed by Junjun
parent 7a32b139f7
commit bfe3fc4dc9
+1 -1
View File
@@ -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