From ad3724f744833d5fd27457cdfad2f51c136830b6 Mon Sep 17 00:00:00 2001 From: Eric Beahan Date: Tue, 2 Feb 2021 14:26:19 -0600 Subject: [PATCH] Add scaled_float type to go generator (#1250) * add scaled_float * changelog --- CHANGELOG.next.md | 1 + scripts/cmd/gocodegen/gocodegen.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.next.md b/CHANGELOG.next.md index b6f2024aa1..478cc2dc34 100644 --- a/CHANGELOG.next.md +++ b/CHANGELOG.next.md @@ -29,6 +29,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"