@@ -181,6 +181,7 @@ def test_from_api_repr_hive_partitioning(self):
181181 "hivePartitioningOptions" : {
182182 "sourceUriPrefix" : "http://foo/bar" ,
183183 "mode" : "STRINGS" ,
184+ "requirePartitionFilter" : True ,
184185 },
185186 },
186187 )
@@ -194,6 +195,7 @@ def test_from_api_repr_hive_partitioning(self):
194195 )
195196 self .assertEqual (ec .hive_partitioning .source_uri_prefix , "http://foo/bar" )
196197 self .assertEqual (ec .hive_partitioning .mode , "STRINGS" )
198+ self .assertEqual (ec .hive_partitioning .require_partition_filter , True )
197199
198200 # converting back to API representation should yield the same result
199201 got_resource = ec .to_api_repr ()
@@ -210,6 +212,7 @@ def test_to_api_repr_hive_partitioning(self):
210212 hive_partitioning = external_config .HivePartitioningOptions ()
211213 hive_partitioning .source_uri_prefix = "http://foo/bar"
212214 hive_partitioning .mode = "STRINGS"
215+ hive_partitioning .require_partition_filter = False
213216
214217 ec = external_config .ExternalConfig ("FORMAT_FOO" )
215218 ec .hive_partitioning = hive_partitioning
@@ -221,6 +224,7 @@ def test_to_api_repr_hive_partitioning(self):
221224 "hivePartitioningOptions" : {
222225 "sourceUriPrefix" : "http://foo/bar" ,
223226 "mode" : "STRINGS" ,
227+ "requirePartitionFilter" : False ,
224228 },
225229 }
226230 self .assertEqual (got_resource , expected_resource )
0 commit comments