AngersZhuuuu opened a new pull request #31679:
URL: https://github.com/apache/spark/pull/31679


   ### What changes were proposed in this pull request?
   For command `CreateTableAsSelect` we use `InsertIntoHiveTable`, 
`InsertIntoHadoopFsRelationCommand` to insert data.
   We will update metrics of  `InsertIntoHiveTable`, 
`InsertIntoHadoopFsRelationCommand`  in `FileFormatWriter.write()`, but we only 
show CreateTableAsSelectCommand in WebUI SQL Tab.
   We need to update `CreateTableAsSelectCommand`'s metrics too.
   
   Before this PR:
   
![image](https://user-images.githubusercontent.com/46485123/109411226-81f44480-79db-11eb-99cb-b9686b15bf61.png)
   
   After this PR:
   
![image](https://user-images.githubusercontent.com/46485123/109411232-8ae51600-79db-11eb-9111-3bea0bc2d475.png)
   
   
   
   ### Why are the changes needed?
   Complete SQL Metrics
   
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   ### How was this patch tested?
   <!--
   MT


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

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