nineinchnick / trino-faker

Trino plugin that generates fake data
Apache License 2.0
14 stars 2 forks source link

Configure default constraints for different data types #22

Open nineinchnick opened 2 years ago

nineinchnick commented 2 years ago

Allow defining default constraints per data type. For example, generating data in the complete range of timestamps usually won't make sense, since it often represents the most recent timeline (last 100 years). Another example is only generating positive integers.

It should be possible to set it config, per schema or per table.

Requires #15, because it's also about parsing an SQL expression string and extracting constraints from it.