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

RM-46 simplify redshift records_unload #227

Conversation

ryantimjohn
Copy link
Contributor

No description provided.

quiet_remove(unhandled_hints, 'quoting')
quiet_remove(unhandled_hints, 'doublequote')
quiet_remove(unhandled_hints, 'quotechar')
return redshift_options
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aren't you modifying the dict in-place already? no need to return it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Definitely, I always have a tough time remembering in Python that when you're not passing around base data types you're passing pointers to the objects rather than copies of the objects.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably because pointers is the wrong way to think about it but... mental models die hard. I was a C guy =(

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well python is written in C so it's definitely all pointers under the hood

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tru tru

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's just that like... it makes more sense when I think of python as names and objects rather than pointers and dereferencing pointers. 🤷

ryantimjohn and others added 3 commits March 17, 2023 13:10
…C901-redshift_unload_options-is-too-complex-17' of https://github.com/bluelabsio/records-mover into RM-46-records_mover-db-redshift-records_unload.py-15-1-C901-redshift_unload_options-is-too-complex-17
…load.py-15-1-C901-redshift_unload_options-is-too-complex-17
@ryantimjohn ryantimjohn marked this pull request as ready for review March 17, 2023 17:29
Copy link
Collaborator

@Brunope Brunope left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good!

@ryantimjohn ryantimjohn added this pull request to the merge queue Mar 20, 2023
@ryantimjohn ryantimjohn merged commit 74aa1e2 into master Mar 20, 2023
@ryantimjohn ryantimjohn deleted the RM-46-records_mover-db-redshift-records_unload.py-15-1-C901-redshift_unload_options-is-too-complex-17 branch March 21, 2023 16:13
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.

2 participants