Closed ianmcook closed 11 months ago
cc @wolf-sigma
@ianmcook I cannot reproduce it, which SQLAlchemy version are you using? I was testing with 2.0.18
.
@hovaesco I'm running Python 3.10.9 with SQLAlchemy 1.4.46.
@ianmcook here is the fix https://github.com/ibis-project/ibis/pull/6628
Thanks! I think that suppressing the warnings like in https://github.com/ibis-project/ibis/pull/6628 is a sufficient solution for us, so I'll close this.
Expected behavior
After I execute a CTAS statement to copy the table
tpch.tiny.orders
into a new tablemycatalog.myschema.orders
, I expect to be able to create a SQLAlchemyTable
object on the new table with no SQLAlchemy warnings.Actual behavior
SQLAlchemy raises these warnings when I create a
Table
object:Steps To Reproduce
myusername@mydomain.com
.mycluster
.mycatalog
using defaults for all settings.engine = create_engine( 'trino://{user}:{password}@{host}:{port}/{catalog}'.format( user=parse.quote('myusername@mydomain.com/accountadmin', safe=''), password=parse.quote('mypassword', safe=''), host='mycluster.trino.galaxy.starburst.io', port=443, catalog='mycatalog' ), future=True )
with engine.connect() as conn: conn.execute(text('CREATE SCHEMA IF NOT EXISTS mycatalog.myschema')) conn.execute(text('CREATE TABLE IF NOT EXISTS mycatalog.myschema.orders AS SELECT * FROM tpch.tiny.orders')) conn.commit()
with engine.connect() as conn: t = Table('orders', MetaData(schema='myschema'), autoload_with=conn)