Yicong-Huang opened a new pull request, #53240:
URL: https://github.com/apache/spark/pull/53240

   ### Why are the changes needed?
   
   There are no examples showing how to use `DataFrame.asTable()` and 
`TableArg` features. These examples are essential for users to understand how 
to:
   - Convert DataFrames to table arguments for use in TVFs/UDTFs
   - Control data partitioning and ordering when passing DataFrames as table 
arguments
   - Use the various methods available on `TableArg` instances
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes, this is a documentation-only change that adds examples to the public 
API documentation. No functional changes are introduced.
   
   ### How was this patch tested?
   
   The examples follow the same patterns used in existing test cases 
(`test_udtf.py`). The examples are written in doctest format and should be 
validated when running doctests.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Co-Generated-by: Cursor


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to