Commit 051d837
authored
SNOW-1877144: Use only small values in dummy input for type inference (#2839)
<!---
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-1877144
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.
- [ ] 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.
Use only small dummy values here to avoid the risk of certain callables
taking a long time to execute (where execution time is a function of the
input value).
As a downside this reduces diversity in input data so will reduce the
effectiveness
type inference framework in some rare cases.1 parent 98330fa commit 051d837
1 file changed
+6
-8
lines changedLines changed: 6 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
842 | 842 | | |
843 | 843 | | |
844 | 844 | | |
845 | | - | |
846 | | - | |
847 | | - | |
848 | | - | |
849 | | - | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
850 | 850 | | |
851 | | - | |
852 | | - | |
853 | | - | |
| 851 | + | |
854 | 852 | | |
855 | 853 | | |
856 | 854 | | |
| |||
0 commit comments