Skip to content

Add backwards compatibly handling of sum stats of extension types#7014

Merged
AdamGS merged 1 commit intodevelopfrom
adamg/fix-old-sum-stat-compatability
Mar 18, 2026
Merged

Add backwards compatibly handling of sum stats of extension types#7014
AdamGS merged 1 commit intodevelopfrom
adamg/fix-old-sum-stat-compatability

Conversation

@AdamGS
Copy link
Contributor

@AdamGS AdamGS commented Mar 18, 2026

After #6910, Older files with extension types will have zone stats that are just based on the storage type (which might be arbitrary) and which is rarely useful. we currently don't handle its existence at all, so reading these files might panic or otherwise error. This PR falls back to the storage type on the read path, but might not be the desirable solution.

Signed-off-by: Adam Gutglick <adam@spiraldb.com>
@AdamGS AdamGS requested a review from gatesn March 18, 2026 12:14
@AdamGS AdamGS added the changelog/fix A bug fix label Mar 18, 2026
Copy link
Contributor

@gatesn gatesn left a comment

Choose a reason for hiding this comment

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

Sadly this is probably correct.

Could you expand on the comment though? Explain that we used to arbitrarily sum the storage type, but this isn't valid for all extension types (e.g. timestamps).

@AdamGS AdamGS marked this pull request as ready for review March 18, 2026 15:13
@AdamGS AdamGS merged commit 61bc044 into develop Mar 18, 2026
96 of 98 checks passed
@AdamGS AdamGS deleted the adamg/fix-old-sum-stat-compatability branch March 18, 2026 15:13
dimitarvdimitrov pushed a commit that referenced this pull request Mar 20, 2026
)

After #6910, Older files with extension types will have zone stats that
are just based on the storage type (which might be arbitrary) and which
is rarely useful. we currently don't handle its existence at all, so
reading these files might panic or otherwise error. This PR falls back
to the storage type on the read path, but might not be the desirable
solution.

Signed-off-by: Adam Gutglick <adam@spiraldb.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/fix A bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants