This repository has been archived by the owner on Sep 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
Optimizing SQLAlchemy's get_columns
#75
Comments
Since the exception occurs when I implement that, I once acquired the information of all the columns and filtered it on the program side. |
Thanks for your response @laughingman7743, please feel free to let me know if I can be of any help! |
@laughingman7743 Let me just reiterate once again that I am happy to put together a PR that would use filtering on the SQL level, as I suggested above. Thanks! |
I tried implementing it. Please check the following branches. |
laughingman7743
added a commit
that referenced
this issue
Feb 9, 2019
…qlalchemy Optimize get_columns method in SQLAlchemy (fix #75)
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hey @laughingman7743, it's @mrshu again!
As I said in laughingman7743/PyAthena#63, thanks a ton for putting together these two wrapper packages!
I have just a very small beef with
PyAthenaJDBC
-- aside from slowness mostly caused by necessity of running JVM, it takes nearly forever to get columns using SQLAlchemy in the setup I am using. After digging a bit deeper, I found that this is actually by design, and that theget_columns
method starts with the following comment.I went ahead to test it out and can report that the following query
does not fail but returns zero rows. I am not sure if something changed since when the
get_columns
query has been introduced in #14, but I was wondering whether you would be up for making it a bit more efficient?Once again, I am happy to put together a PR that does this, I'd just like to make sure it fits into your perspective on what should
PyAthenaJDBC
look like as well.Thanks again!
The text was updated successfully, but these errors were encountered: