snowflakedb / snowflakedb/snowpark-python

SNOW-767053: Expose function to retrieve Snowflake import directory

Open
#740 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
Python
Stars
341
Forks
155
Avg merge
4d 16h
Merged PRs (30d)
27

Description

Currently, imports must be handled using code such as:

import sys
IMPORT_DIRECTORY_NAME = "snowflake_import_directory"
import_dir = sys._xoptions[IMPORT_DIRECTORY_NAME]

This snippet should be turned into a function, exposed by the library – or a constant if possible, e.g. snowflake.snowpark.IMPORT_DIRECTORY.

See also #639.

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 at the existing sys._xoptions["snowflake_import_directory"] entry point and inspect how public names are exposed from snowflake.snowpark. Confirm whether a function or constant best represents the import directory, and define done as callers no longer needing to access sys._xoptions directly.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, data-engineering
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.