Skip to content

fix(version-management): main pointer NULL model_tag and merge_insert#124

Open
sqhyz55 wants to merge 1 commit intoxorbitsai:mainfrom
sqhyz55:fix/pointers
Open

fix(version-management): main pointer NULL model_tag and merge_insert#124
sqhyz55 wants to merge 1 commit intoxorbitsai:mainfrom
sqhyz55:fix/pointers

Conversation

@sqhyz55
Copy link
Collaborator

@sqhyz55 sqhyz55 commented Mar 10, 2026

  • Add _normalize_model_tag() to treat None as '' for backward compatibility
  • get_main_pointer: use escape_lancedb_string for filters; support both '' and NULL for model_tag; prefer non-NULL when multiple rows exist
  • set_main_pointer: use merge_insert instead of delete-then-add to avoid race conditions; preserve created_at; migrate NULL model_tag to '' on write before merge_insert
  • list_main_pointers: return model_tag as '' when NULL
  • delete_main_pointer: use normalized_tag and escape_lancedb_string for filter expression
  • Sync test_main_pointer_manager with new behavior and patch targets.

- Add _normalize_model_tag() to treat None as '' for backward compatibility
- get_main_pointer: use escape_lancedb_string for filters; support both
  '' and NULL for model_tag; prefer non-NULL when multiple rows exist
- set_main_pointer: use merge_insert instead of delete-then-add to avoid
  race conditions; preserve created_at; migrate NULL model_tag to '' on
  write before merge_insert
- list_main_pointers: return model_tag as '' when NULL
- delete_main_pointer: use normalized_tag and escape_lancedb_string for
  filter expression
- Sync test_main_pointer_manager with new behavior and patch targets.
@XprobeBot XprobeBot added the bug Something isn't working label Mar 10, 2026
@sqhyz55 sqhyz55 marked this pull request as draft March 11, 2026 06:06
@sqhyz55 sqhyz55 marked this pull request as ready for review March 12, 2026 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants