Commit Graph

950 Commits

Author SHA1 Message Date
jennifersp bfc3cfbda0 Support dolt_remote() stored procedure (#3862) 2022-07-20 14:46:28 -07:00
James Cor 3fc5750220 Merge pull request #3868 from dolthub/james/privs
yaml config also initialize `.doltcfg` directories
2022-07-20 09:28:08 -07:00
James Cor 587a6b98b5 tests 2022-07-20 00:32:55 -07:00
James Cor 994b3095f1 adding test case 2022-07-20 00:15:36 -07:00
Dhruv Sringari 2cf9a2134f [no-release-notes] In __DOLT_1__, throw error if schemas have different primary key types (#3852)
* In __DOLT_1__, throw error if schemas have different primary key types

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

* schema integration test fix

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

* Compare SQL types

Co-authored-by: druvv <druvv@users.noreply.github.com>
2022-07-19 16:59:12 -07:00
James Cor a5ee26d86d adding restart 2022-07-19 13:29:08 -07:00
James Cor c124ba8de5 another bats test 2022-07-19 12:52:29 -07:00
James Cor e940f4cb7f adding test 2022-07-19 12:24:23 -07:00
Dustin Brown 369508bee2 [auto-bump] [no-release-notes] Unskip foreign-keys-invert-pk.bats for new format (#3847)
* [ga-bump-dep] Bump dependency in Dolt by druvv

* Unskip foreign-keys-invert-pk.bats for new format

* pr comment

* fix pkToIdxMap

Co-authored-by: druvv <dhruvy427@gmail.com>
Co-authored-by: Dhruv Sringari <dhruv@dolthub.com>
2022-07-19 08:46:55 -07:00
AndyA 8076eb980b Merge pull request #3848 from dolthub/andy/dolt-1-autoincrement
[no-release-notes] Track AUTO_INCREMENT values on merge for `__DOLT_1__`
2022-07-18 15:09:15 -07:00
Andy Arthur 28560ea0e7 unskipped autoincrement bats for __DOLT_1__, created mirrored enginetest 2022-07-18 11:59:04 -07:00
Dhruv Sringari 46b784c78f Make unique key errors more consistent and fix unique key bats for new format (#3838)
* make unique key errors more consistent and fix bats for new format


unskip already working bats

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

* copyright

* pr comments

* fix gms

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

* fix

* change BulkImportTEA to perform a no-op on RollBack instead of erroring

New machinery in GMS to support INSERT IGNORE on unique keys calls RollBack if a duplicate key error is thrown. This includes primary key collisions as well. The machinery was added since the new format does not have machinery to automatically rollback secondary index updates when an error occurs during the primary index update. 

In the old format, we do have machinery to automatically rollback secondary index updates, so we can leave Rollback as a no-op in this case. Any primary key collision will return an error, causing the secondary indexes to undo their edits.

Co-authored-by: druvv <druvv@users.noreply.github.com>
2022-07-18 11:49:26 -07:00
AndyA 0870e75068 Merge branch 'main' into andy/dolt-docs 2022-07-15 13:27:59 -07:00
Andy Arthur f3613569e2 fixup bats 2022-07-15 12:22:28 -07:00
Andy Arthur da64c61bce swapped docs commands read/write 2022-07-15 11:16:46 -07:00
Andy Arthur 9b375ef548 added bats for dolt docs diff 2022-07-15 11:12:20 -07:00
James Cor 59ed5a54f7 better names for test cases 2022-07-15 10:46:25 -07:00
Andy Arthur 1c5481d6e5 Merge remote-tracking branch 'origin/main' into andy/dolt-docs 2022-07-15 10:01:03 -07:00
James Cor 4031af1a2e merge with main 2022-07-14 16:07:45 -07:00
Maximilian Hoffman e69cd3c457 replicate delete branch (#3816)
* replicate delete branch

* fixes and tests

* zach's comments
2022-07-14 14:31:30 -07:00
James Cor 447b8a5c59 ???? 2022-07-14 14:30:42 -07:00
James Cor 384b57ea8a merge with main 2022-07-14 13:06:09 -07:00
James Cor 5df638889a it works on my machine, it'll definitely pass CI 2022-07-14 13:03:43 -07:00
Andy Arthur 9cd52aa549 update revert.bats 2022-07-14 09:40:41 -07:00
Andy Arthur 85a0a63c0b fixup remotes.bats 2022-07-13 17:47:23 -07:00
James Cor b6d1234df7 Merge branch 'main' into james/local-user 2022-07-13 17:11:33 -07:00
James Cor e78a3bbf28 too many tests :( 2022-07-13 17:06:58 -07:00
Andy Arthur 3a4f1cbd1c remove __DOLT_1__ skips 2022-07-13 16:05:28 -07:00
Andy Arthur 6300afcc70 bats fixes 2022-07-13 16:03:12 -07:00
James Cor 484acc3f7c good luck bats 2022-07-13 15:59:39 -07:00
James Cor af2a75f5cd all tests for sql -q 2022-07-13 15:36:10 -07:00
Andy Arthur 24be649960 rewrote BATS for dolt docs 2022-07-13 14:50:12 -07:00
Dhruv Sringari d2d0864391 [no-release-notes] keyless diff for the new format (#3817)
* keyless diff for the new format

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

* pr comment

Co-authored-by: druvv <druvv@users.noreply.github.com>
2022-07-13 14:42:43 -07:00
Andy Arthur 91710b0dd6 fix status.bats 2022-07-13 14:20:20 -07:00
Dhruv Sringari 59c86f6a3b [no-release-notes] index cat and rebuild for new format (#3814)
* cleanup table package

* delete TextTableWriter

* dolt index [cat, rebuild] for new format

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

* fix tests

* use reflect.DeepEqual when determining column diff results

* use sql type compare instead of reflect.DeepEqual

* update test to use sql column types

* fix semantic merge conflict

Co-authored-by: druvv <druvv@users.noreply.github.com>
2022-07-13 10:03:56 -07:00
Dhruv Sringari 14899d2909 Drop support for deleting conflicts through cli and add cardinality column for keyless table conflicts (#3777)
* reimplement dolt_transaction_merge_stomp at merge layer


add idx

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

* fix tests

* remove stomp conflicts

* conflict reader must be reset each time PartitionRows is called

* reimplement dolt conflict resolve --theirs|--ours through sql path

Also drops manual conflict resolving through cli

* add cardinality columns to dolt_conflicts_table_name for keyless tables

* Adds keyless conflict deleting for new format

* dolt conflicts resolve sql impl for keyless tables

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

* delete cli.ParseKeyValues

* fix tests

* temporarily allow dolt_docs to be mutated from SQL path

Because conflicts resolve uses the SQL path, dolt_docs needs to be editable.

* fix untested code, comment out docs tests

* bats

* fix a couple found merge bugs

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

* if statements...

* add comments

Co-authored-by: druvv <druvv@users.noreply.github.com>
2022-07-12 17:34:20 -07:00
James Cor 3455828f2b fixing test and throwing rror for multi db dir flag 2022-07-12 17:00:25 -07:00
James Cor 278b2b3ebb merge with main 2022-07-12 16:02:49 -07:00
James Cor 5747fa51ba maybe? 2022-07-12 15:53:21 -07:00
Brian Hendriks 48480f302a Merge pull request #3798 from dolthub/bh/user-specific-sess-vars
Support per user session variables in the server config
2022-07-12 14:34:42 -07:00
James Cor 01c2721b23 merge with main 2022-07-12 14:31:17 -07:00
Maximilian Hoffman 3ec0e48b0d dolt_checkout and read replication working set fixes (#3808)
* dolt_checkout and read replication working set fixes

Sql path 'dolt_checkout' used to create a new branch from HEAD
if the checkout name did not have a remote tracking ref. The CLI,
on the other hand, will initialize a local branch if a remote tracking
ref with the same name in the default remote exists. The SQl path
now mirrors the CLI checkout: if we checkout a new branch, like
'new_feature', and we have previously fetched that branch from our
default remote, `dolt_checkout('feature')` will initialize a branch
using the head commit from the remote `feature`.

Second, read replication was creating a local tracking branch for
remote branches (sourced from the master remote), but not creating
corresponding working sets. This let users attach to new branches with
`use db/feature` syntax, but prevented users from
`dolt_checkout('feature')` both for the bug in dolt checkout, but also
because we created an intermediary state with a local branch, but
without a corresponding working set. SQL replication will now fetch,
create the new branch, and create the appropriate working set.

* jennifer's feedback

* unskip
2022-07-12 14:17:28 -07:00
Brian Hendriks eaf0312c3f test fix 2022-07-12 13:35:27 -07:00
Brian Hendriks a6966c222e Merge remote-tracking branch 'remotes/origin/main' into bh/user-specific-sess-vars 2022-07-12 12:24:35 -07:00
Dhruv Sringari 93a2938716 unskip system tables tests (already working) (#3807) 2022-07-12 11:34:38 -07:00
Brian Hendriks 82e3ce1be5 debug 2022-07-11 17:43:10 -07:00
Brian Hendriks fdb5104efe Support per user session variables in the server config 2022-07-11 15:26:38 -07:00
jennifersp da446fd737 Add --track flag to dolt branch (#3786) 2022-07-11 11:56:22 -07:00
James Cor c15917ee36 more test 2022-07-11 11:40:17 -07:00
James Cor d26e7b6019 check if env is valid, and add sql shell test for all 3 specified 2022-07-11 11:37:23 -07:00