Lyrebird · Realistic synthetic test databases, generated fully offline

PostgreSQL · Pagila

payment_p2022_04

Source rows
2,547
Synthetic rows
2,547
Broken foreign keys
0
Rows equal to a source row
0%

This is a partition. Its rows also appear in the parent table.

References: customer_id → customerrental_id → rentalstaff_id → staff

Rows

Both databases, first rows by primary key, in one table: scrolling sideways moves them together. Rows at the same position are unrelated, unless the table holds kept reference data. Long values are cut at 60 characters.

payment_idcustomer_idstaff_idrental_idamountpayment_date
Source database · 12 of 2,547 rows
1606627412084.992022-04-15 12:28:07.452+00:00
1606927424742.992022-04-27 18:46:10.151+00:00
1607427723086.992022-04-04 10:51:07.496+00:00
160912882933.992022-04-26 10:18:58.440+00:00
1609228824276.992022-04-05 13:22:55.687+00:00
1609729127474.992022-04-05 23:50:05.282+00:00
1610529621624.992022-04-21 22:14:50.790+00:00
1610629615115.992022-04-18 06:28:00.951+00:00
1611029719543.992022-04-23 03:59:08.794+00:00
1611129813833.992022-04-11 10:42:36.519+00:00
1611530017803.992022-04-15 08:51:41.751+00:00
1611830122275.992022-04-17 09:00:39.810+00:00
Synthetic database · 12 of 2,547 rows
16062277118622.992022-04-04 09:47:16.275+00:00
16067554111560.992022-04-03 03:43:56.607+00:00
16076179243092.992022-04-09 09:24:46.037+00:00
1608046111277110.992022-04-25 04:13:08.255+00:00
1608432521445110.992022-04-28 01:46:20.515+00:00
1608789159762.992022-04-12 09:00:30.501+00:00
16095120296799.992022-04-19 07:34:13.915+00:00
16102244255682.992022-04-11 16:46:49.599+00:00
161313442142582.992022-04-27 18:54:36.837+00:00
16137227269760.992022-04-14 07:57:15.836+00:00
16144342231314.992022-04-06 22:19:26.107+00:00
161452201159465.992022-04-30 19:09:56.855+00:00

Column by column

Each figure is computed from all rows of both databases in the same way. S is the source, Y the synthetic copy. Difference runs from 0 (same distribution) to 1 (no overlap): Kolmogorov-Smirnov for numbers and times, total variation for columns with few values. Personal columns are meant to differ, so they show how many values also appear in the source instead. Lyrebird draws names from built-in lists, not from the source, so common names can match.

Column Model read it as How it was generated Empty Distinct Range or length Most common Difference
payment_idinteger record key Numbers from the measured histogram S 0%
Y 0%
S 2,547
Y 2,547
S 16066 → 32096
Y 16062 → 32095
S —
Y —
0.024 KS
customer_idinteger record key Foreign key, from the measured relationship S 0%
Y 0%
S 592
Y 591
S 1 → 599
Y 1 → 599
S —
Y —
0.038 KS
staff_idinteger record key Foreign key, from the measured relationship S 0%
Y 0%
S 2
Y 2
S 1 → 2
Y 1 → 2
S 1 50.4% · 2 49.6%
Y 1 50.4% · 2 49.6%
0 KS
rental_idinteger record key Foreign key, from the measured relationship S 0%
Y 0%
S 2,547
Y 2,547
S 4 → 16044
Y 6 → 16044
S —
Y —
0.02 KS
amountnumeric(5,2) monetary amount Source values, at measured frequencies S 0%
Y 0%
S 15
Y 15
S 0 → 11.99
Y 0 → 11.99
S 2.99 23.2% · 4.99 22.8% · 0.99 17.7% · 5.99 7.8% · 3.99 6.9% · 6.99 6.9%
Y 4.99 23.8% · 2.99 21.6% · 0.99 15.9% · 6.99 8.2% · 5.99 8% · 3.99 6.5%
0.037 KS
payment_datetimestamp with time zone lifecycle timestamp Times from the measured distribution S 0%
Y 0%
S 2,547
Y 2,547
S 2022-04-01 00:02:24.640+00:00 → 2022-04-30 23:41:00.471+00:00
Y 2022-04-01 00:02:32.198+00:00 → 2022-04-30 23:30:27.009+00:00
S —
Y —
0.032 KS