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

Evaluate mainlining of cratedb_toolkit.sqlalchemy.patch.patch_inspector #137

Open
amotl opened this issue Nov 8, 2023 · 2 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@amotl
Copy link
Member

amotl commented Nov 8, 2023

About

@ckurze and @amotl discovered a case where the flaw is reproducible, that SQLAlchemy's introspection/reflection machinery is not able to pick up the schema name correctly.

Details

832c3bc fixes it. Indeed, we apparently need a runtime fix here, when using a non-standard schema (doc vs. testdrive).

# TODO: Bring this into the `crate-python` driver.
from cratedb_toolkit.sqlalchemy.patch import patch_inspector
patch_inspector()

Originally posted by @amotl in #136 (comment)

@amotl amotl added the bug Something isn't working label Nov 8, 2023
@amotl amotl self-assigned this Nov 8, 2023
@amotl
Copy link
Member Author

amotl commented Nov 13, 2023

We need the patch at influxio, mlflow-cratedb, and langchain. This clearly indicates it should be mainlined.

-- https://github.com/search?q=patch_inspector+language%3APython&type=code&l=Python

@amotl
Copy link
Member Author

amotl commented Jan 17, 2024

This is the corresponding upstream patch.

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