Skip to content

SNOW-2912540: add IS_V5_DRIVER constant for version-conditioned connector imports - #4310

Draft
sfc-gh-fpawlowski wants to merge 1 commit into
SNOW-2912540-decouple-oob-telemetryfrom
SNOW-2912540-is-v5-driver-constant
Draft

SNOW-2912540: add IS_V5_DRIVER constant for version-conditioned connector imports#4310
sfc-gh-fpawlowski wants to merge 1 commit into
SNOW-2912540-decouple-oob-telemetryfrom
SNOW-2912540-is-v5-driver-constant

Conversation

@sfc-gh-fpawlowski

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

Copy link
Copy Markdown

Adds a module-level boolean IS_V5_DRIVER to _internal/utils.py alongside the existing connector_version import:

IS_V5_DRIVER: bool = connector_version[0] >= 5

Provides a single canonical place for code that needs to branch on connector generation (legacy v3/v4 vs Universal Driver v5+) — e.g. conditional imports, feature flags, or compatibility shims that will eventually be deleted.


Stack (via Graphite)

🤖 Generated with Claude Code

…ctor imports

connector_version is already imported in utils.py; this one-liner exposes a
boolean flag so callers can gate imports or behavior that differs between the
legacy connector (v3/v4) and the Universal Driver (v5+).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant