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 ce78037
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 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,9 @@ func fieldTypeFromString(s string) (ft FieldType, err error) {
ft |= TypeInt
case TypeLong.String():
ft |= TypeLong
case TypeReal.String(), "float64":
case TypeFloat.String(), "float64":
ft |= TypeFloat
case TypeReal.String():
ft |= TypeReal
case TypeString.String():
ft |= TypeString
Expand Down Expand Up @@ -80,6 +83,8 @@ func (ft FieldType) String() string {
return "long"
case TypeReal:
return "real"
case TypeFloat:
return "float"
case TypeString:
return "string"
case TypeTimespan:
Expand Down

0 comments on commit ce78037

Please sign in to comment.