| 41 | } |
| 42 | |
| 43 | func (b *backendBlock) rawIter(ctx context.Context, pool *rowPool) (*rawIterator, error) { |
| 44 | pf, r, err := b.openForIteration(ctx) |
| 45 | if err != nil { |
| 46 | return nil, err |
| 47 | } |
| 48 | |
| 49 | traceIDIndex, _, _ := parquetquery.GetColumnIndexByPath(pf, TraceIDColumnName) |
| 50 | if traceIDIndex < 0 { |
| 51 | return nil, fmt.Errorf("cannot find trace ID column in '%s' in block '%s'", TraceIDColumnName, b.meta.BlockID.String()) |
| 52 | } |
| 53 | |
| 54 | return &rawIterator{b.meta.BlockID.String(), r, traceIDIndex, pool}, nil |
| 55 | } |
| 56 | |
| 57 | type rawIterator struct { |
| 58 | blockID string |