-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-46472][PYTHON][DOCS] Refine docstring of array_prepend/array_append/array_insert
#44436
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
Conversation
.github/workflows/build_and_test.yml
Outdated
| SKIP_PACKAGING: true | ||
| METASPACE_SIZE: 1g | ||
| BRANCH: ${{ inputs.branch }} | ||
| SPARK_ANSI_SQL_MODE: true |
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.
Check ansi is true , will revert this file after the test passes.
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.
zhengruifeng
left a comment
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 for working on this
| >>> df = spark.createDataFrame([(['a', 'b', 'c'],)], ['data']) | ||
| >>> df.select(sf.array_insert(df.data, 2, sf.lit(None).cast(StringType())) | ||
| ... .alias("result")).show() | ||
| +---------------+ |
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.
|
Merged into master for Spark 4.0. Thanks @HyukjinKwon @zhengruifeng |


What changes were proposed in this pull request?
This pr refine docstring of
array_prepend/array_append/array_insertand add some new examples.Why are the changes needed?
To improve PySpark documentation
Does this PR introduce any user-facing change?
No
How was this patch tested?
Pass Github Actions
Was this patch authored or co-authored using generative AI tooling?
No