Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions go/cmd/dolt/commands/diff_output.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,7 @@ func (s sqlDiffWriter) WriteViewDiff(ctx context.Context, viewName, oldDefn, new
}

func (s sqlDiffWriter) WriteTableDiffStats(diffStats []diffStatistics, oldColLen, newColLen int, areTablesKeyless bool) error {
// TODO: implement this
return errors.New("diff stats are not supported for sql output")
return errors.New("invalid output format: sql. SQL format diffs only rendered for schema or data changes")
}

func (s sqlDiffWriter) RowWriter(fromTableInfo, toTableInfo *diff.TableInfo, tds diff.TableDeltaSummary, unionSch sql.Schema) (diff.SqlRowDiffWriter, error) {
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/bats/sql-diff.bats
Original file line number Diff line number Diff line change
Expand Up @@ -888,5 +888,5 @@ EOF
dolt sql -q "create table t (i int primary key);"
run dolt diff --stat -r sql
[ "$status" -eq 1 ]
[[ "$output" =~ "diff stats are not supported for sql output" ]] || false
}
[[ "$output" =~ "invalid output format: sql. SQL format diffs only rendered for schema or data changes" ]] || false
}
Loading