QuestionQ169

VerifiedMonitoring and Alerting

A data pipeline uses Structured Streaming to ingest data from Apache Kafka into Delta Lake. Data is stored in a bronze table and includes the Kafka-generated timestamp, key, and value. Three months after the pipeline is deployed, the data engineering team notices latency issues at certain times of day.

A senior data engineer updates the Delta table schema and ingestion logic to include the current timestamp, as recorded by Apache Spark, along with the Kafka topic and partition. The team intends to use these added metadata fields to diagnose the transient processing delays.

Which limitation will the team encounter while diagnosing this problem?

Explanation

Kafka Structured Streaming records expose topic and partition, and Delta tables support additive schema evolution. However, a Spark current timestamp is evaluated when a record is processed; it cannot be reconstructed for rows already written before that ingestion logic existed. Therefore, the newly added diagnostic fields are not computed for historic records.

Learn more

Community Discussion

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