mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-05 16:15:56 +00:00
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:
commit
33af6c1ac7
1 changed files with 7 additions and 0 deletions
|
|
@ -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{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue