generate sample(synthetic data ) in avro format based on avdl file using python

23 Views Asked by At

I would like to generate synthetic data to test my pipelines. is there a simple way to generate sample avro files for a given avdl file using Python?

1

There are 1 best solutions below

0
Scott On

You can do this in fastavro using the generate_many helper. There is an example in the docs: https://fastavro.readthedocs.io/en/latest/utils.html#fastavro.utils.generate_many