NOISSUE - Add SenML ordering (#339)

Signed-off-by: Musilah <nataleigh.nk@gmail.com>
This commit is contained in:
Nataly Musilah
2025-10-29 11:21:16 +03:00
committed by GitHub
parent 7236666e1d
commit 7e4f26ecf5
+19 -4
View File
@@ -288,13 +288,28 @@ func applyOrdering(pm readers.PageMetadata, isAggregated bool, isSenml bool) str
}
aggCols := map[string]bool{
orderByTime: true, "value": true, "publisher": true, "protocol": true,
"subtopic": true, "name": true, "unit": true,
orderByTime: true,
"value": true,
"sum": true,
"publisher": true,
"protocol": true,
"subtopic": true,
"name": true,
"unit": true,
}
senmlCols := map[string]bool{
orderByTime: true, "value": true, "publisher": true, "name": true,
"protocol": true, "channel": true, "subtopic": true, "unit": true,
orderByTime: true,
"value": true,
"bool_value": true,
"string_value": true,
"data_value": true,
"publisher": true,
"name": true,
"protocol": true,
"channel": true,
"subtopic": true,
"unit": true,
}
jsonCols := map[string]bool{