Skip to content

Commit

Permalink
Fix NUMERIC NOT NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
sonatard committed Jun 17, 2024
1 parent 7cc6a2c commit 4007218
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/hammer/diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,8 @@ func (g *Generator) setDefault(col spansql.ColumnDef) spansql.ColumnDef {
col.Default = spansql.IntegerLiteral(0)
case spansql.Float64:
col.Default = spansql.FloatLiteral(0)
case spansql.Numeric:
col.Default = spansql.FloatLiteral(0)
case spansql.String:
col.Default = spansql.StringLiteral("")
case spansql.Bytes:
Expand Down

0 comments on commit 4007218

Please sign in to comment.