@@ -36,6 +36,7 @@ const (
36
36
var (
37
37
// ErrNotSupported when a schema doesn't support that particular lookup.
38
38
ErrNotSupported = errors .New ("not supported" )
39
+ empty = []byte ("-" )
39
40
)
40
41
41
42
type hasChunksForIntervalFunc func (userID , seriesID string , from , through model.Time ) (bool , error )
@@ -699,6 +700,7 @@ func (v9Entries) GetLabelWriteEntries(bucket Bucket, metricName string, labels l
699
700
TableName : bucket .tableName ,
700
701
HashValue : bucket .hashKey + ":" + metricName ,
701
702
RangeValue : encodeRangeKey (seriesRangeKeyV1 , seriesID , nil , nil ),
703
+ Value : empty ,
702
704
},
703
705
}
704
706
@@ -806,6 +808,7 @@ func (s v10Entries) GetLabelWriteEntries(bucket Bucket, metricName string, label
806
808
TableName : bucket .tableName ,
807
809
HashValue : fmt .Sprintf ("%02d:%s:%s" , shard , bucket .hashKey , metricName ),
808
810
RangeValue : encodeRangeKey (seriesRangeKeyV1 , seriesID , nil , nil ),
811
+ Value : empty ,
809
812
},
810
813
}
811
814
@@ -837,6 +840,7 @@ func (v10Entries) GetChunkWriteEntries(bucket Bucket, metricName string, labels
837
840
TableName : bucket .tableName ,
838
841
HashValue : bucket .hashKey + ":" + string (seriesID ),
839
842
RangeValue : encodeRangeKey (chunkTimeRangeKeyV3 , encodedThroughBytes , nil , []byte (chunkID )),
843
+ Value : empty ,
840
844
},
841
845
}
842
846
@@ -949,6 +953,7 @@ func (s v11Entries) GetLabelWriteEntries(bucket Bucket, metricName string, label
949
953
TableName : bucket .tableName ,
950
954
HashValue : fmt .Sprintf ("%02d:%s:%s" , shard , bucket .hashKey , metricName ),
951
955
RangeValue : encodeRangeKey (seriesRangeKeyV1 , seriesID , nil , nil ),
956
+ Value : empty ,
952
957
},
953
958
// Entry for seriesID -> label names
954
959
{
0 commit comments