From 0bdbf77bf03b7569db4832f6f840789f6a9b4b02 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 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"