ZiyaZa opened a new pull request, #57402: URL: https://github.com/apache/spark/pull/57402
### What changes were proposed in this pull request? Creates 2 new APIs for DSv2 connectors to be able to provide command outputs: - `RowLevelOperation.outputSchema()` - The schema of the intended output. - `Write.output()` - The output rows. This PR excludes support for metadata-only DELETEs and Truncate. These will come in a follow-up PR. ### Why are the changes needed? Currently, DML commands do not have any output. Some connectors need to provide users with results. For example, Delta outputs 1 row that contains various metrics about the result of the command. ### Does this PR introduce _any_ user-facing change? Yes, DSv2 API change. ### How was this patch tested? Unit tests via the in-memory table. ### Was this patch authored or co-authored using generative AI tooling? Generated-by: GPT 5.6 Sol -- 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]
