You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e885b46
Browse filesBrowse the repository at this point in the historyBrowse files
[refactor](ivm) Rename IvmInfo.refreshVersion to sequencePrefix (apache#68336)
`IvmInfo.refreshVersion` is the high part of the sequence values an IVM
MV's rows are stamped with -- the low part next to it is a delta index.
The name reads like an epoch or like the MV's own version, which is what
the per-partition `refreshEpoch` being added alongside it is not, and
the two sitting in the same code base is a trap for the next reader.
This renames it to `sequencePrefix`: the prefix of the `(sequence
prefix, delta index, op)` triple that `IvmSequenceCalculator` encodes
into the sequence column. Nothing about the value changes -- it still
counts committing IVM transactions and still prefixes the sequence
column.
- field and accessors: `sequencePrefix`, `getSequencePrefix()`,
`advanceSequencePrefix()`
- `MTMV.getNextRefreshVersion()` -> `MTMV.getNextSequencePrefix()`
- `IvmSequenceCalculator` identifiers, including
`LARGEINT_SEQUENCE_PREFIX_SHIFT` and the range-check messages
- the persisted name changes outright from `"rv"` to `"sp"`: IVM is not
released, so there is no image or journal in the wild that writes the
old name
Trace: apache#65418
0 commit comments