Skip to content

Commit

Permalink
add field type float to FieldType
Browse files Browse the repository at this point in the history
  • Loading branch information
dasfmi committed Aug 13, 2024
1 parent a1fa476 commit fae5242
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion axiom/query/field.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const (
TypeDateTime // datetime
TypeInt // int
TypeLong // long
TypeFloat // float
TypeReal // real
TypeString // string
TypeTimespan // timespan
Expand All @@ -39,7 +40,7 @@ func fieldTypeFromString(s string) (ft FieldType, err error) {
ft |= TypeInt
case TypeLong.String():
ft |= TypeLong
case TypeReal.String(), "float64":
case TypeReal.String(), TypeFloat.String(), "float64", "float":
ft |= TypeReal
case TypeString.String():
ft |= TypeString
Expand Down

0 comments on commit fae5242

Please sign in to comment.