Comments (1)
Hi
The way to specify how the data is generated for nested structures is to create temporary fields and generate the values for them and then combine the generated fields into the desired structure. You cant refer to a nested field in the data generation rules at present.
See the following documentation page for more information: https://databrickslabs.github.io/dbldatagen/public_docs/generating_json_data.html#generating-complex-column-data
I'll update the documentation to provide some clearer examples when creating the data using an existing schema
from dbldatagen.
Related Issues (20)
- Distribution functions (and perhaps others) not compatible with Databricks UC Clusters operating in `shared` mode HOT 4
- Setuptools need to include required packages for working with the library locally (outside of the databricks environment) HOT 2
- Improve build ordering dependencies
- Changed interim build labelling to comply with PEP 440 HOT 1
- DblDatagenerator causes global logger to issue messages twice in some circumstances HOT 9
- Allow precision and scale options to apply to any numeric type
- When generating array valued column generation spec, use different random seed for each element
- Support range of values for generating array valued columns
- ArrayType(StringType()) columns result in Null column, doesn't take values from `values` argument HOT 2
- Reference Previous Rows HOT 3
- Add support for constraints
- Add support for structured columns HOT 1
- Document recommended Databricks runtime releases for Unity Catalog
- Using Databricks Labs Data Generator on Databricks Runtime 14.x
- DBLDatagen broken on 14.3LTS Shared Cluster HOT 2
- Upgrade this lib to be compatible with Spark Connect HOT 1
- Create some pre-canned standard datasets like the h20 groupby dataset HOT 2
- Random number generation not generating random data unless `maxValue` is specified or is implied from other options
- Compatibility Issue: dbldatagen DataAnalyzer Not Accepting Spark Connect DataFrame HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dbldatagen.