Skip to content

Commit

Permalink
Fix sql load job
Browse files Browse the repository at this point in the history
  • Loading branch information
steinitzu committed Jan 19, 2024
1 parent a10c7c3 commit fd51d0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dlt/destinations/job_client_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def _string_containts_ddl_queries(self, sql: str) -> bool:
return False

def _split_fragments(self, sql: str) -> List[str]:
return [s for s in sql.split(";") if s.strip()]
return [s + (";" if not s.endswith(";") else "") for s in sql.split(";") if s.strip()]

@staticmethod
def is_sql_job(file_path: str) -> bool:
Expand Down

0 comments on commit fd51d0d

Please sign in to comment.