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

force overwrite metadata in table properties #610

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

pengyu-hou
Copy link
Collaborator

Summary

Added a new flag to overwrite metadata if needed to avoid dropping previously computed intermediate tables

Why / Goal

This PR can avoid dropping the previously computed intermediate tables if the version update is negligible

Test Plan

  • Added Unit Tests
  • Covered by existing CI
  • Integration tested

Checklist

  • Documentation update

Reviewers

@airbnb/zipline-maintainers

@pengyu-hou pengyu-hou changed the title force overwrite metadata force overwrite metadata in table properties Nov 9, 2023
tableUtils: TableUtils,
forceOverwriteMetadata: Boolean = false): collection.Seq[String] = {
if (forceOverwriteMetadata) {
return collection.Seq.empty
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sure it won't recompute, but will the next run recompute?
I think when we save we store the table properties so it should probably work? Else may be take the opportunity to set the table properties here (hence overwriting the metadata as the flag implies)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point. This will only overwrite the metadata when we do a new run

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants