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

SNOW-1342665: Set use_logical_type=True for write_pandas #1955

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions DESCRIPTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ Source code is also available at: https://github.com/snowflakedb/snowflake-conne

# Release Notes

- v 4.0.0(TBD)

- Changed behavior of `write_pandas` by:

- `use_logical_type` set to `True` by default. With this, Snowflake can interpret Parquet logical types during data loading by default.

- v3.11.0(TBD)

- Added support for `token_file_path` connection parameter to read an OAuth token from a file when connecting to Snowflake.
Expand Down
2 changes: 1 addition & 1 deletion src/snowflake/connector/pandas_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def write_pandas(
create_temp_table: bool = False,
overwrite: bool = False,
table_type: Literal["", "temp", "temporary", "transient"] = "",
use_logical_type: bool | None = None,
use_logical_type: bool | None = True,
**kwargs: Any,
) -> tuple[
bool,
Expand Down
Loading