snowflakedb / snowflakedb/snowflake-connector-python

SNOW-757724: Ability to change the encoding while reading the data from Snowflake

Open
#1,471 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature status-triage_done triaged
Dominant language
Python
Stars
730
Forks
574
Avg merge
5h 45m
Merged PRs (30d)
16

Description

What is the current behavior?

Currently, we can do df = conn.cursor().execute("""Query""").fetch_pandas_all() with conn being the snowflake.connector.connect()

What is the desired behavior?

The desired behavior is to have an argument where one can determine/change the encoding of the data that is stored in the resulting pd.DataFrame

How would this improve snowflake-connector-python?

Similar to pd.read_csv(encoding=) this makes it easier for users to determine/change the encoding of the data.

References, Other Background

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the snowflake.connector.connect() cursor flow ending in fetch_pandas_all(), and compare the requested behavior with pandas read_csv(encoding=). Clarify which encoding values and data paths are in scope, then add coverage showing that the resulting pd.DataFrame uses the selected encoding; the work is done when this option is documented and tested.

Written by the indexing model from the issue text.

Assessment

Tech stack
pandas, python
Domain
databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.