-
Notifications
You must be signed in to change notification settings - Fork 28.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SPARK-49552][PYTHON] Add DataFrame API support for new 'randstr' and 'uniform' SQL functions #48143
base: master
Are you sure you want to change the base?
Conversation
respond to code review comments respond to code review comments respond to code review comments
cc @HyukjinKwon @MaxGekk here is the DataFrame support for the new |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @zhengruifeng for your review! Responded to your comments, please take another look.
+------+ | ||
| ceV0P| | ||
+------+ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: we normally don't include an empty line at the end of the docstring
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good, this is done.
+------+ | ||
| 7| | ||
+------+ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good, this is done.
What changes were proposed in this pull request?
In #48004 we added new SQL functions
randstr
anduniform
. This PR adds DataFrame API support for them.For example, in Scala:
Why are the changes needed?
This improves DataFrame parity with the SQL API.
Does this PR introduce any user-facing change?
Yes, see above.
How was this patch tested?
This PR adds unit test coverage.
Was this patch authored or co-authored using generative AI tooling?
No.