Skip to content

[feature request] return table operation summaries #2344

@Anton-Tarazi

Description

@Anton-Tarazi

Feature Request / Improvement

I think it would be valuable if Table operations like append or delete returned some summaries of the operation such as the number of data files edited, similar to how upsert returns an UpsertResult. Something I believe would be particularly useful is if delete/ override returned information about whether it was an efficient metadata-only delete or whether data files had to be rewritten.

For example delete could return something like:

@dataclass
class DeleteResult:
    files_removed: int = 0
    files_rewritten: int = 0
    rows_deleted: int = 0

I'd be happy to work on this but wanted to get the community's feedback given that this would be a (nonbreaking) public API change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions