QuestionQ107

VerifiedMonitoring and Alerting

A Databricks SQL dashboard is configured to monitor the total number of records in a collection of Delta Lake tables by using the following query pattern:

SELECT COUNT (*) FROM table -  

Which statement describes how the results are generated whenever the dashboard is updated?

Explanation

For an unfiltered COUNT(*) on Delta Lake, metadata-only aggregation can sum the per-file numRecords statistics recorded for active files in the Delta transaction log. This avoids scanning all data files; the relevant record counts are maintained in Delta log metadata.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!