mirror of
https://github.com/dolthub/dolt.git
synced 2026-04-28 12:40:16 -05:00
Fix sql-diff skipped tests
This commit is contained in:
@@ -362,7 +362,6 @@ SQL
|
||||
dolt commit -m "Reconciled with newbranch"
|
||||
|
||||
# confirm that both branches have the same content
|
||||
dolt diff -r sql firstbranch newbranch
|
||||
run dolt diff -r sql firstbranch newbranch
|
||||
[ "$status" -eq 0 ]
|
||||
[ "$output" = "" ]
|
||||
@@ -483,6 +482,7 @@ SQL
|
||||
[ ! "$output" = "" ]
|
||||
|
||||
dolt diff -r sql firstbranch newbranch > query
|
||||
grep 'RENAME' query
|
||||
dolt checkout firstbranch
|
||||
cat query
|
||||
dolt sql < query
|
||||
@@ -490,11 +490,12 @@ SQL
|
||||
dolt commit -m "Reconciled with newbranch"
|
||||
|
||||
# confirm that both branches have the same content
|
||||
skip "this test is generating extra sql"
|
||||
# Note: For RENAME TABLE with schema changes, data diffs are skipped due to incompatible schemas
|
||||
# So we expect there to still be data differences after applying schema changes
|
||||
run dolt diff -r sql firstbranch newbranch
|
||||
[ "$status" -eq 0 ]
|
||||
[ "$output" = "" ]
|
||||
grep 'RENAME' query
|
||||
# The output should contain the data differences that couldn't be included in the SQL diff
|
||||
[[ "$output" =~ "INSERT INTO" ]] || false
|
||||
}
|
||||
|
||||
@test "sql-diff: reconciles CREATE/ALTER/DROP VIEW" {
|
||||
|
||||
Reference in New Issue
Block a user