diff --git a/CHANGELOG.next.md b/CHANGELOG.next.md index 90e3574f3f..bc78ca8138 100644 --- a/CHANGELOG.next.md +++ b/CHANGELOG.next.md @@ -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 diff --git a/scripts/cmd/gocodegen/gocodegen.go b/scripts/cmd/gocodegen/gocodegen.go index 8fff5ed5d9..4ec88739f9 100644 --- a/scripts/cmd/gocodegen/gocodegen.go +++ b/scripts/cmd/gocodegen/gocodegen.go @@ -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"