You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: CREATE OR REPLACE IMAGE COLLECTION fails with "already exists" (issue #436)
Three layers were missing support for CreateOrReplace:
- ast: added CreateOrReplace bool field to CreateImageCollectionStmt
- visitor: read OR REPLACE from parent createStatement via
findParentCreateStatement(), same pattern used by business events
- executor: when CreateOrReplace is set and collection exists, delete it
before creating; otherwise return the existing "already exists" error
Added tests for both the plain-create conflict case and the
create-or-replace delete+recreate path.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments