Skip to content

fix: Fix incorrect edge table state when transforming between bundled and unbundled#28

Merged
zhanglei1949 merged 6 commits intomainfrom
fix-etable-trans
Mar 19, 2026
Merged

fix: Fix incorrect edge table state when transforming between bundled and unbundled#28
zhanglei1949 merged 6 commits intomainfrom
fix-etable-trans

Conversation

@zhanglei1949
Copy link
Collaborator

@zhanglei1949 zhanglei1949 commented Mar 11, 2026

Fix #58

@zhanglei1949 zhanglei1949 marked this pull request as draft March 11, 2026 07:26
Louyk14 pushed a commit that referenced this pull request Mar 12, 2026
Use cibuildwheel to build wheels for all platforms and archs.
@zhanglei1949 zhanglei1949 marked this pull request as ready for review March 16, 2026 03:48
@zhanglei1949
Copy link
Collaborator Author

@greptile

@zhanglei1949
Copy link
Collaborator Author

@greptile

@zhanglei1949 zhanglei1949 requested review from liulx20 and lnfjpt March 16, 2026 07:45
@zhanglei1949
Copy link
Collaborator Author

Waiting string propblem to be resolved.

@zhanglei1949
Copy link
Collaborator Author

@greptile

fix test

fix test

fix test

fix

revert changes

fix

fix

fix

fix test name

address greptile issues
@zhanglei1949
Copy link
Collaborator Author

@greptile

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

zhanglei1949 has reached the 50-review limit for trial accounts. To continue receiving code reviews, upgrade your plan.

@lnfjpt
Copy link
Collaborator

lnfjpt commented Mar 19, 2026

@greptile

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

zhanglei1949 has reached the 50-review limit for trial accounts. To continue receiving code reviews, upgrade your plan.

@zhanglei1949 zhanglei1949 requested a review from Copilot March 19, 2026 03:02
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes inconsistent internal EdgeTable state transitions when edge properties are added/dropped, preventing unintended flips between bundled and unbundled storage (Fix #58).

Changes:

  • Update EdgeTable schema-alter paths to correctly rebuild CSR/Table when adding/dropping properties (including empty ↔ bundled ↔ unbundled transitions).
  • Improve handling for bundled empty edge data and unsupported type reporting/behavior in CSR creation/insertion helpers.
  • Add/extend regression tests in both Python DDL tests and C++ storage tests to validate transitions and capacity/size invariants.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
tools/python_bind/tests/test_ddl.py Adds a DDL regression test for dropping/adding edge table columns across reopen.
tests/storage/test_vertex_table.cc Minor formatting fix (brace alignment) to keep tests consistent.
tests/storage/test_edge_table.cc Adds extensive transition tests and strengthens assertions around bundled/unbundled size/capacity behavior.
src/storages/graph/edge_table.cc Implements the core fix: rebuild logic for bundled/unbundled conversions during Add/DeleteProperties; adjusts CSR creation/edge insertion behavior.
include/neug/storages/graph/edge_table.h Updates the bundled-CSR rebuild helper signature to support conversion using a remaining column.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

zhanglei1949 has reached the 50-review limit for trial accounts. To continue receiving code reviews, upgrade your plan.

@zhanglei1949 zhanglei1949 merged commit 46dd54d into main Mar 19, 2026
17 checks passed
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.

[BUG] Inconsistent state reached when switch between bundled and unbundled EdgeTable by deleting/adding properties

4 participants