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

fix: SQLConnector.table_exists() to use separate table_name and schema_name instead of fully qualified name #1168

Conversation

BuzzCutNorman
Copy link
Contributor

@BuzzCutNorman BuzzCutNorman commented Nov 10, 2022

Attempt to fix table_exists() to use the parsed full_table_name parts table and schema instead of a combined multipart name.

Fixes #1167


📚 Documentation preview 📚: https://meltano-sdk--1168.org.readthedocs.build/en/1168/

@codecov
Copy link

codecov bot commented Nov 10, 2022

Codecov Report

Merging #1168 (cede5ac) into main (ff3d65e) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1168   +/-   ##
=======================================
  Coverage   83.57%   83.58%           
=======================================
  Files          42       42           
  Lines        3873     3874    +1     
  Branches      657      657           
=======================================
+ Hits         3237     3238    +1     
  Misses        473      473           
  Partials      163      163           
Impacted Files Coverage Δ
singer_sdk/connectors/sql.py 77.86% <100.00%> (+0.08%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@BuzzCutNorman
Copy link
Contributor Author

@edgarrmondragon when you get a chance, please take a look. I left the logging in to show the points I was looking at. I am planning on removing them before I click ready for review.

@edgarrmondragon edgarrmondragon changed the title fix: table_exists() to use table_name and schema_name fix: SQLConnector.table_exists() to use separate table_name and schema_name instead of fully qualified name Nov 11, 2022
@edgarrmondragon
Copy link
Collaborator

LGTM!

Thanks, @BuzzCutNorman 😄

@edgarrmondragon edgarrmondragon merged commit 80daef2 into meltano:main Nov 11, 2022
@BuzzCutNorman BuzzCutNorman deleted the 1167-fix-table-exists-to-use-tablename-and-schema branch November 28, 2023 15:15
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.

[Bug]: Function 'table_exists()' returning false when the table does exist in database
3 participants