Skip to content

Commit

Permalink
use split_blocks=True by default
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-aalam committed Feb 1, 2024
1 parent d1120ad commit f82b0b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/snowflake/snowpark/_internal/server_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,11 +443,11 @@ def _to_data_or_iter(
functools.partial(
_fix_pandas_df_fixed_type, results_cursor=results_cursor
),
results_cursor.fetch_pandas_batches(),
results_cursor.fetch_pandas_batches(split_blocks=True),
)
if to_iter
else _fix_pandas_df_fixed_type(
results_cursor.fetch_pandas_all(), results_cursor
results_cursor.fetch_pandas_all(split_blocks=True), results_cursor
)
)
except NotSupportedError:
Expand Down
4 changes: 2 additions & 2 deletions src/snowflake/snowpark/mock/_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,11 +339,11 @@ def _to_data_or_iter(
functools.partial(
_fix_pandas_df_fixed_type, results_cursor=results_cursor
),
results_cursor.fetch_pandas_batches(),
results_cursor.fetch_pandas_batches(split_blocks=True),
)
if to_iter
else _fix_pandas_df_fixed_type(
results_cursor.fetch_pandas_all(), results_cursor
results_cursor.fetch_pandas_all(split_blocks=True), results_cursor
)
)
except NotSupportedError:
Expand Down

0 comments on commit f82b0b4

Please sign in to comment.