Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
[ASTS] feat(bucket-assigner): Add underlying physical table (#7299)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdaudali authored Sep 30, 2024
1 parent aadca41 commit d3a7c7d
Show file tree
Hide file tree
Showing 3 changed files with 826 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,26 @@ private static void addSweepStateTables(Schema schema) {
conflictHandler(ConflictHandler.IGNORE_ALL);
}
});

schema.addTableDefinition("sweepAssignedBuckets", new TableDefinition() {
{
javaTableName("SweepAssignedBuckets");
allSafeForLoggingByDefault();
rowName();
hashFirstNRowComponents(3);
// All are signed to reserve the negative values for special cells.
rowComponent("shard", ValueType.VAR_SIGNED_LONG);
rowComponent("major_bucket_identifier", ValueType.VAR_SIGNED_LONG);
rowComponent("strategy", ValueType.BLOB);
dynamicColumns();
columnComponent("minor_bucket_identifier", ValueType.VAR_SIGNED_LONG);
value(ValueType.BLOB);

// we do our own cleanup
sweepStrategy(TableMetadataPersistence.SweepStrategy.NOTHING);
conflictHandler(ConflictHandler.IGNORE_ALL);
}
});
}

private static void addTableIdentifierTables(Schema schema) {
Expand Down
Loading

0 comments on commit d3a7c7d

Please sign in to comment.