@@ -326,9 +326,9 @@ def _ensure_schema_exists(
326326
327327 if DEBUG_MODE :
328328 found_schemas = schemas_list
329- assert (
330- schema_name in found_schemas
331- ), f"Schema { schema_name } was not created. Found: { found_schemas } "
329+ assert schema_name in found_schemas , (
330+ f"Schema { schema_name } was not created. Found: { found_schemas } "
331+ )
332332
333333 def _quote_identifier (self , identifier : str ) -> str :
334334 """Return the given identifier, quoted."""
@@ -617,10 +617,10 @@ def _append_temp_table_to_final_table(
617617 self ._execute_sql (
618618 f"""
619619 INSERT INTO { self ._fully_qualified (final_table_name )} (
620- { f' ,{ nl } ' .join (columns )}
620+ { f" ,{ nl } " .join (columns )}
621621 )
622622 SELECT
623- { f' ,{ nl } ' .join (columns )}
623+ { f" ,{ nl } " .join (columns )}
624624 FROM { self ._fully_qualified (temp_table_name )}
625625 """ ,
626626 )
@@ -645,8 +645,7 @@ def _swap_temp_table_with_final_table(
645645 deletion_name = f"{ final_table_name } _deleteme"
646646 commands = "\n " .join (
647647 [
648- f"ALTER TABLE { self ._fully_qualified (final_table_name )} RENAME "
649- f"TO { deletion_name } ;" ,
648+ f"ALTER TABLE { self ._fully_qualified (final_table_name )} RENAME TO { deletion_name } ;" ,
650649 f"ALTER TABLE { self ._fully_qualified (temp_table_name )} RENAME "
651650 f"TO { final_table_name } ;" ,
652651 f"DROP TABLE { self ._fully_qualified (deletion_name )} ;" ,
@@ -686,10 +685,10 @@ def _merge_temp_table_to_final_table(
686685 { set_clause }
687686 WHEN NOT MATCHED THEN INSERT
688687 (
689- { f' ,{ nl } ' .join (columns )}
688+ { f" ,{ nl } " .join (columns )}
690689 )
691690 VALUES (
692- tmp.{ f' ,{ nl } tmp.' .join (columns )}
691+ tmp.{ f" ,{ nl } tmp." .join (columns )}
693692 );
694693 """ ,
695694 )
0 commit comments