restore creation of column keys in inspect when they do not exist

This sounds completely conterintuitive but everything relies on it.
This commit is contained in:
Nia Weiss 2020-10-06 12:41:08 -04:00
parent fe47d4764e
commit da157a5aa4
No known key found for this signature in database
GPG key ID: 895E83409BFDA1BB

View file

@ -663,6 +663,13 @@ func (h *GRPCHandler) Inspect(req *pb.InspectRequest, stream pb.Pilosa_InspectSe
}
for _, col := range cols {
// Everything relies on the creation of index keys here.
// This is a bug which has become expected behavior.
_, err := h.api.TranslateIndexKey(stream.Context(), req.Index, col, true)
if err != nil {
return errors.Wrapf(err, "get or create index key %q", col)
}
rowResp := &pb.RowResponse{
Headers: ci,
Columns: []*pb.ColumnResponse{