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

Databricks-sqlalchemy-Use System tables to fetch metadata #451

Open
SomanathSankara opened this issue Oct 5, 2024 · 3 comments
Open

Databricks-sqlalchemy-Use System tables to fetch metadata #451

SomanathSankara opened this issue Oct 5, 2024 · 3 comments

Comments

@SomanathSankara
Copy link

Current Databricks Sql Alchemy uses describe command/show schema/table to get metadata
Can we use system tables to get metadata

@kravets-levko
Copy link
Contributor

Hi @SomanathSankara! Sorry, but I don't think I understand what the question is. Can you please elaborate it a bit?

@SomanathSankara
Copy link
Author

hi @kravets-levko correct my understanding.
Currently sqlalchemy (databricks ) package is using show table comand , show columns command to get table ,column details.
Cant we use UC system table(information schema) to fetch these details which will be faster

@susodapop
Copy link
Contributor

Adding some signal here: yes the system tables can be used to reflect the database schema. This would require Unity Catalog on the target instance, so it would be good to maintain a fallback to the existing SHOW TABLES behavior. But there's no technical limitation of SQLAlchemy that blocks this manner of implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants