Commit 04218cc
authored
SNOW-2432262: Remove an intermediate column in sample(). (#3898)
The generator expression for sample(replace=True) currently has an extra, unused column representing row position. The column requires a window function, so removing it may improve performance, in addition to making the code clearer.
Signed-off-by: sfc-gh-mvashishtha <[email protected]>1 parent bf0524d commit 04218cc
File tree
1 file changed
+11
-15
lines changed- src/snowflake/snowpark/modin/plugin/compiler
1 file changed
+11
-15
lines changedLines changed: 11 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15834 | 15834 | | |
15835 | 15835 | | |
15836 | 15836 | | |
15837 | | - | |
15838 | | - | |
15839 | | - | |
15840 | | - | |
15841 | | - | |
| 15837 | + | |
| 15838 | + | |
| 15839 | + | |
| 15840 | + | |
| 15841 | + | |
| 15842 | + | |
15842 | 15843 | | |
15843 | 15844 | | |
15844 | 15845 | | |
| |||
15848 | 15849 | | |
15849 | 15850 | | |
15850 | 15851 | | |
15851 | | - | |
15852 | | - | |
15853 | | - | |
15854 | | - | |
15855 | | - | |
15856 | | - | |
15857 | 15852 | | |
15858 | 15853 | | |
15859 | | - | |
| 15854 | + | |
15860 | 15855 | | |
15861 | 15856 | | |
15862 | | - | |
15863 | 15857 | | |
15864 | 15858 | | |
15865 | 15859 | | |
15866 | 15860 | | |
15867 | 15861 | | |
15868 | 15862 | | |
15869 | | - | |
| 15863 | + | |
| 15864 | + | |
| 15865 | + | |
15870 | 15866 | | |
15871 | 15867 | | |
15872 | 15868 | | |
15873 | 15869 | | |
15874 | | - | |
| 15870 | + | |
15875 | 15871 | | |
15876 | 15872 | | |
15877 | 15873 | | |
| |||
0 commit comments