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)
| 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. |
| 646 | func 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 | |
| 655 | type shardMatcherLabelsFilter struct { |
| 656 | shardMatcher *storepb.ShardMatcher |
no outgoing calls