Skip to content

Commit

Permalink
Merge pull request #18 from umccr/fix-glue-job-spreadsheet-library-tr…
Browse files Browse the repository at this point in the history
…acking-metadata-out-name-dot

Fixed Glue job script spreadsheet_library_tracking_metadata OUT_NAME_DOT
  • Loading branch information
victorskl authored Jan 11, 2025
2 parents 0c4dcff + 19475ba commit aaced54
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
DB_NAME = "orcavault"

# Prepare out path with naming convention
OUT_NAME_DOT = f"{DB_NAME}.{SCHEMA_NAME}.{BASE_NAME}"
OUT_NAME = f"{DB_NAME}_{SCHEMA_NAME}_{BASE_NAME}"
OUT_PATH = f"/tmp/{OUT_NAME}"

Expand Down Expand Up @@ -187,7 +188,7 @@ def transform():
sql += f'{col}\tvarchar,\n'
i += 1

sql_schema = f"""CREATE TABLE IF NOT EXISTS {OUT_NAME}
sql_schema = f"""CREATE TABLE IF NOT EXISTS {OUT_NAME_DOT}
(
{sql}
);"""
Expand Down

0 comments on commit aaced54

Please sign in to comment.