`reset --hard` silently drops untracked tables with column tag collisions
- Dominant language
- Go
- Stars
- 24.4k
- Forks
- 873
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 120
Description
Untracked tables should be preserved across `dolt reset --hard`. When an untracked table's column tags collide with a column in the target commit, the table is silently dropped. `dolt rebase` is affected through the same code path.
```bash
dolt init
dolt checkout -b feat
dolt sql -q "CREATE TABLE bar (code varchar(64) PRIMARY KEY);"
dolt add . && dolt commit -m "add bar"
dolt checkout main
dolt sql -q "CREATE TABLE users (name varchar(64) PRIMARY KEY);"
dolt sql -q "INSERT INTO users VALUES ('alice');"
dolt reset --hard feat
dolt sql -q "SELECT * FROM users"
```
**Expected:** `alice`
**Got:** `table not found: users`
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.