Skip to content

Commit

Permalink
fix:name and remove wkt marshl MaxDecimalDigits limit
Browse files Browse the repository at this point in the history
Signed-off-by: tasty-gumi <[email protected]>
  • Loading branch information
tasty-gumi committed Nov 7, 2024
1 parent 82ff5e2 commit 59fd0ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions client/entity/field_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ func (t FieldType) String() string {
return "Array"
case FieldTypeJSON:
return "JSON"
case FieldTypeGeometry:
return "Geometry"
case FieldTypeBinaryVector:
return "[]byte"
case FieldTypeFloatVector:
Expand Down
4 changes: 2 additions & 2 deletions internal/proxy/validate_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ func validateGeometryFieldSearchResult(array *[]*schemapb.FieldData) error {
log.Warn("translate the wkb format search result into geometry failed")
return err
}
// MaxDecimalDigits set as 6 temporarily
wktStr, err := wkt.Marshal(geomT, wkt.EncodeOptionWithMaxDecimalDigits(6))
// now remove MaxDecimalDigits limit
wktStr, err := wkt.Marshal(geomT)
if err != nil {
log.Warn("translate the geomery into its wkt failed")
return err
Expand Down

0 comments on commit 59fd0ee

Please sign in to comment.