From 5bfc7edd1fe3b61a4b142d115e666bb10eb312cf Mon Sep 17 00:00:00 2001 From: Eric Beahan Date: Tue, 2 Feb 2021 12:09:56 -0600 Subject: [PATCH 1/2] add scaled_float --- scripts/cmd/gocodegen/gocodegen.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" From 1ea46f0ba522a283dc8c0dcfb2922f84a347b3cd Mon Sep 17 00:00:00 2001 From: Eric Beahan Date: Tue, 2 Feb 2021 12:19:01 -0600 Subject: [PATCH 2/2] changelog --- CHANGELOG.next.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.next.md b/CHANGELOG.next.md index d353014c18..abbe041d75 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