You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In theory, the options argument in the connect method is meant to allow you to pass arguments to the connection method for either the pandas or sql context. However, for the sqlalchemy context, the first argument to create_engine is an unnamed argument containing the database URL. I can't find a way to pass both a db connection string and a dict of config options, which means that I can't use the class connect to databases where I require non-default options. My current workaround is to create my own engine and pass it in to SqlAlchemyDataset.
The current data context test demonstrates this behavior by passing a connection string rather than config options to the connect method:
In theory, the
options
argument in theconnect
method is meant to allow you to pass arguments to the connection method for either the pandas or sql context. However, for the sqlalchemy context, the first argument tocreate_engine
is an unnamed argument containing the database URL. I can't find a way to pass both a db connection string and a dict of config options, which means that I can't use the class connect to databases where I require non-default options. My current workaround is to create my own engine and pass it in toSqlAlchemyDataset
.The current data context test demonstrates this behavior by passing a connection string rather than config options to the
connect
method:great_expectations/tests/test_data_contexts/test_data_contexts.py
Line 40 in d7a4ee0
The text was updated successfully, but these errors were encountered: