Generate Spark DataFrames
Use the Spark engine when running in a Spark-capable notebook or cluster.
df = generate_from_schema(
schema="id int, customer_name string, created_at timestamp",
rows=100000,
engine="spark",
)
Spark and lakehouse
Spark support is optional and is designed for environments where PySpark is already available.
Great Generator creates synthetic data. It does not anonymize, mask, de-identify, or transform production records.
Use the Spark engine when running in a Spark-capable notebook or cluster.
df = generate_from_schema(
schema="id int, customer_name string, created_at timestamp",
rows=100000,
engine="spark",
)
Great Generator returns DataFrames so the user controls the destination and format.
df.write.mode("overwrite").parquet("s3://bucket/demo/customers")
df.write.format("delta").mode("overwrite").save("dbfs:/tmp/customers_delta")
Large outputs depend on the user environment, memory, cluster size, and storage configuration. For very large datasets, Spark-native generation or chunking is recommended.
Related documentation