@@ -24,6 +24,7 @@ def setUpClass(cls) -> None:
2424 {"name" : 'colour' , "type" : "character varying" },
2525 {"name" : 'timestamp_ntz' , "type" : "timestamp without time zone" },
2626 {"name" : 'timestamp_tz' , "type" : "timestamp with time zone" },
27+ {"name" : 'int_range' , "type" : "int4range" },
2728 ],
2829 "name" : cls .table_name }
2930
@@ -53,19 +54,22 @@ def test_logical_replication(self):
5354 'name' : 'betty' ,
5455 'colour' : 'blue' ,
5556 'timestamp_ntz' : '2020-09-01 10:40:59' ,
56- 'timestamp_tz' : '2020-09-01 00:50:59+02'
57+ 'timestamp_tz' : '2020-09-01 00:50:59+02' ,
58+ 'int_range' : '[1,2)' ,
5759 },
5860 {
5961 'name' : 'smelly' ,
6062 'colour' : 'brown' ,
6163 'timestamp_ntz' : '2020-09-01 10:40:59 BC' ,
62- 'timestamp_tz' : '2020-09-01 00:50:59+02 BC'
64+ 'timestamp_tz' : '2020-09-01 00:50:59+02 BC' ,
65+ 'int_range' : '[2,5)' ,
6366 },
6467 {
6568 'name' : 'pooper' ,
6669 'colour' : 'green' ,
6770 'timestamp_ntz' : '30000-09-01 10:40:59' ,
68- 'timestamp_tz' : '10000-09-01 00:50:59+02'
71+ 'timestamp_tz' : '10000-09-01 00:50:59+02' ,
72+ 'int_range' : '[100,)' ,
6973 }
7074 ]
7175
@@ -101,6 +105,7 @@ def test_logical_replication(self):
101105 'name' : 'betty' ,
102106 'timestamp_ntz' : '2020-09-01T10:40:59+00:00' ,
103107 'timestamp_tz' : '2020-08-31T22:50:59+00:00' ,
108+ 'int_range' : {'lower' : 1 , 'upper' : 2 , 'bounds' : '[)' },
104109 },
105110 'time_extracted' : unittest .mock .ANY ,
106111 'version' : unittest .mock .ANY
@@ -114,6 +119,7 @@ def test_logical_replication(self):
114119 'name' : 'smelly' ,
115120 'timestamp_ntz' : '9999-12-31T23:59:59.999000+00:00' ,
116121 'timestamp_tz' : '9999-12-31T23:59:59.999000+00:00' ,
122+ 'int_range' : {'lower' : 2 , 'upper' : 5 , 'bounds' : '[)' },
117123 },
118124 'time_extracted' : unittest .mock .ANY ,
119125 'version' : unittest .mock .ANY
@@ -127,6 +133,7 @@ def test_logical_replication(self):
127133 'name' : 'pooper' ,
128134 'timestamp_ntz' : '9999-12-31T23:59:59.999000+00:00' ,
129135 'timestamp_tz' : '9999-12-31T23:59:59.999000+00:00' ,
136+ 'int_range' : {'lower' : 100 , 'upper' : None , 'bounds' : '[)' },
130137 },
131138 'time_extracted' : unittest .mock .ANY ,
132139 'version' : unittest .mock .ANY
@@ -175,6 +182,7 @@ def test_logical_replication(self):
175182 'name' : 'betty' ,
176183 'timestamp_ntz' : '2020-09-01T10:40:59+00:00' ,
177184 'timestamp_tz' : '2020-08-31T22:50:59+00:00' ,
185+ 'int_range' : '[1,2)' ,
178186 },
179187 'time_extracted' : unittest .mock .ANY ,
180188 'version' : unittest .mock .ANY ,
@@ -190,6 +198,7 @@ def test_logical_replication(self):
190198 'nice_flag' : False ,
191199 'timestamp_ntz' : '2022-09-01T10:40:59+00:00' ,
192200 'timestamp_tz' : '9999-12-31T23:59:59.999+00:00' ,
201+ 'int_range' : None ,
193202 },
194203 'time_extracted' : unittest .mock .ANY ,
195204 'version' : unittest .mock .ANY ,
0 commit comments