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
{{ message }}
Repository navigation
Empty --truncate imports leave existing rows in place #935
Expected an empty table with the existing schema. This matters when refreshing a complete snapshot: a valid empty result should remove records that no longer exist upstream.
The same happens with an empty generator and through sqlite-utils insert ... --truncate using JSON [] or a header-only CSV. Both CLI calls exit 0. Nonempty replacement works. The empty-input returns in Table.insert_all happen before truncation.
Reproduced on main 9c66bafa, Python 3.13.14, SQLite 3.53.1, macOS arm64. Malformed input should still fail without clearing the existing table; that behavior needs to stay intact.
AI assistance was used to investigate and reproduce this.
Activity