Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
danafallon committed Jul 16, 2024
1 parent d08fb25 commit 7fc4c53
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions clients/snowflake/dialect/dialect_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,18 +257,19 @@ func TestSnowflakeDialect_BuildIsNotToastValueExpression(t *testing.T) {
}

func buildColumns(colTypesMap map[string]typing.KindDetails) *columns.Columns {
// first sort the column names alphabetically to ensure deterministic order
colNames := []string{}
for colName := range colTypesMap {
colNames = append(colNames, colName)
}
// Sort the column names alphabetically to ensure deterministic order
sort.Strings(colNames)

var _cols columns.Columns
var cols columns.Columns
for _, colName := range colNames {
_cols.AddColumn(columns.NewColumn(colName, colTypesMap[colName]))
cols.AddColumn(columns.NewColumn(colName, colTypesMap[colName]))
}
return &_cols

return &cols
}

func TestSnowflakeDialect_BuildMergeQueries_SoftDelete(t *testing.T) {
Expand Down

0 comments on commit 7fc4c53

Please sign in to comment.