Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix table list file path #579

Merged
merged 1 commit into from
Dec 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading