We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1d924fc + a4f3b3e commit 913f84eCopy full SHA for 913f84e
app/app.py
@@ -356,7 +356,7 @@ def get_geom(tbl):
356
engine = create_engine(db_uri) #connect_args={'read_only': True})
357
con = engine.connect()
358
con.execute("install spatial; load spatial;")
359
-con.execute(f"create or replace table protected as select *, st_geomfromwkb(geom) as geometry from read_parquet('{parquet}');").fetchall()
+con.execute(f"create or replace table protected as select *, geom as geometry from read_parquet('{parquet}');").fetchall()
360
db = SQLDatabase(engine, view_support=True)
361
362
from langchain_openai import ChatOpenAI
0 commit comments