Skip to content

IMMUTABLE_INDEXED encodes index-only in codec-java - #436

Merged
em3s merged 1 commit into
mainfrom
fix/codec-java-immutable-indexed
Jul 20, 2026
Merged

em3s merged 1 commit into
mainfrom
fix/codec-java-immutable-indexed

Conversation

@em3s

@em3s em3s commented Jul 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Make BulkEdgeEncoder bulk-encode IMMUTABLE_INDEXED as index-only. It already skips the hash-state row and writes index rows, but the EdgeCount early-return only covered VERTEX, so an immutable label wrongly emitted counter edges on bulk load. Extend the early-return to IMMUTABLE_INDEXED so bulk encoding matches its mutation-path semantics (index-only, no EdgeCount).

Independent of the v3 immutable-edge work (#433/#434): operates purely on the pre-existing LabelType.IMMUTABLE_INDEXED.

Closes #

Changes

  • BulkEdgeEncoder: the EdgeCount early-return now covers VERTEX and IMMUTABLE_INDEXED (both store no count records).
  • Refresh the stale IMMUTABLE_INDEXED row in the class doc comment.
  • Test: testImmutableIndexedEncodesIndexOnly asserts an IMMUTABLE_INDEXED bulk row emits index rows only — no hash state, no cache, no counter.

How to Test

  • ./gradlew :codec-java:test --tests "com.kakao.actionbase.v2.core.code.BulkEdgeEncoderTests"

AI Assistance

  • This PR was written largely with AI assistance.
    • Tool / model: Claude Code

BulkEdgeEncoder already skips the hash-state row for IMMUTABLE_INDEXED and writes
index rows; extend the count early-return to IMMUTABLE_INDEXED so bulk load matches
the mutation path (index-only, no EdgeCount). Refresh the stale doc comment.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@dosubot dosubot Bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Jul 20, 2026
@em3s em3s changed the title codec-java: IMMUTABLE_INDEXED bulk-encodes index-only (no count) Fix BulkEdgeEncoder: IMMUTABLE_INDEXED bulk-encodes index-only (no count) Jul 20, 2026
@em3s em3s self-assigned this Jul 20, 2026
@em3s em3s changed the title Fix BulkEdgeEncoder: IMMUTABLE_INDEXED bulk-encodes index-only (no count) IMMUTABLE_INDEXED encodes index-only in BulkEdgeEncoder Jul 20, 2026
@em3s em3s changed the title IMMUTABLE_INDEXED encodes index-only in BulkEdgeEncoder IMMUTABLE_INDEXED encodes index-only in codec-java Jul 20, 2026
@em3s
em3s merged commit 3e8c960 into main Jul 20, 2026
3 checks passed
@em3s
em3s deleted the fix/codec-java-immutable-indexed branch July 20, 2026 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant