User16653924625
Databricks Employee
Databricks Employee

in case someone is looking for purely SQL based solution: (add LIMIT 1 to the query if you are looking for last op only)

 

select t.timestamp, t.operation, t.operationMetrics.numOutputRows as numOutputRows
from (
DESCRIBE HISTORY <catalog>.<schema>.<table>
) t
where t.operation like "%INSERT%"
order by t.timestamp desc