wangyum opened a new pull request, #55510:
URL: https://github.com/apache/spark/pull/55510

   ### What changes were proposed in this pull request?
   This PR modifies the physical execution nodes for DataSourceV2 write 
operations (such as `AppendDataExec`, `OverwriteByExpressionExec`, 
`OverwritePartitionsDynamicExec`, `ReplaceDataExec`, and `WriteDeltaExec`) to 
accept and store the destination `tableName`. It then updates the `nodeName` 
property in the base `V2ExistingTableWriteExec` trait to include this table 
name in its output.
   
   ### Why are the changes needed?
   To improve observability and debuggability in the Spark SQL UI and Explain 
plans. Previously, V2 write nodes were displayed generically (e.g., 
`AppendData`). With this change, the UI will explicitly show the context of the 
write operation (e.g., `AppendData catalog.namespace.table_name`), making it 
much easier for users to understand which tables are being modified.
   
   ### Does this PR introduce _any_ user-facing change?
   No.
   
   ### How was this patch tested?
   Unit test and manual test:
   <img width="630" height="146" alt="image" 
src="https://github.com/user-attachments/assets/f4c20e16-9b59-4e1f-ae15-5017ba04a234";
 />
   
   
   ### Was this patch authored or co-authored using generative AI tooling?
   No.


-- 
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