QuestionQ142

VerifiedDevelopment and Ingestion

A team uses a Databricks workspace and must continuously ingest JSON files as they arrive.

Which code snippet demonstrates a valid Auto Loader source configuration?

Explanation

Auto Loader uses spark.readStream.format("cloudFiles") and requires the cloudFiles.format option to specify the source file format, such as json; load identifies the directory containing the arriving files. This is the documented Auto Loader configuration pattern.

Learn more

Community Discussion

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