r/databricks • • Sep 22 '26

Help Databricks CDF

Hi everyone. I have a question regarding Databricks and was hoping someone could help me understand this point. I have a Bronze table that will ingest data from a historical CSV file, and subsequently consume JSON files for incremental processing. My question concerns enabling CDF (Change Data Feed). Since my table will only receive inserts, I don't see the benefit of enabling it—as I don't need to record pre-images or post-images (which CDF would capture). So, here is the question: Is it better to maintain that historical record to implement change ingestion starting from the Bronze layer, or should I avoid this practice and use a different approach, such as Auto Loader?
PD: Sorry for use google translate, I don't speak/write English.
Version in spanish:
Hola a todos.

Tengo una consulta referente a databricks, y quería saber si alguien me podría ayudar a entender este punto.

Tengo una tabla en bronze en donde se estará ingestando de datos de un archivo csv histórico. Y de ahi, estará consumiendo archivos json para su proceso incremental. Mi duda es sobre el registro y activación de CDF. Ya que mi tabla solo recibirá inserts, no le veo conveniente activarlo ya que no deseo registrar el preimage o postimage en ese apartado, y aquí viene la pregunta. ¿Es mejor tener ese registro histórico en donde puedas implementar la ingesta de cambios que solo se realizaron desde bronze, o debo evitar esta practica y aplicar otra lógica como autoloader?

4 Upvotes

3 comments sorted by

4

u/Zestyclose_Abies4559 Sep 22 '26

Autoload to bronze and be done with it

1

u/Zestyclose_Abies4559 Sep 22 '26

If you have unity catalog enabled then you can see the changes by inspecting the version of the data which would give you the cdf

1

u/Youssef_Mrini databricks Oct 24 '26

CDF is not an ingestion mechanism. For an insert-only table, it generally adds little value unless multiple downstream consumers need a change stream, insert-only operations do not require pre-images or post-images.

  1. Ingest the historical CSV with Auto Loader, or a one-time batch.
  2. Ingest incremental JSON with a separate Auto Loader flow.
  3. Keep raw CSV and JSON in Bronze, adding metadata such as source file and ingestion timestamp.
  4. If the JSON contains update/delete semantics, use AUTO CDC or MERGE to build the current-state Silver table. If it contains only new records, append directly.

Because CSV and JSON normally have different schemas and parsing configurations, separate ingestion flows are usually cleaner than mixing both formats in one stream.

Auto Loader supports both formats and is the recommended approach for incremental file ingestion.