Skip to content

Commit e46bf85

Browse files
committed
Update tests
1 parent ec7a7bb commit e46bf85

File tree

4 files changed

+56
-3
lines changed

4 files changed

+56
-3
lines changed

pkg/dataobj/internal/dataset/value.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,6 @@ func (v Value) Size() int {
290290
return int(unsafe.Sizeof(int64(0)))
291291
case datasetmd.VALUE_TYPE_UINT64:
292292
return int(unsafe.Sizeof(uint64(0)))
293-
case datasetmd.VALUE_TYPE_STRING:
294-
return int(v.num)
295293
case datasetmd.VALUE_TYPE_BYTE_ARRAY:
296294
return int(v.num)
297295
case datasetmd.VALUE_TYPE_UNSPECIFIED:

pkg/dataobj/querier/iter.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,6 @@ func newSampleIterator(ctx context.Context,
335335
// TODO(twhitney): when iterating over multiple extractors, we need a way to pre-process as much of the line as possible
336336
// In the case of multi-variant expressions, the only difference between the multiple extractors should be the final value, with all
337337
// other filters and processing already done.
338-
statistics.AddDecompressedLines(1)
339338
value, parsedLabels, ok := streamExtractor.Process(timestamp, record.Line, record.Metadata...)
340339
if !ok {
341340
continue

pkg/querier/queryrange/codec_test.go

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1886,6 +1886,20 @@ var (
18861886
},
18871887
"chunksDownloadTime": 0,
18881888
"congestionControlLatency": 0,
1889+
"dataobj":{
1890+
"pageBatches": 0,
1891+
"pagesDownloaded": 0,
1892+
"pagesDownloadedBytes": 0,
1893+
"pagesScanned": 0,
1894+
"postFilterRows": 0,
1895+
"postPredicateRows": 0,
1896+
"postPredicateDecompressedBytes": 0,
1897+
"postPredicateStructuredMetadataBytes": 0,
1898+
"prePredicateDecompressedRows": 0,
1899+
"prePredicateDecompressedBytes": 0,
1900+
"prePredicateDecompressedStructuredMetadataBytes": 0,
1901+
"totalRowsAvailable": 0
1902+
},
18891903
"totalChunksRef": 0,
18901904
"totalChunksDownloaded": 0,
18911905
"chunkRefsFetchTime": 0,
@@ -1912,6 +1926,20 @@ var (
19121926
},
19131927
"chunksDownloadTime": 16,
19141928
"congestionControlLatency": 0,
1929+
"dataobj":{
1930+
"pageBatches": 0,
1931+
"pagesDownloaded": 0,
1932+
"pagesDownloadedBytes": 0,
1933+
"pagesScanned": 0,
1934+
"postFilterRows": 0,
1935+
"postPredicateRows": 0,
1936+
"postPredicateDecompressedBytes": 0,
1937+
"postPredicateStructuredMetadataBytes": 0,
1938+
"prePredicateDecompressedRows": 0,
1939+
"prePredicateDecompressedBytes": 0,
1940+
"prePredicateDecompressedStructuredMetadataBytes": 0,
1941+
"totalRowsAvailable": 0
1942+
},
19151943
"totalChunksRef": 17,
19161944
"totalChunksDownloaded": 18,
19171945
"chunkRefsFetchTime": 19,

pkg/querier/queryrange/prometheus_test.go

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,20 @@ var emptyStats = `"stats": {
3838
"headChunkStructuredMetadataBytes": 0,
3939
"postFilterLines": 0,
4040
"totalDuplicates": 0
41+
},
42+
"dataobj": {
43+
"pageBatches": 0,
44+
"pagesDownloaded": 0,
45+
"pagesDownloadedBytes": 0,
46+
"pagesScanned": 0,
47+
"postFilterRows": 0,
48+
"postPredicateRows": 0,
49+
"postPredicateDecompressedBytes": 0,
50+
"postPredicateStructuredMetadataBytes": 0,
51+
"prePredicateDecompressedRows": 0,
52+
"prePredicateDecompressedBytes": 0,
53+
"prePredicateDecompressedStructuredMetadataBytes": 0,
54+
"totalRowsAvailable": 0
4155
}
4256
},
4357
"totalBatches": 0,
@@ -64,6 +78,20 @@ var emptyStats = `"stats": {
6478
"headChunkStructuredMetadataBytes": 0,
6579
"postFilterLines": 0,
6680
"totalDuplicates": 0
81+
},
82+
"dataobj": {
83+
"pageBatches": 0,
84+
"pagesDownloaded": 0,
85+
"pagesDownloadedBytes": 0,
86+
"pagesScanned": 0,
87+
"postFilterRows": 0,
88+
"postPredicateRows": 0,
89+
"postPredicateDecompressedBytes": 0,
90+
"postPredicateStructuredMetadataBytes": 0,
91+
"prePredicateDecompressedRows": 0,
92+
"prePredicateDecompressedBytes": 0,
93+
"prePredicateDecompressedStructuredMetadataBytes": 0,
94+
"totalRowsAvailable": 0
6795
}
6896
}
6997
},

0 commit comments

Comments
 (0)