-
Notifications
You must be signed in to change notification settings - Fork 722
Add flag for using column names in to_sql #583
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
Conversation
igorborgest
left a comment
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.
LGTM
igorborgest
left a comment
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.
Seems great @maxispeicher !
You just need to replace "test" by "public" on the Redshift test case.
igorborgest
left a comment
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 @maxispeicher !
Issue #545:
Description of changes:
Add a flag for using the column names of the DataFrame in
to_sqlofmysql,postgresql,sqlserverandredshiftfor the creation of theINSERT INTOquery. When the flag is set toFalse(the default), the behavior will stay the same, but when it is set toTrue, data will only be inserted into columns which exist in the DataFrame.PS: @igorborgest Could you maybe run the new Redshift test as Redshift is unfortunately not available in AWS Educate.
sqlserver,postgresqlandmysqlare tested.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.