Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Commit

Permalink
Merge pull request #89 from monzo/make-clustering-order-column-lower-…
Browse files Browse the repository at this point in the history
…case-in-generator

Make clustering order column lowercase in generator
  • Loading branch information
gcjensen authored Jan 10, 2024
2 parents ac4547a + 7cd0fb1 commit c4bedde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func createTableStmt(createStmt, keySpace, cf string, partitionKeys, colKeys []s
if len(order) > 0 {
orderStrs := make([]string, len(order))
for i, o := range order {
orderStrs[i] = fmt.Sprintf("%v %v", o.Column, o.Direction.String())
orderStrs[i] = fmt.Sprintf("%v %v", strings.ToLower(o.Column), o.Direction.String())
}
orderLine := fmt.Sprintf("WITH CLUSTERING ORDER BY (%v)", strings.Join(orderStrs, ", "))
lines = append(lines, orderLine)
Expand Down

0 comments on commit c4bedde

Please # to comment.