SNOW-2387227: Use session-scoped session.#3831
Closed
sfc-gh-mvashishtha wants to merge 2684 commits into
Closed
Conversation
…al column names (#3501)
Signed-off-by: sfc-gh-mvashishtha <mahesh.vashishtha@snowflake.com>
Signed-off-by: sfc-gh-mvashishtha <mahesh.vashishtha@snowflake.com> Co-authored-by: Jonathan Shi <149419494+sfc-gh-joshi@users.noreply.github.com>
…#3488) Co-authored-by: Jonathan Shi <149419494+sfc-gh-joshi@users.noreply.github.com> Co-authored-by: Hazem Elmeleegy <hazem.elmeleegy@snowflake.com>
…ndas methods (#3512) When AutoSwitchBackend (hybrid execution PrPr) is enabled, the client will automatically switch to the pandas backend when a method registered via a register_*_not_implemented annotation is called.
Co-authored-by: Jonathan Shi <149419494+sfc-gh-joshi@users.noreply.github.com>
Make `__len__()` an alias for `ngroups`. Signed-off-by: sfc-gh-mvashishtha <mahesh.vashishtha@snowflake.com>
…ctions ( part 1) (#3811) Co-authored-by: Jamison Rose <Jamison.Rose@snowflake.com>
…e-op switching for joins (#3818)
Add some changes that we need to support Modin 0.37.0: - add a Snowflake extension for `Series.to_json` that raises `NotImplementedError`. - `test_inplace_false_with_assignment_does_not_mutate_df` now passes - change some expectations relating to merges Signed-off-by: sfc-gh-mvashishtha <mahesh.vashishtha@snowflake.com> Co-authored-by: Jonathan Shi <jonathan.shi@snowflake.com>
…t. (#3820) To implement to_snowflake() for a Snowpark pandas dataframe on the pandas backend with large enough data, upload data via a parquet file instead of via a Snowpark dataframe. The Snowpark dataframe typically inserts values through parametrized SQL queries. Benchmarking showed that a good threshold to switch to parquet was roughly 3 MB, so I've set that as the configurable default switching threshold. Performance of this approach seems to improve with dataset size. Exporting an 800 MB dataframe took about 55 seconds via parquet versus about 429 seconds via the old method, so we get over 7x speedup. We can take a similar approach to speed up pandas_backend_df.move_to('snowflake'). Here are benchmark results with a 3XL warehouse: <img width="571" height="432" alt="to_snowflake_timing_2" src="https://github.com/user-attachments/assets/0f652f6e-4510-4a94-9a75-028f5e09f2b0" /> Signed-off-by: sfc-gh-mvashishtha <mahesh.vashishtha@snowflake.com> Co-authored-by: Jonathan Shi <149419494+sfc-gh-joshi@users.noreply.github.com>
Signed-off-by: sfc-gh-mvashishtha <mahesh.vashishtha@snowflake.com>
870c417 to
81b505f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.