Skip to content

Conversation

@uros-db
Copy link
Contributor

@uros-db uros-db commented Nov 19, 2025

What changes were proposed in this pull request?

Make a few updates to ST functions in PySpark:

  • Remove alias result.
  • Separate examples.

Why are the changes needed?

Improve clarity.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Existing tests suffice.

python/run-tests --testnames pyspark.sql.functions.builtin

Was this patch authored or co-authored using generative AI tooling?

No.

Copy link
Contributor Author

@uros-db uros-db left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zhengruifeng @HyukjinKwon Please review.

These changes are following up on a few comments from another related PR:

@uros-db
Copy link
Contributor Author

uros-db commented Nov 19, 2025

@zhengruifeng Please merge into master & 4.1 (if possible).

@HyukjinKwon
Copy link
Member

Merged to master and branch-4.1.

HyukjinKwon pushed a commit that referenced this pull request Nov 19, 2025
… in PySpark

### What changes were proposed in this pull request?
Make a few updates to ST functions in PySpark:

- Remove alias `result`.
- Separate examples.

### Why are the changes needed?
Improve clarity.

### Does this PR introduce _any_ user-facing change?
No.

### How was this patch tested?
Existing tests suffice.

```
python/run-tests --testnames pyspark.sql.functions.builtin
```

### Was this patch authored or co-authored using generative AI tooling?
No.

Closes #53125 from uros-db/geo-pyspark-st-examples.

Authored-by: Uros Bojanic <uros.bojanic@databricks.com>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
(cherry picked from commit ee0f692)
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
@dongjoon-hyun
Copy link
Member

Thank you for this follow-up, @uros-db , @zhengruifeng , @HyukjinKwon .

huangxiaopingRD pushed a commit to huangxiaopingRD/spark that referenced this pull request Nov 25, 2025
… in PySpark

### What changes were proposed in this pull request?
Make a few updates to ST functions in PySpark:

- Remove alias `result`.
- Separate examples.

### Why are the changes needed?
Improve clarity.

### Does this PR introduce _any_ user-facing change?
No.

### How was this patch tested?
Existing tests suffice.

```
python/run-tests --testnames pyspark.sql.functions.builtin
```

### Was this patch authored or co-authored using generative AI tooling?
No.

Closes apache#53125 from uros-db/geo-pyspark-st-examples.

Authored-by: Uros Bojanic <uros.bojanic@databricks.com>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants