Skip to content

Commit

Permalink
[CELEBORN-1482] Add partition meta handler and new partition type
Browse files Browse the repository at this point in the history
  • Loading branch information
FMX committed Jan 8, 2025
1 parent 4714e91 commit bba23b7
Show file tree
Hide file tree
Showing 5 changed files with 438 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
public enum PartitionType {
REDUCE(0),
MAP(1),
MAPGROUP(2);
MAPGROUP(2),
MAP_SEGMENT(3);

private final int value;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ object PbSerDeUtils {
// writer always closed as this is committed file info.
fileMeta.setIsWriterClosed(true)
fileMeta
case PartitionType.MAPGROUP =>
case PartitionType.MAPGROUP | PartitionType.MAP_SEGMENT =>
throw new NotImplementedError("Map group is not implemented")
}
new DiskFileInfo(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1188,6 +1188,7 @@ object Utils extends Logging {
case 0 => PartitionType.REDUCE
case 1 => PartitionType.MAP
case 2 => PartitionType.MAPGROUP
case 3 => PartitionType.MAP_SEGMENT
case _ =>
logWarning(s"invalid partitionType $value, fallback to ReducePartition")
PartitionType.REDUCE
Expand Down
Loading

0 comments on commit bba23b7

Please sign in to comment.