From 24ec50bbe25d3a35bb987b9880dece44e47d23e1 Mon Sep 17 00:00:00 2001 From: disheng Date: Wed, 27 Nov 2024 23:26:50 +0800 Subject: [PATCH] Removed memtable function --- ibis-server/app/model/metadata/snowflake.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/ibis-server/app/model/metadata/snowflake.py b/ibis-server/app/model/metadata/snowflake.py index ef5aa8f9c..7998b9f09 100644 --- a/ibis-server/app/model/metadata/snowflake.py +++ b/ibis-server/app/model/metadata/snowflake.py @@ -1,7 +1,5 @@ from contextlib import closing -import ibis - from app.model import SnowflakeConnectionInfo from app.model.data_source import DataSource from app.model.metadata.dto import ( @@ -83,12 +81,7 @@ def get_constraints(self) -> list[Constraint]: """ with closing(self.connection.raw_sql(sql)) as cur: fields = [field[0] for field in cur.description] - result = [dict(zip(fields, row)) for row in cur.fetchall()] - res = ( - ibis.memtable(result).to_pandas().to_dict(orient="records") - if len(result) > 0 - else [] - ) + res = [dict(zip(fields, row)) for row in cur.fetchall()] constraints = [] for row in res: constraints.append(