Skip to content

Commit 66271c0

Browse files
committed
fix(hql): handle TraversalValue::Empty in DROP operations
This fix resolves runtime errors when attempting to DROP non-existent nodes, edges, or vectors. Previously, empty traversals would throw "Conversion error: Incorrect Type: Empty" errors. Added TraversalValue::Empty => Ok(()) case to make DROP operations idempotent - dropping non-existent items now succeeds silently. Integrates PR #670 into the arena-implementation branch. Co-Authored-By: ishaksebsib
1 parent b146b83 commit 66271c0

File tree

1 file changed

+1
-0
lines changed
  • helix-db/src/helix_engine/traversal_core/ops/util

1 file changed

+1
-0
lines changed

helix-db/src/helix_engine/traversal_core/ops/util/drop.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ where
4848
Err(e) => Err(e),
4949
}
5050
}
51+
TraversalValue::Empty => Ok(()),
5152
_ => Err(GraphError::ConversionError(format!(
5253
"Incorrect Type: {item:?}"
5354
))),

0 commit comments

Comments
 (0)