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 some map(overwrite=True) bugs #1031

Merged
merged 8 commits into from
Jan 5, 2024
Merged

Fix some map(overwrite=True) bugs #1031

merged 8 commits into from
Jan 5, 2024

Conversation

dsmilkov
Copy link
Collaborator

@dsmilkov dsmilkov commented Jan 5, 2024

Fix progress bar when overwrite=True and allow map(input=x, output=x, overwrite=True)

@dsmilkov dsmilkov requested a review from nsthorat January 5, 2024 16:03
@@ -2664,17 +2665,6 @@ def map(
field = manifest.data_schema.get_field(output_path)
if field.map is None:
raise ValueError(f'{output_path} is not a map column so it cannot be overwritten.')
# Delete the parquet file and map manifest.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

we don't need this code since the parquet file and the map manifest are deleted/overwritten when we reshard. This makes map(input=x, output=x, overwrite=True) work

Copy link
Contributor

@nsthorat nsthorat left a comment

Choose a reason for hiding this comment

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

nice, __ is much better

@dsmilkov dsmilkov enabled auto-merge (squash) January 5, 2024 16:10
@dsmilkov dsmilkov merged commit 4036961 into main Jan 5, 2024
4 checks passed
@dsmilkov dsmilkov deleted the ds-improve-title branch January 5, 2024 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants