MCPcopy
hub / github.com/grafana/tempo / openParquetFile

Function openParquetFile

cmd/tempo-cli/cmd-convert-parquet-3to4.go:118–136  ·  view source on GitHub ↗
(blockPath string)

Source from the content-addressed store, hash-verified

116}
117
118func openParquetFile(blockPath string) (*os.File, *parquet.File, error) {
119 inFile := filepath.Join(blockPath, "data.parquet")
120 in, err := os.Open(inFile)
121 if err != nil {
122 return nil, nil, err
123 }
124
125 inStat, err := in.Stat()
126 if err != nil {
127 return nil, nil, err
128 }
129
130 pf, err := parquet.OpenFile(in, inStat.Size())
131 if err != nil {
132 return nil, nil, err
133 }
134
135 return in, pf, nil
136}
137
138func readBlockMeta(blockPath string) (*backend.BlockMeta, error) {
139 metaFile := filepath.Join(blockPath, "meta.json")

Callers 3

RunMethod · 0.85
collectAttributeStatsMethod · 0.85
RunMethod · 0.85

Calls 2

JoinMethod · 0.65
SizeMethod · 0.65

Tested by

no test coverage detected