Skip to content

chore(fbs): flatten schema dir to core/src/main/fbs#150

Merged
dfa1 merged 1 commit into
mainfrom
chore/flatten-fbs-schemas
Jun 24, 2026
Merged

chore(fbs): flatten schema dir to core/src/main/fbs#150
dfa1 merged 1 commit into
mainfrom
chore/flatten-fbs-schemas

Conversation

@dfa1

@dfa1 dfa1 commented Jun 24, 2026

Copy link
Copy Markdown
Owner

The four .fbs schemas each lived in their own subdir under src/main/flatbuffers/ (vortex-array/, vortex-dtype/, vortex-file/, vortex-layout/), mirroring the Rust reference's crate layout.

The in-house generator reads only the explicit file paths passed on the command line into one global type registry — include "..." is parsed but never resolved from disk (Main just Files.readStrings each arg) — so the nesting carried no build meaning.

Change

Flatten + rename to fbs/, symmetric with the flat src/main/proto/ siblings:

before after
flatbuffers/vortex-array/array.fbs fbs/array.fbs
flatbuffers/vortex-dtype/dtype.fbs fbs/dtype.fbs
flatbuffers/vortex-file/footer.fbs fbs/footer.fbs
flatbuffers/vortex-layout/layout.fbs fbs/layout.fbs
  • footer.fbs include strings → "array.fbs" / "layout.fbs"
  • regenerate-sources exec args + fbs-gen ParserTest/CodeGenTest paths repointed
  • Regenerated output byte-identical — pure source-tree move

🤖 Generated with Claude Code

The four .fbs schemas sat one-per-subdir under src/main/flatbuffers/
(vortex-array/, vortex-dtype/, vortex-file/, vortex-layout/), mirroring the
Rust reference's crate layout. The in-house generator reads only the explicit
file paths passed on the command line into one global type registry — the
`include "..."` directives are recorded but never resolved from disk — so the
nesting carried no build meaning.

Flatten all four into a single directory and rename it to `fbs/`, matching the
flat `src/main/proto/` siblings:

  src/main/flatbuffers/vortex-array/array.fbs   -> src/main/fbs/array.fbs
  src/main/flatbuffers/vortex-dtype/dtype.fbs   -> src/main/fbs/dtype.fbs
  src/main/flatbuffers/vortex-file/footer.fbs   -> src/main/fbs/footer.fbs
  src/main/flatbuffers/vortex-layout/layout.fbs -> src/main/fbs/layout.fbs

footer.fbs's include strings updated to the flat names, the regenerate-sources
exec args and the fbs-gen parser/codegen tests repointed. Regenerated output is
byte-identical — this is a pure source-tree move.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@dfa1 dfa1 merged commit 21cffb9 into main Jun 24, 2026
6 checks passed
@dfa1 dfa1 deleted the chore/flatten-fbs-schemas branch June 24, 2026 06:48
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.

1 participant