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