Hi @Gilg , The APPLY_CHANGES
operation in Delta Lake does not provide metrics for the number of rows that were upserted in the graph. This limitation is mentioned in the Delta Lake documentation under the "Limitations" section.
Here are the relevant limitations mentioned in the documentation:- Metrics for the target table, such as the number of output rows, are not available.
- SCD type 2 updates will add a history row for every input row, even if no columns have changed.
- The target of the APPLY CHANGES INTO
query or apply_changes
function cannot be used as a source for a streaming table. A table that reads from the target of an APPLY CHANGES INTO
query or apply_changes
function must be a live table.
- Expectations are not supported in an APPLY CHANGES INTO
query or apply_changes()
function.