Skip to content

Commit

Permalink
Add scaled_float type to go generator (#1250) (#1251)
Browse files Browse the repository at this point in the history
* add scaled_float

* changelog
  • Loading branch information
ebeahan authored Feb 2, 2021
1 parent 30e4a10 commit 324c0bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.next.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Thanks, you're awesome :-) -->
#### Bugfixes

* Clean up `event.reference` description. #1181
* Go code generator fails if `scaled_float` type is used. #1250

#### Added

Expand Down
2 changes: 1 addition & 1 deletion scripts/cmd/gocodegen/gocodegen.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ func goDataType(fieldName, elasticsearchDataType string) string {
return "int64"
case "integer":
return "int32"
case "float":
case "float", "scaled_float":
return "float64"
case "date":
return "time.Time"
Expand Down

0 comments on commit 324c0bc

Please sign in to comment.