chore: use part_ prefix for Parquet parts #12

Merged
aleksei merged 1 commit from chore/parquet-part-underscore into main 2026-10-21 14:22:20 +00:00
Owner

Rename the on-disk Parquet part prefix from part- to part_.

Rationale

  • part- is the Spark/Hive/Delta convention, but this is a custom manifest-based layout (schema.json, parts.json, one directory per entity), not a Spark dataset; ecosystem file-name compatibility is not a goal.
  • The repository otherwise uses snake_case file names (adr/inproc_broker.md, storage_fs.md), so part_<20-digit-seq>.parquet is more internally consistent.
  • There have been no releases, so backward compatibility is explicitly not required; no dual-prefix reader or migration is added.

Changes

  • eve_tsdb_parquet/src/store.rs: is_part_name, part_sequence, part_name, and the scan/cleanup docs now use part_; the unit test rejects part_../x.parquet and accepts part_00000000000000000001.parquet.
  • eve_e2e/tests/tsdb/parquet.rs: the part counter, the manifest assertion and the synthetic orphan file use part_.
  • adr/parquet.md: the layout and orphan-cleanup text uses part_<20-digit-seq>.parquet / part_*.parquet.

Old local directories containing part-* files will no longer be recognized as parts; since there are no releases, they can be wiped/re-provisioned. The manifest (parts.json) is still the source of truth for the visible set.

Verification

rg -n "part-" --glob '!target/**' .          # no matches
cargo fmt --all -- --check
cargo clippy -p eve_tsdb_parquet -p eve_e2e --all-targets -- -D warnings
cargo test -p eve_tsdb_parquet                # 22 passed
cargo test -p eve_e2e --test tsdb --test app   # 22 + 2 passed
cargo bench -p eve_e2e -- tsdb --quick         # local Parquet halves run
Rename the on-disk Parquet part prefix from `part-` to `part_`. ## Rationale - `part-` is the Spark/Hive/Delta convention, but this is a custom manifest-based layout (`schema.json`, `parts.json`, one directory per entity), not a Spark dataset; ecosystem file-name compatibility is not a goal. - The repository otherwise uses snake_case file names (`adr/inproc_broker.md`, `storage_fs.md`), so `part_<20-digit-seq>.parquet` is more internally consistent. - There have been no releases, so backward compatibility is explicitly not required; no dual-prefix reader or migration is added. ## Changes - `eve_tsdb_parquet/src/store.rs`: `is_part_name`, `part_sequence`, `part_name`, and the scan/cleanup docs now use `part_`; the unit test rejects `part_../x.parquet` and accepts `part_00000000000000000001.parquet`. - `eve_e2e/tests/tsdb/parquet.rs`: the part counter, the manifest assertion and the synthetic orphan file use `part_`. - `adr/parquet.md`: the layout and orphan-cleanup text uses `part_<20-digit-seq>.parquet` / `part_*.parquet`. Old local directories containing `part-*` files will no longer be recognized as parts; since there are no releases, they can be wiped/re-provisioned. The manifest (`parts.json`) is still the source of truth for the visible set. ## Verification ```sh rg -n "part-" --glob '!target/**' . # no matches cargo fmt --all -- --check cargo clippy -p eve_tsdb_parquet -p eve_e2e --all-targets -- -D warnings cargo test -p eve_tsdb_parquet # 22 passed cargo test -p eve_e2e --test tsdb --test app # 22 + 2 passed cargo bench -p eve_e2e -- tsdb --quick # local Parquet halves run ```
aleksei deleted branch chore/parquet-part-underscore 2026-10-21 14:22:20 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
zoo/eve!12
No description provided.