James Cor
a21c0e4927
Merge branch 'main' into JCOR11599-b8bd869a
2023-05-23 12:26:46 -07:00
Neil Macneale IV
82cc919135
Enable 'dolt sql' to connect to local server instances.
...
Smart routing for sql command execution against running local servers.
https://github.com/dolthub/dolt/issues/3922
2023-05-22 10:28:25 -07:00
James Cor
28b0664e60
fix bats tests
2023-05-19 11:13:10 -07:00
Neil Macneale IV
4aeaf71f78
Print errors with some context about the remote server
2023-05-18 16:46:18 -07:00
James Cor
dfd96772d6
fixing a test
2023-05-18 16:45:17 -07:00
Neil Macneale IV
d5214af321
Sort the DB names found in multirepo env
...
Also, avoid using /tmp in tests. Could get polluted
2023-05-18 15:27:12 -07:00
Neil Macneale IV
55b8b111f2
Name the sql-local-remote tests correctly
2023-05-18 15:26:00 -07:00
Neil Macneale IV
406052a078
Remove some debugging strings
2023-05-18 15:26:00 -07:00
Neil Macneale IV
fe34fc9e7a
Update sql-server.bats to reflect new behavior
2023-05-18 15:26:00 -07:00
Neil Macneale IV
eaa4cddb2b
Allow for unresolved targetEnvironment.
...
Not all commands, or even all SQL statements need databases.
2023-05-18 15:26:00 -07:00
Neil Macneale IV
2a7099144b
New bats tests to verify we pick local or remote mode correctly
2023-05-18 15:26:00 -07:00
Neil Macneale IV
173a26cbb8
Fix broken test which allowed for non-existant --data-dir value
2023-05-18 15:26:00 -07:00
Neil Macneale IV
63ee4eb798
Bats tests for --data-dir and --use-db
2023-05-18 15:26:00 -07:00
Tim Sehn
3b43b06cef
Remove extraneous spaces
2023-05-18 13:24:42 -07:00
Tim Sehn
bdff9be723
More thorough load data bats tests
2023-05-18 13:15:22 -07:00
Tim Sehn
4be9963b63
More load data tests
2023-05-18 12:42:43 -07:00
Tim Sehn
ce0d917c64
Load data testing progress
2023-05-18 12:08:23 -07:00
Tim Sehn
fcb5455fd0
Stubs and a couple bats tests for load data bats tests improvements
2023-05-18 11:11:31 -07:00
Aaron Son
6ea915ca4d
Merge remote-tracking branch 'origin/main' into aaron/block-on-cluster-replication
2023-05-16 16:57:09 -07:00
Aaron Son
af184681a4
Merge pull request #5949 from dolthub/aaron/cluster-replication-heartbeats
...
go: sqle: cluster: commithook: Periodically heartbeat to a standby when we are primary. This allows replication_lag on the standby to more accurately reflect the possible drift locally.
2023-05-16 16:51:08 -07:00
Neil Macneale IV
7a740f3fa0
Use UTC timestamp in date comparison test.
2023-05-16 15:08:31 -07:00
Aaron Son
6ccae75a8d
integration-tests/go-sql-server-driver: Add TestCluster/last_updated_heartbeats test which asserts that last_updated does not grow while there are no writes to replicate.
2023-05-16 14:21:41 -07:00
Neil Macneale IV
a19dadd32b
Use UTC timestamp in date comparison test.
...
Allows tests to run on laptops which aren't in UTC.
2023-05-16 13:24:07 -07:00
Jason Fulghum
3899ddf05a
First pass at FK equality checking to handle resolved/unresolved FKs.
2023-05-15 15:35:14 -07:00
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