Commit Graph

2019 Commits

Author SHA1 Message Date
Aaron Son e1cb32e022 Merge remote-tracking branch 'origin/main' into aaron/block-on-cluster-replication 2023-05-15 15:04:44 -07:00
Aaron Son 535e59141d integration-tests/go-sql-server-driver: Cluster, dolt_cluster_ack_writes_timeout_secs, add a failing test to assert that dolt_branch modifications are waited on. 2023-05-15 14:00:04 -07:00
Nick Tobey 725b148a78 Update drop-create.bats to use new generated constraint name. 2023-05-12 12:18:19 -07:00
Nick Tobey 69216e0acd Merge branch 'main' of github.com:dolthub/dolt into nicktobey/create-like 2023-05-12 11:25:31 -07:00
Nick Tobey 2953275da9 Update tests. 2023-05-11 16:47:48 -07:00
Aaron Son dfdb4a4b2a go: sqle: cluster: Implement a first pass at dolt_cluster_ack_writes_timeout_secs.
Setting this system variable to a non-zero value on a primary replica in a
sql-server cluster will cause dolt to block a SQL client performing a commit
until that client's commit is fully replicated to the replicas.

If there is a timeout, currently a warning is logged in the logs.
2023-05-11 15:50:43 -07:00
Andy Arthur 2fa52271dc Merge remote-tracking branch 'origin/main' into andy/validate-not-null 2023-05-11 13:49:25 -07:00
Jason Fulghum f290614b3d Merge pull request #5922 from dolthub/fulghum/schema-merge
Changing schema equality to not consider tag when comparing columns
2023-05-11 12:58:00 -07:00
Aaron Son 4c0f974a28 Merge pull request #5919 from dolthub/aaron/sql-dolt_log_level-variable
sql-server: `dolt_log_level` system variable allows reading the current log level for the server and setting a new one.
2023-05-11 10:27:43 -07:00
Jason Fulghum da44204f58 Pulling out tag related checks in test 2023-05-11 10:27:39 -07:00
Nick Tobey 68f6d036ba Remove print debugging. 2023-05-10 16:15:20 -07:00
Nick Tobey abad9bc585 Use bats tests to verify dolt stash --help 2023-05-10 16:12:48 -07:00
Jason Fulghum 8f8e05c674 Changing schema equality to not consider tag when comparing columns 2023-05-10 16:04:52 -07:00
Andy Arthur 1186d6de80 go/doltcore/merge: register not null constraint violations for left-side NULLs 2023-05-10 15:58:57 -07:00
Nick Tobey ab6152c4f3 Fix bats test that verifies the behavior of --help 2023-05-10 15:49:48 -07:00
Nick Tobey 630a53b68f Add bats test for per-table constraint check names. 2023-05-10 15:19:21 -07:00
Aaron Son 2674c3cf2a sql-server: Allow dolt_log_level system variable to receive writes and dynamically update the log level. 2023-05-10 14:46:45 -07:00
Aaron Son 663d2e3181 sql-server: Expose the current server log level through the dolt_log_level system variable. 2023-05-10 14:25:41 -07:00
Aaron Son 0d024eb0a3 Merge remote-tracking branch 'origin/main' into aaron/dolt_gc-unavailable-on-standby-replica 2023-05-10 10:10:01 -07:00
James Cor e40a3b303a sort pk??? 2023-05-09 14:34:41 -07:00
Aaron Son 6e6ed1b77b Fix result ordering in integration test. 2023-05-09 14:08:19 -07:00
Aaron Son acf99f1edf go: sqle: dolt_gc.go: Disable CALL dolt_gc() on a standby replica, where it is not currently safe. Shallow GC is still available. 2023-05-09 13:41:16 -07:00
jennifersp 537a651690 fix empty string import for ENUM and SET types (#5856) 2023-05-09 07:15:44 -07:00
Neil Macneale IV 9575228ae5 Refactor SQLEngine instantiation into the Queryist interface
SQL Command arguments which pertain to instantiating a local SqlEngine instance are now global arguments which come before the sql subcommand. This is a breaking change for users of the sql command who pass in the following arguments:

--data-dir
--user
--doltcfg-dir
--privilege-file
--branch-control-file
All of the test changes pertain to moving those arguments, and nothing else. This is by design to ensure we don't have broader impact to the interface.

With this abstraction in place, we can put a different Queryist implementation in place - specifically one which talks to a remotes server - which is the end goal.

See: https://github.com/dolthub/dolt/issues/3922
2023-05-08 16:50:46 -07:00
AndyA c203c10589 Merge pull request #5874 from dolthub/andy/merge-unresolved-fk-fix
go/doltcore/merge: use unresolved-aware fk matching method in Foreign…
2023-05-08 09:30:34 -07:00
Nick Tobey 91dfcb5aa9 Merge pull request #5870 from dolthub/nicktobey/doltignore
Improve dolt_ignore pattern rules
2023-05-05 15:14:41 -07:00
Nick Tobey 952fcc81f9 Merge pull request #5881 from dolthub/nicktobey/bodega-cats
Remove overzealous validation check.
2023-05-05 14:38:04 -07:00
Neil Macneale IV adae7f3bc7 Fix bats test which is not checking for '|| false' 2023-05-05 14:09:42 -07:00
Nick Tobey f03b2240dd Skip dolt_ignore bats tests on __LD_1__ format. 2023-05-05 14:03:53 -07:00
Neil Macneale IV 15f60698f9 Move cli flags in bats tests to make them compliant 2023-05-05 11:46:46 -07:00
Nick Tobey e3806bdd4d Add bats test for detectign equivalent patterns. 2023-05-05 11:03:12 -07:00
Nick Tobey 2a933b5c59 Update error messages in tests.
With the preemptive check removed, the error messages actually become more informative!
2023-05-05 10:54:23 -07:00
Zach Musgrave 75b1395510 New integration test ala aaron 2023-05-05 07:42:32 -07:00
Nick Tobey a57f9cfed1 Update error messages in tests.
With the preemptive check removed, the error messages actually become more informative!
2023-05-04 16:16:04 -07:00
Daylon Wilkins c1a3768493 Added "read" permission to branch control, now force longest match and denial rules 2023-05-04 15:14:13 -07:00
Nick Tobey d87f6d9fc1 Add bats check for importing table with absent auto-increment column. 2023-05-04 14:25:08 -07:00
Daylon Wilkins 40a859500f Fixed branch control issue causing a nil panic under very specific conditions 2023-05-04 07:58:51 -07:00
Andy Arthur 1ca6a1277c go/doltcore/merge: use unresolved-aware fk matching method in ForeignKeysMerge 2023-05-03 15:23:01 -07:00
Nick Tobey 1e91d99634 Update ignore.bats 2023-05-03 12:24:35 -07:00
Nick Tobey 689cc0c6c8 Add bats tests for % wildcard. 2023-05-03 11:40:02 -07:00
Tim Sehn dea6dcb6a2 Testing dolt commit in branch control bats tests 2023-05-03 08:14:09 -07:00
Nick Tobey 3838afe3ad Merge pull request #5853 from dolthub/nicktobey/doltignore
`dolt diff` shouldn't print ignored tables.
2023-05-02 17:48:17 -07:00
Nick Tobey a322a31408 Add bats tests for dolt diff -R 2023-05-02 15:16:09 -07:00
Neil Macneale IV aeadf45fd2 BATS Executor Exemplar
Utility tool to run a lot-o-bats tasks, and summarize their results.

Currently doesn't run on windows, and is primary geared toward local dev testing.
2023-05-02 14:56:24 -07:00
Nick Tobey 9e3528db9c Merge pull request #5842 from dolthub/nicktobey/tables_not_files
Output for `dolt status` should say "tables", not "files"
2023-05-02 11:17:47 -07:00
Nick Tobey 6c67b65afe Only suppress diff of ignored table when they're being created.
If a table that matches a dolt_ignore rule has already been staged or committed, those subsequent changes should be displayed by `dolt diff`
2023-05-01 17:35:42 -07:00
Nick Tobey 3fcb243eac Update formatting of bats tests. 2023-05-01 15:40:29 -07:00
Nick Tobey 07465b6e28 Fix bats tests that reference old dolt status output. 2023-05-01 15:30:53 -07:00
Nick Tobey e2a84f6f7d Add test that dolt diff doesn't print ignored tables. 2023-05-01 15:20:14 -07:00
Nick Tobey 996a143ff2 Replace mentions of "files" in bats tests with "tables" 2023-05-01 13:47:01 -07:00