Skip to content

SNOW-2912540: remove _pandas_importer(), dedup mock/_options.py numpy handling - #4317

Closed
sfc-gh-fpawlowski wants to merge 2 commits into
graphite-base/4317from
SNOW-2912540-remove-pandas-importer
Closed

SNOW-2912540: remove _pandas_importer(), dedup mock/_options.py numpy handling#4317
sfc-gh-fpawlowski wants to merge 2 commits into
graphite-base/4317from
SNOW-2912540-remove-pandas-importer

Conversation

@sfc-gh-fpawlowski

@sfc-gh-fpawlowski sfc-gh-fpawlowski commented Aug 15, 2026

Copy link
Copy Markdown

Summary

Still open: UD PRs #1151 and #1152 are both draft/unreviewed/unmerged. This PR's IS_V5_DRIVER=True path is written against their current source but unverifiable end-to-end (wheel build + install) until they merge.

Test plan

🤖 Generated with Claude Code

…as from connector

_pandas_importer() predates this whole effort and duplicated resolution the
connector already does correctly on both driver generations -- including the
"relative imports without dots" DataFrame workaround, now folded into UD's
own _common.extras.pandas (confirmed on the not-yet-merged UD PR #1151/#1152;
v4's options.py already had it). Add pandas/installed_pandas to the existing
IS_V5_DRIVER-gated import block and delete the local resolution entirely.

Verified the workaround isn't needed on Snowpark's side by running the exact
invocation style its comment called out (pytest with tests/unit/ as cwd) --
no failure, consistent with both driver generations now handling it
internally.
….extras

mock/_options.py's MissingNumpy/numpy try-except was functionally identical
to _common/extras.py's own numpy resolution (confirmed: pure duplicate, no
fix to merge, per UD PR #1152's investigation). Import numpy from
_common.extras on v5; v4 keeps its own MissingNumpy class since v4's
options.py has no numpy handling to delegate to.

Does not touch the pandas try/except in this file -- Local Testing
deliberately never resolves pyarrow, unlike every other pandas-resolution
path in this codebase (commit #1628).
@sfc-gh-fpawlowski sfc-gh-fpawlowski changed the title SNOW-2912540: remove _pandas_importer(), source pandas/installed_pandas from connector SNOW-2912540: remove _pandas_importer(), dedup mock/_options.py numpy handling Aug 15, 2026
@sfc-gh-fpawlowski
sfc-gh-fpawlowski changed the base branch from SNOW-2912540-request-id-compat to graphite-base/4317 August 15, 2026 12:01
@sfc-gh-fpawlowski

Copy link
Copy Markdown
Author

Folded into #4314 — the diff was small enough to just be part of the parent PR.

@github-actions github-actions Bot locked and limited conversation to collaborators Aug 15, 2026
@sfc-gh-fpawlowski
sfc-gh-fpawlowski deleted the SNOW-2912540-remove-pandas-importer branch August 15, 2026 12:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant