refactor: Remove idIndexer::insert_safe, add param bool insert_safe for insert#175
Conversation
There was a problem hiding this comment.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
Review Summary by QodoUnify insert API and fix varchar buffer allocation bug
WalkthroughsDescription• Unified insert() method by removing insert_safe() and adding insert_safe parameter • Fixed varchar key buffer allocation bug in StringColumn::resize() • Added comprehensive test coverage for varchar reserve-then-insert scenarios • Updated all call sites to use new unified insert() API Diagramflowchart LR
A["idIndexer::insert_safe<br/>removed"] -->|"consolidate into"| B["insert with<br/>insert_safe param"]
C["StringColumn::resize<br/>bug: data_buffer not allocated"] -->|"fix: pre-allocate<br/>data_buffer"| D["reserve-then-insert<br/>now works safely"]
B -->|"propagate param"| E["VertexTable::insert_vertex_pk"]
D -->|"enables"| F["New test cases<br/>for varchar edge cases"]
File Changes1. include/neug/utils/id_indexer.h
|
Code Review by Qodo
1.
|
21d021b to
57ad320
Compare
Try to unify insert method.
Fix #210