Skip to content

Conversation

@dongxiao1198
Copy link
Contributor

This PR is part1 implements to support expire snapshots described in issue #364.

1 Add ExpireSnapshot in TableMetadataBuilder,Table,Transaction...
2 Add basic UT for TableMetadataBuilder and E2E with in memory catalog

TODO: FileCleanupStrategy and file recycle need another independent PR to do,and need more UT after all part finished.

}

ExpireSnapshots& ExpireSnapshots::CleanupLevel(enum CleanupLevel level) {
cleanup_level_ = level;
Copy link
Member

Choose a reason for hiding this comment

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

Java impl has this check:

    Preconditions.checkArgument(
        cleanExpiredFiles || level == CleanupLevel.NONE,
        "Cannot set cleanupLevel to %s when cleanExpiredFiles was explicitly set to false",
        level);

Copy link
Contributor Author

Choose a reason for hiding this comment

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

cleanExpiredFiles was deprecated in lastest version

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