Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions queries/cdmq/cdm.js
Original file line number Diff line number Diff line change
Expand Up @@ -3228,10 +3228,18 @@ getMetricDataSets = async function (instance, sets, yearDotMonth) {
for (var i = 0; i < sets.length; i++) {
if (sets[i].breakout != 'undefined') {
for (var j = 0; j < sets[i].breakout.length; j++) {
if (!setBreakouts[i].includes(sets[i].breakout[j])) {
var breakout = sets[i].breakout[j];
// The breakout requested might have a match included, for example, csid=1. We only
// want the string before the '='
var regExp = /([^\=]+)\=([^\=]+)/;
var matches = regExp.exec(breakout);
if (matches) {
breakout = matches[1];
}
if (!setBreakouts[i].includes(breakout)) {
retMsg +=
'ERROR: the breakout [' +
sets[i].breakout[j] +
breakout +
'] was not found for [' +
sets[i].source +
'::' +
Expand Down Expand Up @@ -3270,7 +3278,6 @@ getMetricDataSets = async function (instance, sets, yearDotMonth) {
retCode = 1;
return { 'ret-code': retCode, 'ret-msg': retMsg };
}
//var setBreakouts = await mgetMetricNames(instance, runIds, sources, types, yearDotMonth);

for (var i = 0; i < sets.length; i++) {
// Rearrange the actual data into 'values' section
Expand Down
8 changes: 0 additions & 8 deletions queries/cdmq/get-result-summary.js
Original file line number Diff line number Diff line change
Expand Up @@ -365,14 +365,6 @@ async function main() {
var sourceType = primaryMetrics[k].split('::');
var thisChunk = Math.floor(idx / batchedQuerySize);
var thisIdx = idx % batchedQuerySize;
console.log(
'metricDataSetsChunks[' +
thisChunk +
'][' +
thisIdx +
'] ' +
JSON.stringify(metricDataSetsChunks[thisChunk][thisIdx], null, 2)
);
msampleVal = parseFloat(metricDataSetsChunks[thisChunk][thisIdx].values[''][0].value);
thisSample['values'][primaryMetrics[k]] = msampleVal;
if (allBenchMsampleVals[k] == null) {
Expand Down
Loading