Skip to content

Commit

Permalink
Fix table list file path
Browse files Browse the repository at this point in the history
  • Loading branch information
accorvin committed Dec 5, 2023
1 parent e2310cf commit b353709
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ spec:
print("Error adding {}.{} to list of partitioned tables. Caused by:".format(row[0], row[1]))
print(e)
with open('$(workspaces.tables-list.path)','w') as f:
with open('$(workspaces.tables-list.path)/tables-list.txt','w') as f:
print("Dumping table list as json data...")
json.dump(schemas, f)
with open('$(workspaces.tables-list.path)') as f:
with open('$(workspaces.tables-list.path)/tables-list.txt') as f:
print(f.read())
if failures_detected:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ spec:
# Disable warnings from urllib3
urllib3.disable_warnings()
with open('$(workspaces.tables-list.path)') as f:
with open('$(workspaces.tables-list.path)/tables-list.txt') as f:
TABLE_DEFS = f.read()
UPDATE_PARTITION = "call hive.system.sync_partition_metadata('{}','{}','FULL')"
Expand Down

0 comments on commit b353709

Please sign in to comment.