MCPcopy Create free account
hub / github.com/cortexproject/cortex / allParquetBlocksHaveHashColumn

Function allParquetBlocksHaveHashColumn

pkg/querier/parquet_queryable.go:646–653  ·  view source on GitHub ↗

allParquetBlocksHaveHashColumn checks if all parquet blocks have version >= 2, which means they have the hash column. Parquet blocks with version 1 don't have the hash column, so projection cannot be enabled for them.

(blocks []*bucketindex.Block)

Source from the content-addressed store, hash-verified

644// allParquetBlocksHaveHashColumn checks if all parquet blocks have version >= 2, which means they have the hash column.
645// Parquet blocks with version 1 don't have the hash column, so projection cannot be enabled for them.
646func allParquetBlocksHaveHashColumn(blocks []*bucketindex.Block) bool {
647 for _, b := range blocks {
648 if b.Parquet == nil || b.Parquet.Version < cortex_parquet.ParquetConverterMarkVersion2 {
649 return false
650 }
651 }
652 return true
653}
654
655type shardMatcherLabelsFilter struct {
656 shardMatcher *storepb.ShardMatcher

Callers 2

SelectMethod · 0.85

Calls

no outgoing calls

Tested by 1