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

Fixing remaining issues of odbc metadata queries #94

Merged
merged 23 commits into from
May 25, 2020

Conversation

tkilias
Copy link
Collaborator

@tkilias tkilias commented May 25, 2020

This is continuation of pull request #90 and fixes the remaining test failures.

Closes #89

tkilias added 23 commits May 20, 2020 17:31
All implemented functions have a SQL Fallback in case pyodbc is not used.
get_foreign_keys currently has the problem that it seems that at the
moment the metadata function SQLForeignKeys does not work.
…is doesn't return a schema, if this schema doesn't contain tables
Furthermore, added tests for has_table and test against multiple engines with
different default databases.
…nsformation from return statements into variables
@tkilias tkilias changed the title Fixing remaining issues of odbc meta queries Fixing remaining issues of odbc metadata queries May 25, 2020
@tkilias
Copy link
Collaborator Author

tkilias commented May 25, 2020

@BY-jk So, I now got all tests green. There were still some edge cases left which made trouble, but now it should be fine. The previous pull request #90 got closed, probably by an accidental push to master, which I reverted within a minute. If you are ok with this state, I would merge it to master, and then we can discuss, how we get this to PyPi.

@jank
Copy link

jank commented May 25, 2020

@tkilias excellent work. Please go ahead and merge to master.
I discussed with @nndo1991 how to proceed.
Here is the plan of attac:

  • a 2.1.0 release that includes: the odbc metadata query changes, switch from Travis to GitHub actions
  • a 3.0.0 release later (not urgent) that will drop Python 2.7 support and bump dependencies (e.g. like turbodbc) to their latest releases again

@nndo1991 is working on getting the GitHub Action workflow ready to release.

@tkilias tkilias merged commit f915033 into exasol:master May 25, 2020
@nndo1991
Copy link
Contributor

Hi @tkilias is this the final version of your odbc changes or still planning to do more? I'm almost done on the Github Actions setup in my forked repo and will work on releasing 2.1.0 in the next couple of days.

@tkilias
Copy link
Collaborator Author

tkilias commented May 26, 2020

Hi @nndo1991, that is for the near future the final version. It avoids for pyodbc the deadlocks for all metadata functions. It shows for the tests the same behavior as the previous implementation and I specifically added tests to compare their results and to check the deadlocks behavior. The only difference happens in case of concurrent DDL operations, but this is normal for snapshot behavior. We are also thinking about a general solution within the database core, but this will take a while. So, from my side you can publish the current state. Thx.

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

Successfully merging this pull request may close these issues.

Avoid DB locks when performing metadata queries on SYS tables
3 participants