Commit Graph

680 Commits

Author SHA1 Message Date
Maximilian Hoffman f4dd4c7d6b Dolt clean (#3440)
* Dolt clean

CLI and sql clean function. Clears untracked tables by finding the
difference betewen HEAD and the current working set and then deleting
the result.

Optionally specify `--dry-run` to avoid persisting the result root.

Optionally pass a list of table names to filter for deletion if
untracked.

* [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh

* zach comments

* need clean func for proc

* fix andy's PR

Co-authored-by: max-hoffman <max-hoffman@users.noreply.github.com>
2022-05-17 18:38:24 -07:00
Vinai Rachakonda 5e333b0e8f Fix error message for DOLT_MERGE conflicts (#3413) 2022-05-17 19:56:09 -04:00
Vinai Rachakonda c11db5a55b Make import work with FKs and add disableFks check (#3412) 2022-05-17 14:11:30 -04:00
Maximilian Hoffman 33a679f20b Default branch now database-specific global variable (#3422)
* Default branch now database-specific global variable

* fix bats
2022-05-16 13:21:50 -07:00
Zach Musgrave 8a32085d9c Fixed bats tests for bools 2022-05-11 19:25:55 -07:00
Zach Musgrave 868e6dff24 Another bats skip 2022-05-11 18:10:54 -07:00
Zach Musgrave 4ac4a3fe83 Fix 3 failing tests for new format 2022-05-11 16:59:36 -07:00
Andy Arthur 242793c0e9 two more skips 2022-05-10 15:01:20 -07:00
Andy Arthur eccb060ca8 unskipping more tests 2022-05-10 14:34:05 -07:00
Andy Arthur 01587c8c20 more BATS skips for __DOLT_1__ 2022-05-10 14:08:47 -07:00
Andy Arthur 82f5d8ae7d added BATS helper skip_nbf_dolt_1 2022-05-10 13:37:16 -07:00
Dhruv Sringari 839d7c9cf3 dolt reset --hard clears any merge state (#3374)
* dolt reset --hard clears any merge state

* fix call DOLT_RESET to match new behavior, add sqlengine tests

* uncomment conflicted case
2022-05-09 15:34:52 -07:00
Maximilian Hoffman 9154d2e5dd short dolt procs (#3369) 2022-05-06 18:42:13 -07:00
Dhruv Sringari b0e9329ab3 Fix dolt conflicts cat failing to show conflicted rows in the union-ed schema between left, right, and base. (#3354)
* fix skipped merge conflict and bad conflicts cat

* fix bats test naming

* revert old storage format, add todo for new storage format
2022-05-06 13:54:56 -07:00
James Cor 2f0338dd17 merge james/collate into auto-bump 2022-05-06 11:12:25 -07:00
James Cor 789aed40b9 this'd better be the last one 2022-05-05 14:21:30 -07:00
James Cor c8c731f102 :/ 2022-05-05 13:49:49 -07:00
James Cor d491b43c75 hello CI please run, thanks 2022-05-05 13:07:11 -07:00
James Cor 59caaafcce fixing tests 2022-05-05 12:11:40 -07:00
Dhruv Sringari a04b09c5db Improve merge failure messages (#3347)
* improve merge failure messages

* fix silenced err

* fix bats test
2022-05-05 11:29:29 -07:00
Zach Musgrave 3f8340bb57 Fixed naming problems 2022-05-03 17:34:34 -07:00
Zach Musgrave bc755cd483 New bats test for mysql import (subset of client tests with no dependency on mysqldump or running mysql server) 2022-05-03 17:16:21 -07:00
Zach Musgrave ad7f5b9525 Added additional test for CALL DOLT_CHECKOUT which was broken when a transaction was in progress 2022-05-03 15:14:41 -07:00
Zach Musgrave 7804b1587d Merge branch 'main' into zachmu/session-conflicts 2022-05-03 14:23:12 -07:00
Dhruv Sringari 7818311e22 Merge pull request #3332 from dolthub/fix/composite-idx-merge
Fix composite index merge bug
2022-05-02 12:13:02 -07:00
Zach Musgrave d87178c101 Fixed bats tests for new defaults 2022-04-29 17:15:09 -07:00
Zach Musgrave 9f0b85717e Fixed test for new defaults 2022-04-29 17:10:13 -07:00
Dhruv Sringari da2bac3f59 add bats test 2022-04-29 15:10:27 -07:00
Jason Fulghum af8728b13b Merge pull request #3318 from dolthub/fulghum/diff-command
Display schema and data for created and dropped tables in `dolt diff` command
2022-04-28 15:58:58 -07:00
Jason Fulghum 4bebbcb892 Adding a BATS test to assert that a diff of a commit range that includes created or dropped tables shows a summary of changes, schema changes, and data changes. 2022-04-27 16:44:38 -07:00
James Cor 86e0b2783c Merge pull request #3310 from dolthub/james/dolt-pull
Incorrectly trying to merge every branch when fetching
2022-04-27 16:27:01 -07:00
James Cor f62124d6f9 fixing tests 2022-04-27 11:50:53 -07:00
Dhruv Sringari 4dee41847c Merge pull request #3248 from dolthub/dhruv/v1_dump_bats
integration-tests/bats: update dolt dump bats test for v1 storage format
2022-04-27 11:21:00 -07:00
James Cor 4a08f59b65 improving test 2022-04-27 11:15:08 -07:00
James Cor 0c7018c4f0 adding a test 2022-04-27 10:54:59 -07:00
Zach Musgrave ba187410a0 Merge pull request #3287 from dolthub/zachmu/upgrade-gms
[no-release-notes] upgrade gms and fix bats test
2022-04-22 13:36:28 -07:00
Zach Musgrave 7d4ef84a36 Fixed test with new error message 2022-04-22 12:00:11 -07:00
Dhruv Sringari 4ad305babd -r -> -E 2022-04-22 09:40:53 -07:00
Dhruv Sringari 038aaf0f6e Add create new branch suggestion to dolt checkout {commit_hash} 2022-04-21 19:08:52 -07:00
Vinai Rachakonda 3aad420681 Enable unique indexes on keyless tables (#3245) 2022-04-21 12:23:18 -04:00
Vinai Rachakonda 0d9e30112c Add generated queries tests for Tableplus (#3259) 2022-04-21 12:22:57 -04:00
jennifersp 303a32855d fix panic from nil VRW (#3167) 2022-04-21 09:18:13 -07:00
Aaron Son f269a8dedc integration-tests/bats: sql-shell.bats: Fix test to not rely on pid of the bats process. Make it a little faster. 2022-04-20 12:18:34 -07:00
Daylon Wilkins 7fe4d7d780 Added stored procedure versions of dolt functions 2022-04-19 03:44:20 -07:00
Dhruv Sringari b2ce535655 update dolt dump bats test for v1 storage format 2022-04-18 15:56:13 -07:00
James Cor 8ceb83d377 Merge pull request #3225 from dolthub/james/dolt-dump
`dolt dump` should include views, triggers, and procedures
2022-04-18 10:06:32 -07:00
James Cor c632913330 fixing tests to use follows and precedes 2022-04-17 23:22:59 -07:00
James Cor 338353d6b8 adding tests with precedes and follows 2022-04-17 22:02:03 -07:00
James Cor 0a0e4f9321 Merge pull request #3210 from dolthub/james/dolt-pull
`dolt pull` should do `dolt fetch` before
2022-04-15 15:10:54 -07:00
James Cor a6754a9fff adding more detailed test 2022-04-15 11:42:29 -07:00