Skip to content

Fix: Import validation for the snowflake connection config#4723

Merged
izeigerman merged 1 commit intomainfrom
fix-snowflake-import-validation
Jun 13, 2025
Merged

Fix: Import validation for the snowflake connection config#4723
izeigerman merged 1 commit intomainfrom
fix-snowflake-import-validation

Conversation

@izeigerman
Copy link
Copy Markdown
Collaborator

I've noticed that the top-level snowflake import is sometimes not enough to accurately conclude whether the required library has been installed or not.

Additionally, rearranged the model validators so that the import validator always runs first.

@izeigerman izeigerman requested a review from a team June 11, 2025 19:13
Comment on lines +569 to +571
_engine_import_validator = _get_engine_import_validator(
"snowflake.connector.network", "snowflake"
)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FMI, how does moving this affect the execution / validation order? Asking based on this bit in the description:

Additionally, rearranged the model validators so that the import validator always runs first.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We want this to run before _validate_authenticator which uses the imports

@izeigerman izeigerman merged commit 2efe428 into main Jun 13, 2025
25 checks passed
@izeigerman izeigerman deleted the fix-snowflake-import-validation branch June 13, 2025 00:08
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.

2 participants