Skip to content

Commit 46be3ab

Browse files
wForgetLakehouse Engine Bot
authored andcommitted
[OAP] Change SpillPartitionId::kMaxSpillLevel to 7
Alchemy-item: (ID = 1294) feat: Change SpillPartitionId::kMaxSpillLevel to 7 commit 1/1 - 7280b67
1 parent b933a26 commit 46be3ab

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

velox/exec/Spill.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ class ConcatFilesSpillMergeStream final : public SpillMergeStream {
277277
class SpillPartitionId {
278278
public:
279279
/// Maximum spill level supported by 'SpillPartitionId'.
280-
static constexpr uint32_t kMaxSpillLevel{3};
280+
static constexpr uint32_t kMaxSpillLevel{7};
281281

282282
/// Maximum number of partition bits per spill level supported by
283283
/// 'SpillPartitionId'.
@@ -355,7 +355,10 @@ class SpillPartitionId {
355355
// (3 ~ 5 bits): Represents the partition number at the 2nd level.
356356
// (6 ~ 8 bits): Represents the partition number at the 3rd level.
357357
// (9 ~ 11 bits): Represents the partition number at the 4th level.
358-
// (12 ~ 28 bits): Unused
358+
// (12 ~ 14 bits): Represents the partition number at the 5th level.
359+
// (15 ~ 17 bits): Represents the partition number at the 6th level.
360+
// (18 ~ 20 bits): Represents the partition number at the 7th level.
361+
// (21 ~ 28 bits): Unused
359362
// (29 ~ 31 bits): Represents the current spill level.
360363
// <MSB>
361364
uint32_t encodedId_{kInvalidEncodedId};

0 commit comments

Comments
 (0)