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