QuestionQ255

VerifiedProductionizing Data Pipelines

A data engineer is troubleshooting a slow stage using the Databricks Spark UI. Scrolling down to the Summary Metrics section, which shows task duration statistics, the engineer observes the following for that stage:

  • 25th percentile duration: 40 seconds
  • Median duration: 45 seconds
  • 75th percentile duration: 50 seconds
  • Max duration: 80 seconds

What is the correct interpretation of these metrics?

Explanation

The 25th, median, and 75th percentile durations are close together (40–50 seconds), showing that the majority of tasks complete in a similar amount of time. The maximum duration of 80 seconds is far above the 75th percentile, meaning at least one task (or a small subset) took substantially longer than the rest. This pattern—a tight interquartile spread with a much larger outlier maximum—is the typical signal of data skew, where a small number of partitions hold disproportionately more data or require more processing than the others, causing those specific tasks to lag behind while most tasks finish on time.

Learn more

Community Discussion

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