Commit 4fb3b33
<!---
Please answer these questions before creating your pull request. Thanks!
--->
1. Which Jira issue is this PR addressing? Make sure that there is an
accompanying issue to your PR.
<!---
In this section, please add a Snowflake Jira issue number.
Note that if a corresponding GitHub issue exists, you should still
include
the Snowflake Jira issue number. For example, for GitHub issue
#1400, you should
add "SNOW-1335071" here.
--->
Fixes SNOW-1871355
2. Fill out the following pre-review checklist:
- [ ] I am adding a new automated test(s) to verify correctness of my
new code
- [ ] If this test skips Local Testing mode, I'm requesting review from
@snowflakedb/local-testing
- [ ] I am adding new logging messages
- [ ] I am adding a new telemetry message
- [ ] I am adding new credentials
- [ ] I am adding a new dependency
- [ ] If this is a new feature/behavior, I'm adding the Local Testing
parity changes.
- [x] I acknowledge that I have ensured my changes to be thread-safe.
Follow the link for more information: [Thread-safe Developer
Guidelines](https://github.com/snowflakedb/snowpark-python/blob/main/CONTRIBUTING.md#thread-safe-development)
3. Please describe how your code solves the related issue.
Having COMPATIBLE_WITH_MODIN defined in utils.py causes conftest to fail
some stored procedure Snowfort tests when the version of snowpark-python
imported by the stored procedure is older than the version of the tests
being run (the tests files are cloned directly from GitHub and seem to
pull the latest version, whereas some stored procedures are run in older
python versions and have older versions of snowpark-python). Moving the
definition of COMPATIBLE_WITH_MODIN into conftest avoids this issue and
maintains backwards compatibility.
The failure is because `COMPATIBLE_WITH_MODIN` is not defined in
[snowflake/snowpark/_internal/utils.py](https://github.com/snowflakedb/snowpark-python/blob/release-v1.25.0/src/snowflake/snowpark/_internal/utils.py)
for version 1.25.0 which is what the stored proc is running, since it is
on python 3.8, and that's the latest version of snowpark-python
available for 3.8.
Co-authored-by: Jonathan Shi <[email protected]>
1 parent 1ed17cc commit 4fb3b33
2 files changed
+5
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
| |||
1392 | 1391 | | |
1393 | 1392 | | |
1394 | 1393 | | |
1395 | | - | |
1396 | | - | |
1397 | | - | |
1398 | | - | |
1399 | 1394 | | |
1400 | 1395 | | |
1401 | 1396 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
23 | 27 | | |
24 | 28 | | |
25 | 29 | | |
| |||
0 commit comments