@@ -68,8 +68,6 @@ class MultiTableSalesOrderProvider(DatasetProvider):
6868 INVOICE_MIN_VALUE = 1_000_000
6969
7070 def getCustomers (self , sparkSession : SparkSession , * , rows : int , partitions : int , numCustomers : int , dummyValues : int ) -> DataGenerator :
71- import dbldatagen as dg # noqa: PLC0415
72-
7371 # Validate the options:
7472 if numCustomers is None or numCustomers < 0 :
7573 numCustomers = self .DEFAULT_NUM_CUSTOMERS
@@ -109,8 +107,6 @@ def getCustomers(self, sparkSession: SparkSession, *, rows: int, partitions: int
109107 return customers_data_spec
110108
111109 def getCarriers (self , sparkSession : SparkSession , * , rows : int , partitions : int , numCarriers : int , dummyValues : int ) -> DataGenerator :
112- import dbldatagen as dg # noqa: PLC0415
113-
114110 # Validate the options:
115111 if numCarriers is None or numCarriers < 0 :
116112 numCarriers = self .DEFAULT_NUM_CARRIERS
@@ -146,9 +142,6 @@ def getCarriers(self, sparkSession: SparkSession, *, rows: int, partitions: int,
146142 return carriers_data_spec
147143
148144 def getCatalogItems (self , sparkSession : SparkSession , * , rows : int , partitions : int , numCatalogItems : int , dummyValues : int ) -> DataGenerator :
149- import dbldatagen as dg # noqa: PLC0415
150-
151- # Validate the options:
152145 if numCatalogItems is None or numCatalogItems < 0 :
153146 numCatalogItems = self .DEFAULT_NUM_CATALOG_ITEMS
154147 if rows is None or rows < 0 :
@@ -187,8 +180,6 @@ def getCatalogItems(self, sparkSession: SparkSession, *, rows: int, partitions:
187180
188181 def getBaseOrders (self , sparkSession : SparkSession , * , rows : int , partitions : int , numOrders : int , numCustomers : int , startDate : str ,
189182 endDate : str , dummyValues : int ) -> DataGenerator :
190- import dbldatagen as dg # noqa: PLC0415
191-
192183 # Validate the options:
193184 if numOrders is None or numOrders < 0 :
194185 numOrders = self .DEFAULT_NUM_ORDERS
@@ -234,9 +225,6 @@ def getBaseOrders(self, sparkSession: SparkSession, *, rows: int, partitions: in
234225
235226 def getBaseOrderLineItems (self , sparkSession : SparkSession , * , rows : int , partitions : int , numOrders : int , numCatalogItems : int ,
236227 lineItemsPerOrder : int , dummyValues : int ) -> DataGenerator :
237- import dbldatagen as dg # noqa: PLC0415
238-
239- # Validate the options:
240228 if numOrders is None or numOrders < 0 :
241229 numOrders = self .DEFAULT_NUM_ORDERS
242230 if numCatalogItems is None or numCatalogItems < 0 :
0 commit comments