Skip to content

Commit

Permalink
Skip disk for cc an C clusters
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbyiliev committed Nov 17, 2024
1 parent 913bc62 commit 98e34ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/materialize/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ func (b *ClusterBuilder) GenerateClusterOptions() string {
p = append(p, i)
}

if b.disk {
// Only add DISK to the quiery builder if it's enabled AND size doesn't end in either "cc" or "C"
if b.disk && !strings.HasSuffix(b.size, "cc") && !strings.HasSuffix(b.size, "C") {
i := fmt.Sprintf(`DISK`)
p = append(p, i)
}
Expand Down

0 comments on commit 98e34ab

Please sign in to comment.