Skip to content

fix: schema layout version compatibility#24

Closed
QuakeWang wants to merge 1 commit into
apache:mainfrom
QuakeWang:schema-v2-compat
Closed

fix: schema layout version compatibility#24
QuakeWang wants to merge 1 commit into
apache:mainfrom
QuakeWang:schema-v2-compat

Conversation

@QuakeWang
Copy link
Copy Markdown
Contributor

Problem

Schema block layout changed while the file footer version stayed at v1. Existing v1 files can be parsed with the new layout, causing the legacy logical index to be read as a type header and potentially corrupting schema metadata silently.

Fix

Bump the current file version to v2 and keep v1 as the legacy format. Route schema deserialization by footer version, parse v1 with the legacy logical-index layout, and add a v2 schema layout marker for the current format.

Also add regression coverage for legacy v1 schema decoding.

Signed-off-by: QuakeWang <wangfuzheng0814@foxmail.com>
@JingsongLi
Copy link
Copy Markdown
Contributor

We don't need to do this. This format has not been publicly released yet, so there's no need to consider compatibility issues.

@QuakeWang
Copy link
Copy Markdown
Contributor Author

We don't need to do this. This format has not been publicly released yet, so there's no need to consider compatibility issues.

Got it. I will close this PR.

@QuakeWang QuakeWang closed this May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants