mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
fix: The number of columns returned by Hive DESCRIBE does not match the ColumnSchema constructor #1210
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user