mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-11 07:11:02 +00:00
Prevent nil pointer exception during Distinct key translation
This commit is contained in:
parent
4b33a7fe16
commit
4fba6bea82
1 changed files with 3 additions and 0 deletions
|
|
@ -6572,6 +6572,9 @@ func (e *executor) translateResult(ctx context.Context, index string, idx *Index
|
|||
|
||||
if field.Keys() {
|
||||
rslt := result.Pos
|
||||
if rslt == nil {
|
||||
return &SignedRow{Pos: &Row{}}, nil
|
||||
}
|
||||
other := &Row{Attrs: rslt.Attrs}
|
||||
for _, segment := range rslt.Segments() {
|
||||
keys, err := e.Cluster.translateIndexIDs(context.Background(), field.ForeignIndex(), segment.Columns())
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue