-
Notifications
You must be signed in to change notification settings - Fork 48
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
Snowflake pandas #83
Snowflake pandas #83
Conversation
Instead of replacing, I think it might be a better idea to combine |
I really like the create table feature because that's a very big use case. If it's between one and the other, then I choose to keep the create table feature that we currently have. However, an alternative is to add an argument in As an aside, it does look like |
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.
Looks great. Two small comments for the docstrings
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
There is a bigger question about the This would provide the best of both worlds :) |
Tagging @jfyu also
Would love to have a bit of a discussion about this PR before taking any action to see if folks align on the approach here. I've overridden the
to_pandas
function for Snowflake. If nosize
is provided it will use the internal snowflake function to get the pandas df. If size is provided to will use the existing inheriteddatabase
functionality.I was reluctant to change to the
insert_dataframe_to_table
to usewrite_pandas()
. The 2 are slightly different in their approach. Our method is not using COPY like the internal snowflake method but inserting directly via aINSERT
statement, and provides table creation and schema abilities. I updated the docs to explain this. I think if people are really keep on usingwrite_pandas
they should be able to call it directly from thecursor
.Any thoughts on the above?