File tree Expand file tree Collapse file tree
tests/e2e_dbt_project/external_seeders Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -184,12 +184,18 @@ def _upload_csvs_to_minio(self) -> None:
184184 )
185185 self .run (
186186 [
187- "docker" , "run" , "--rm" ,
188- "--network" , network ,
189- "-v" , f"{ self .data_dir } :/seed-data:ro" ,
190- "--entrypoint" , "/bin/sh" ,
187+ "docker" ,
188+ "run" ,
189+ "--rm" ,
190+ "--network" ,
191+ network ,
192+ "-v" ,
193+ f"{ self .data_dir } :/seed-data:ro" ,
194+ "--entrypoint" ,
195+ "/bin/sh" ,
191196 "minio/mc" ,
192- "-c" , mc_cmds ,
197+ "-c" ,
198+ mc_cmds ,
193199 ]
194200 )
195201
@@ -391,7 +397,5 @@ def load(self) -> None:
391397 time .sleep (10 )
392398
393399 if failures :
394- raise RuntimeError (
395- "Dremio seeding failed:\n - " + "\n - " .join (failures )
396- )
400+ raise RuntimeError ("Dremio seeding failed:\n - " + "\n - " .join (failures ))
397401 print ("\n Dremio seed loading complete." )
Original file line number Diff line number Diff line change @@ -71,9 +71,7 @@ def load(self) -> None:
7171 f"OPTIONS (path '{ container_path } ', header 'true', "
7272 f"inferSchema 'true')"
7373 )
74- cursor .execute (
75- f"DROP TABLE IF EXISTS { q (seed_schema )} .{ q (table_name )} "
76- )
74+ cursor .execute (f"DROP TABLE IF EXISTS { q (seed_schema )} .{ q (table_name )} " )
7775 cursor .execute (
7876 f"CREATE TABLE { q (seed_schema )} .{ q (table_name )} "
7977 f"USING delta AS SELECT * FROM { q (tmp_view )} "
You can’t perform that action at this time.
0 commit comments