There was an error while loading. Please reload this page.
1 parent c3b2172 commit 805ab68Copy full SHA for 805ab68
bad-data.sql
@@ -0,0 +1,4 @@
1
+INSERT INTO customers(id, size, created, distance)
2
+VALUES
3
+ ('C16', 'XML', '2022-08-25 18:02:52', 74),
4
+ ('C01', 'M', '2022-08-25 18:02:52', 74);
customers.contract.yml
@@ -14,7 +14,7 @@ columns:
14
checks:
15
- type: invalid_count
16
valid_values: ['S', 'M', 'L']
17
- must_be_less_than: 10
+ must_be_less_than: 1
18
- name: created
19
data_type: TIMESTAMP
20
- name: distance
data.sql
@@ -1,4 +1,17 @@
INSERT INTO customers(id, size, created, distance)
VALUES
('C01', 'M', '2020-05-20 13:02:52', 74),
- ('C02', 'M', '2021-07-19 13:02:52', 234);
+ ('C02', 'M', '2021-07-19 13:02:52', 234),
5
+ ('C03', 'L', '2022-01-10 10:15:30', 112),
6
+ ('C04', 'S', '2023-03-22 09:45:00', 54),
7
+ ('C05', 'L', '2019-11-05 16:23:10', 298),
8
+ ('C06', 'M', '2021-05-15 08:34:25', 185),
9
+ ('C07', 'L', '2020-08-30 17:50:55', 90),
10
+ ('C08', 'S', '2022-11-21 14:27:38', 123),
11
+ ('C09', 'M', '2018-07-13 11:05:42', 76),
12
+ ('C10', 'S', '2021-12-31 20:18:07', 201),
13
+ ('C11', 'L', '2020-06-18 13:22:43', 110),
+ ('C12', 'M', '2023-02-14 12:30:00', 64),
+ ('C13', 'S', '2019-09-09 07:12:56', 45),
+ ('C14', 'M', '2022-04-17 18:45:12', 320),
+ ('C15', 'M', '2020-12-25 21:05:33', 89);
0 commit comments