Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AutoScenarioDbTable - NotImplementedError for DB reflection #42

Open
victorterpstra opened this issue Feb 3, 2022 · 0 comments
Open
Labels
bug Something isn't working

Comments

@victorterpstra
Copy link
Collaborator

The statement table = Table(self.db_table_name, metadata_obj, autoload_with=engine), as used for the AutoScenarioDbTable, throws a NotImplementedError.
The AutoScenarioDbTable uses this to get the Table and Columns from DB reflection. Instead of the regular ScenarioDbTable, in which the user codes the Table in Python.

In Windows, a revert to SQLAlchemy <1.4 seemed to work.
But not in CPD 4.0.5

This relates to difficulty in upgrading to SQLAlchemy 1.4
See also: ibmdb/python-ibmdbsa#104
(In the issue, someone recently posted a work-around)

Addition problem is that Pandas 1.4 requires SQLAlchemy 1.4, so we will need to upgrade soon

@victorterpstra victorterpstra added the bug Something isn't working label Feb 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant