Commit Graph

54 Commits

Author SHA1 Message Date
Daylon Wilkins
8aeb1c659e Removed deprecated dolt functions 2023-01-03 02:13:37 -08:00
Taylor Bantle
5fe1a0083d More bats 2022-10-26 17:57:50 -07:00
Taylor Bantle
3f666c98ba Add --merge-base flag to dolt diff 2022-10-26 16:04:43 -07:00
Taylor Bantle
c79bd513b2 Three dot dolt diff syntax 2022-10-26 15:34:30 -07:00
Taylor Bantle
9b9448c426 Two dot diff syntax cli 2022-10-26 14:49:15 -07:00
jennifersp
691997b87a support dolt_diff_summary_table_function (#4363) 2022-09-26 09:48:58 -07:00
Dhruv Sringari
00ae8c0808 Trim trailing nil fields from tuples (#4316)
* skip diffs caused by short tuples

* fix tests

* last fix

* trim null suffixes of val.Tuple's

* fix

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

Co-authored-by: druvv <druvv@users.noreply.github.com>
2022-09-13 17:07:38 -07:00
Jason Fulghum
41c042406c Adding another assertion for the pk field 2022-09-12 10:28:08 -07:00
Jason Fulghum
5127e02435 Removing unnecessary test 2022-09-12 10:27:46 -07:00
Jason Fulghum
4a54e85393 Removing test output code 2022-09-12 10:27:32 -07:00
Tan Yong Zhi
5ab5f499fc Address reviewer comments 2022-09-11 13:53:38 +08:00
Tan Yong Zhi
f8ff89b471 Add test 2022-09-05 14:33:57 +08:00
Tan Yong Zhi
53e6e19c4a Fix even more tests 2022-08-26 12:14:05 +08:00
Tan Yong Zhi
9b4b805268 Fix more failing bats tests 2022-08-26 12:14:05 +08:00
Dhruv Sringari
9758e697c8 Allows diff to be performed across primary key renames (#4156)
* allow diff across pk renames

* pr comments
2022-08-22 14:58:55 -07:00
abmyii
da9d9d9016 dolt diff --limit undefined limit test
Co-authored-by: Tim Sehn <tim@dolthub.com>
2022-08-19 10:28:30 +01:00
Abdurrahmaan Iqbal
7fed8e45cc Show empty diff for --limit 0 2022-08-17 18:14:56 +01:00
Abdurrahmaan Iqbal
e8660cf9b2 Add bats tests for dolt diff --limit 2022-08-17 17:32:03 +01:00
Jason Fulghum
cfd6186899 Updating BATS tests for type casing change from GMS 2022-08-12 09:56:12 -07:00
Dhruv Sringari
15108c7d07 fix for #4037 (#4049)
The ordering of the primary key columns in returned by Schema.GetAllCols() should not determine diffability.

If and only if the primary key tags, their relative ordering, and their types (in the new format) are equal, two schemas are diffable.

Schema.GetPkCols() always returns the columns in ordinal order.
2022-08-10 15:32:27 -07:00
Dhruv Sringari
59b8d649eb fix dolt diff cli cmd not working with spaces in column names (#4024) 2022-08-05 13:37:53 -07:00
Andy Arthur
a1b7d11560 avoid a BATS lightning strike 2022-08-02 10:10:26 -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
Zach Musgrave
5425b79a61 merge main 2022-06-24 09:56:53 -07:00
Zach Musgrave
81aa1d2159 Bug fix and test fix 2022-06-23 17:10:30 -07:00
Zach Musgrave
6c5addb509 Fixed keyless tests 2022-06-23 17:07:15 -07:00
Maximilian Hoffman
ac80ba7770 New format blobs (#3588)
* [no-release-notes] New format blob read/write

Use blob chunker to write blobs out of band. Tests for
round tripping and address walking at the tree level.
Run Blob enginetests and extra large file blob tests.

* NodeStore ref refactors

* fix index

* run verify

* fix more bats

* small PR cleanup

* more changes

* last bats errors
2022-06-22 18:02:48 -07:00
Zach Musgrave
3d60c79e34 Unskip bats suite 2022-06-22 17:27:18 -07:00
Zach Musgrave
9212ae916e Bug fix and skipped a --summary test 2022-06-22 17:19:44 -07:00
Zach Musgrave
e5866c3216 Small test change 2022-06-22 17:07:40 -07:00
Zach Musgrave
4154871627 Tests of --schema and --data flags 2022-06-22 15:18:56 -07:00
Zach Musgrave
fe6e96964f More tests 2022-06-22 15:06:12 -07:00
Zach Musgrave
316b32f535 More tests 2022-06-22 09:47:02 -07:00
Zach Musgrave
a9e2fc1104 Better diff where clause tests 2022-06-21 15:57:51 -07:00
Zach Musgrave
a1903edadc Added where clause support, updated docs and tests 2022-06-21 15:53:04 -07:00
Zach Musgrave
769c5a6de8 Spacing changes 2022-06-17 15:52:00 -07:00
Zach Musgrave
9e1914ad44 Another fixed test 2022-06-16 17:53:15 -07:00
Zach Musgrave
fd12bf033e Fixed another test 2022-06-16 17:51:07 -07:00
Zach Musgrave
bb0f29ee79 Fixed test for schema-only diff 2022-06-16 12:33:24 -07:00
Zach Musgrave
217b239437 Fixed spacing in some tests 2022-06-15 16:49:31 -07:00
Andy Arthur
01587c8c20 more BATS skips for __DOLT_1__ 2022-05-10 14:08:47 -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
jennifersp
94ad6bb78e Retain not null constraint on primary key columns when dropping primary key (#2745) 2022-02-04 15:20:21 -08:00
Vinai Rachakonda
57ab97e743 Fix auto fwt transform to not drop a row on flush (#2490) 2021-12-11 12:35:32 -08:00
Maximilian Hoffman
5976e99c52 default PrimaryKeySchema, maintain primary key ordinals (#2446)
Use `sql.PrimaryKeySchema` in Dolt for PK ordered indexes. Applies to Table and Foreign Key indexes. Column mutation tracks PK Ordinal changes.
2021-12-03 15:56:33 -08:00
James Cor
bebb3e13aa diff must start with diff 2021-11-29 13:17:50 -08:00
James Cor
82785af659 added test to verify that not null constraint sticks even after removing primary key 2021-11-29 13:12:06 -08:00
Zach Musgrave
291fa1317a Fixed foreign key diff tests 2021-11-19 20:08:33 -08:00
Zach Musgrave
87697bedfc Fixed bug in diff with no schema diffs, added a couple new tests to catch it 2021-11-19 16:28:21 -08:00
Zach Musgrave
6394a1dfac Two fixed tests 2021-11-19 15:56:44 -08:00