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(