-
Notifications
You must be signed in to change notification settings - Fork 71
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: SQL Targets ignore collation when evaluating column data types #1385
fix: SQL Targets ignore collation when evaluating column data types #1385
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1385 +/- ##
=======================================
Coverage 85.19% 85.19%
=======================================
Files 54 54
Lines 4708 4722 +14
Branches 800 803 +3
=======================================
+ Hits 4011 4023 +12
- Misses 506 507 +1
- Partials 191 192 +1
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
…/BuzzCutNorman/sdk into 1125-sql-ignore-column-collation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@BuzzCutNorman remove_collation
and update_collation
both mutate the type object in-place, i.e. you'll notice the returned value points to the same object as the argument:
new_type = remove_collation(current_type)
assert new_type is current_type
So, do you think it makes to only return the collation from remove_collation
and return nothing from update_collation
. Similar to operations on a dictionary:
>>> d = {1: 2, 2: 3, 3: 4}
>>> d.pop(1) # Return the removed value
2
>>> d.update(a=0) # Return nothing, mutate in-place
>>> d
{2: 3, 3: 4, 'a': 0}
Co-authored-by: Edgar R. M. <[email protected]>
@edgarrmondragon, Yes it does make sense and it looks much cleaner. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @BuzzCutNorman, this is g2g!
Thank you @edgarrmondragon ! Couldn't have done it without your excellent guidance. I learned a lot today. |
This is an attempt to fix #1125
📚 Documentation preview 📚: https://meltano-sdk--1385.org.readthedocs.build/en/1385/