Commit 158a132
[SPARK-54399][GEO][SQL][PYTHON] Implement the st_setsrid function in Scala and PySpark
### What changes were proposed in this pull request?
Implement the `st_setsrid` function in Scala and PySpark API.
### Why are the changes needed?
Expand API support for the `ST_SetSrid` expression.
### Does this PR introduce _any_ user-facing change?
Yes, the new function is now available in Scala and PySpark API.
### How was this patch tested?
Added appropriate Scala function unit tests:
- `STFunctionsSuite`
Added appropriate PySpark function unit tests:
- `test_functions`
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes apache#53117 from uros-db/geo-ST_SetSrid-scala.
Authored-by: Uros Bojanic <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>1 parent ee0f692 commit 158a132
File tree
7 files changed
+101
-1
lines changed- python
- docs/source/reference/pyspark.sql
- pyspark/sql
- connect/functions
- functions
- tests
- sql
- api/src/main/scala/org/apache/spark/sql
- core/src/test/scala/org/apache/spark/sql
7 files changed
+101
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
678 | 678 | | |
679 | 679 | | |
680 | 680 | | |
| 681 | + | |
681 | 682 | | |
682 | 683 | | |
683 | 684 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4969 | 4969 | | |
4970 | 4970 | | |
4971 | 4971 | | |
| 4972 | + | |
| 4973 | + | |
| 4974 | + | |
| 4975 | + | |
| 4976 | + | |
| 4977 | + | |
| 4978 | + | |
| 4979 | + | |
| 4980 | + | |
4972 | 4981 | | |
4973 | 4982 | | |
4974 | 4983 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
544 | 544 | | |
545 | 545 | | |
546 | 546 | | |
| 547 | + | |
547 | 548 | | |
548 | 549 | | |
549 | 550 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26143 | 26143 | | |
26144 | 26144 | | |
26145 | 26145 | | |
| 26146 | + | |
| 26147 | + | |
| 26148 | + | |
| 26149 | + | |
| 26150 | + | |
| 26151 | + | |
| 26152 | + | |
| 26153 | + | |
| 26154 | + | |
| 26155 | + | |
| 26156 | + | |
| 26157 | + | |
| 26158 | + | |
| 26159 | + | |
| 26160 | + | |
| 26161 | + | |
| 26162 | + | |
| 26163 | + | |
| 26164 | + | |
| 26165 | + | |
| 26166 | + | |
| 26167 | + | |
| 26168 | + | |
| 26169 | + | |
| 26170 | + | |
| 26171 | + | |
| 26172 | + | |
| 26173 | + | |
| 26174 | + | |
| 26175 | + | |
| 26176 | + | |
| 26177 | + | |
| 26178 | + | |
26146 | 26179 | | |
26147 | 26180 | | |
26148 | 26181 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2974 | 2974 | | |
2975 | 2975 | | |
2976 | 2976 | | |
| 2977 | + | |
| 2978 | + | |
| 2979 | + | |
| 2980 | + | |
| 2981 | + | |
| 2982 | + | |
| 2983 | + | |
| 2984 | + | |
| 2985 | + | |
| 2986 | + | |
| 2987 | + | |
| 2988 | + | |
| 2989 | + | |
| 2990 | + | |
| 2991 | + | |
| 2992 | + | |
| 2993 | + | |
| 2994 | + | |
| 2995 | + | |
2977 | 2996 | | |
2978 | 2997 | | |
2979 | 2998 | | |
| |||
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9471 | 9471 | | |
9472 | 9472 | | |
9473 | 9473 | | |
| 9474 | + | |
| 9475 | + | |
| 9476 | + | |
| 9477 | + | |
| 9478 | + | |
| 9479 | + | |
| 9480 | + | |
| 9481 | + | |
| 9482 | + | |
| 9483 | + | |
| 9484 | + | |
| 9485 | + | |
| 9486 | + | |
| 9487 | + | |
| 9488 | + | |
| 9489 | + | |
| 9490 | + | |
| 9491 | + | |
9474 | 9492 | | |
9475 | 9493 | | |
9476 | 9494 | | |
| |||
Lines changed: 20 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
62 | 80 | | |
63 | 81 | | |
64 | 82 | | |
| |||
68 | 86 | | |
69 | 87 | | |
70 | 88 | | |
71 | | - | |
| 89 | + | |
| 90 | + | |
72 | 91 | | |
73 | 92 | | |
74 | 93 | | |
| |||
0 commit comments