mutex field data type should be string not []string

This commit is contained in:
Matt Jaffee 2020-01-12 11:15:58 -06:00
parent ba70bf3079
commit ff9ad9a4fe
No known key found for this signature in database
GPG key ID: 08A3DFFF987B11BF

View file

@ -80,11 +80,16 @@ func (h grpcHandler) QueryPQL(req *pb.QueryPQLRequest, stream pb.Pilosa_QueryPQL
// uint64, bool, etc.) based on the Pilosa field type.
func fieldDataType(f *pilosa.Field) string {
switch f.Type() {
case "set", "mutex":
case "set":
if f.Keys() {
return "[]string"
}
return "[]uint64"
case "mutex":
if f.Keys() {
return "string"
}
return "uint64"
case "int":
if f.Keys() {
return "string"