Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: Address SQLAlchemy 2.0 deprecation warnings #1487

Merged
merged 3 commits into from
Mar 6, 2023

Conversation

edgarrmondragon
Copy link
Collaborator

@edgarrmondragon edgarrmondragon commented Mar 6, 2023

This doesn't yet add support for SQLAlchemy 2.0 (#1484), since downstream SQL taps and targets may need to either pin the SDK or set an upper limit for SQLAlchemy.

https://docs.sqlalchemy.org/en/20/changelog/migration_20.html


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

@edgarrmondragon edgarrmondragon force-pushed the feat/support-sqlalchemy-2 branch from 73c65e3 to 6c9ccbb Compare March 6, 2023 17:29
@edgarrmondragon edgarrmondragon changed the title feat: Support SQLAlchemy 2.0 fix: Address SQLAlchemy 2.0 deprecation warnings Mar 6, 2023
@edgarrmondragon edgarrmondragon marked this pull request as ready for review March 6, 2023 17:38
@codecov
Copy link

codecov bot commented Mar 6, 2023

Codecov Report

Merging #1487 (d718c42) into main (7ad6574) will increase coverage by 0.05%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1487      +/-   ##
==========================================
+ Coverage   85.44%   85.50%   +0.05%     
==========================================
  Files          57       57              
  Lines        4756     4760       +4     
  Branches      809      813       +4     
==========================================
+ Hits         4064     4070       +6     
+ Misses        500      498       -2     
  Partials      192      192              
Impacted Files Coverage Δ
singer_sdk/connectors/sql.py 81.91% <100.00%> (ø)
singer_sdk/sinks/sql.py 91.30% <100.00%> (+2.01%) ⬆️
singer_sdk/streams/sql.py 93.54% <100.00%> (+0.10%) ⬆️

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

@edgarrmondragon edgarrmondragon requested a review from a team as a code owner March 6, 2023 18:00
@edgarrmondragon edgarrmondragon force-pushed the feat/support-sqlalchemy-2 branch from b96f641 to d718c42 Compare March 6, 2023 19:14
@edgarrmondragon edgarrmondragon merged commit e760f39 into main Mar 6, 2023
@edgarrmondragon edgarrmondragon deleted the feat/support-sqlalchemy-2 branch March 6, 2023 19:23
edgarrmondragon added a commit to MeltanoLabs/tap-postgres that referenced this pull request Dec 12, 2023
~This was fixed upstream in meltano/sdk#1487,
but this tap overrides `get_records`.~

I think meltano/sdk#2094 is the only difference
between the two implementations?

UPDATE: Using the private `._mapping` attribute makes me nervous so I
opened meltano/sdk#2095 and updated this PR.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants