Overview of Databricks Labs Data Generator (dbldatagen)
masterThe Databricks Labs Data Generator (dbldatagen) is a Spark-based Python library designed to generate realistic synthetic data at scale. It leverages Spark DataFrames and Spark SQL to produce data that can be written to various storage formats, saved as Delta tables, or manipulated using standard Spark APIs.
Key capabilities include:
- Generating billions of rows of data efficiently using Spark clusters.
- Specifying row counts and Spark partition counts for distribution.
- Controlling data via numeric, time, and date ranges.
- Using random or repeatable seed values (including weighting for discrete values).
- Template-based text generation and string formatting.
- Using SQL-based expressions to control or augment column generation.
- Supporting Delta Live Tables (DLT) for both streaming and batch operations.
- Supporting Unity Catalog enabled clusters.
- Providing pluggable standard datasets for quick prototyping.