Skip to content

Commit

Permalink
fix getVisibleMetadataList
Browse files Browse the repository at this point in the history
  • Loading branch information
jt2594838 committed Jan 10, 2025
1 parent 198a0fb commit 5ecf085
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,7 @@ public List<ChunkMetadata> getVisibleMetadataList(
if (metadatasForQuery.containsKey(deviceId)
&& metadatasForQuery.get(deviceId).containsKey(measurementId)) {
for (ChunkMetadata chunkMetaData : metadatasForQuery.get(deviceId).get(measurementId)) {
// filter: if a device'measurement is defined as float type, and data has been persistent.
// Then someone deletes the timeseries and recreate it with Int type. We have to ignore
// all the stale data.
if (dataType == null || dataType.equals(chunkMetaData.getDataType())) {
if (dataType == null || dataType.isCompatible(chunkMetaData.getDataType())) {
chunkMetadataList.add(chunkMetaData);
}
}
Expand Down

0 comments on commit 5ecf085

Please sign in to comment.