Commit 0ee1c34
authored
1. Which Jira issue is this PR addressing? Make sure that there is an
accompanying issue to your PR.
Fixes SNOW-1857250
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.
Fixed the AST generation where columns where recorded as literals
instead of column parameters and parameters were being rearranged in
some cases.
This change gets rid of a lot of unnecessary `col()` in the unparsed
code; this helps match the unparser code with the original code.
1 parent 33a176d commit 0ee1c34
File tree
3 files changed
+105
-250
lines changed- src/snowflake/snowpark
- tests/ast/data
3 files changed
+105
-250
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
753 | 753 | | |
754 | 754 | | |
755 | 755 | | |
756 | | - | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
757 | 766 | | |
758 | 767 | | |
759 | | - | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
760 | 773 | | |
761 | 774 | | |
762 | 775 | | |
763 | 776 | | |
764 | 777 | | |
765 | 778 | | |
766 | | - | |
| 779 | + | |
| 780 | + | |
767 | 781 | | |
768 | 782 | | |
769 | 783 | | |
| |||
889 | 903 | | |
890 | 904 | | |
891 | 905 | | |
892 | | - | |
| 906 | + | |
893 | 907 | | |
894 | 908 | | |
895 | 909 | | |
| |||
4331 | 4345 | | |
4332 | 4346 | | |
4333 | 4347 | | |
4334 | | - | |
| 4348 | + | |
| 4349 | + | |
| 4350 | + | |
| 4351 | + | |
| 4352 | + | |
| 4353 | + | |
4335 | 4354 | | |
4336 | 4355 | | |
4337 | 4356 | | |
| |||
4354 | 4373 | | |
4355 | 4374 | | |
4356 | 4375 | | |
4357 | | - | |
| 4376 | + | |
| 4377 | + | |
| 4378 | + | |
| 4379 | + | |
| 4380 | + | |
| 4381 | + | |
| 4382 | + | |
| 4383 | + | |
4358 | 4384 | | |
4359 | 4385 | | |
4360 | 4386 | | |
| |||
0 commit comments