Merge pull request #937 from niaow/v2.1-break-inspect-more

Restore creation of column keys in inspect when they do not exist
This commit is contained in:
Nia 2020-10-06 14:00:19 -04:00 committed by GitHub
commit 33af6c1ac7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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{