-
Notifications
You must be signed in to change notification settings - Fork 8
chore: convert 'null' string array value to list with 'null' value #186
Changes from all commits
da7e1ec
5336c3b
61750ec
8cb1ea6
44bf5bc
cb44fd5
76e4bb4
53737a6
a17bd2b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
{ | ||
"row": [ | ||
{ | ||
"columns": { | ||
"INTERVAL_START_TIME": { | ||
"valueType": "LONG", | ||
"long": "1615593600000" | ||
}, | ||
"SERVICE.labels": { | ||
"valueType": "STRING_ARRAY" | ||
}, | ||
"SUM_SERVICE.numCalls_[]": { | ||
"valueType": "LONG", | ||
"long": "1616" | ||
} | ||
} | ||
}, | ||
{ | ||
"columns": { | ||
"INTERVAL_START_TIME": { | ||
"valueType": "LONG", | ||
"long": "1615593600000" | ||
}, | ||
"SERVICE.labels": { | ||
"valueType": "STRING_ARRAY", | ||
"string_array": ["label1"] | ||
}, | ||
"SUM_SERVICE.numCalls_[]": { | ||
"valueType": "LONG", | ||
"long": "1989" | ||
} | ||
} | ||
}, | ||
{ | ||
"columns": { | ||
"INTERVAL_START_TIME": { | ||
"valueType": "LONG", | ||
"long": "1615597200000" | ||
}, | ||
"SERVICE.labels": { | ||
"valueType": "STRING_ARRAY" | ||
}, | ||
"SUM_SERVICE.numCalls_[]": { | ||
"valueType": "LONG", | ||
"long": "2525" | ||
} | ||
} | ||
}, | ||
{ | ||
"columns": { | ||
"INTERVAL_START_TIME": { | ||
"valueType": "LONG", | ||
"long": "1615597200000" | ||
}, | ||
"SERVICE.labels": { | ||
"valueType": "STRING_ARRAY", | ||
"string_array": ["label1"] | ||
}, | ||
"SUM_SERVICE.numCalls_[]": { | ||
"valueType": "LONG", | ||
"long": "1977" | ||
} | ||
} | ||
}, | ||
{ | ||
"columns": { | ||
"INTERVAL_START_TIME": { | ||
"valueType": "LONG", | ||
"long": "1615593600000" | ||
}, | ||
"SUM_SERVICE.numCalls_[]": { | ||
"valueType": "LONG", | ||
"long": "27485" | ||
}, | ||
"SERVICE.labels": { | ||
"valueType": "STRING", | ||
"string": "__Other" | ||
} | ||
} | ||
}, | ||
{ | ||
"columns": { | ||
"INTERVAL_START_TIME": { | ||
"valueType": "LONG", | ||
"long": "1615597200000" | ||
}, | ||
"SUM_SERVICE.numCalls_[]": { | ||
"valueType": "LONG", | ||
"long": "27192" | ||
}, | ||
"SERVICE.labels": { | ||
"valueType": "STRING", | ||
"string": "__Other" | ||
} | ||
} | ||
} | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
{ | ||
"row": [{ | ||
"columns": { | ||
"INTERVAL_START_TIME": { | ||
"valueType": "LONG", | ||
"long": "1615593600000" | ||
}, | ||
"SERVICE.labels": { | ||
"valueType": "STRING_ARRAY" | ||
}, | ||
"SUM_SERVICE.numCalls_[]": { | ||
"valueType": "LONG", | ||
"long": "1616" | ||
} | ||
} | ||
}, { | ||
"columns": { | ||
"INTERVAL_START_TIME": { | ||
"valueType": "LONG", | ||
"long": "1615593600000" | ||
}, | ||
"SERVICE.labels": { | ||
"valueType": "STRING_ARRAY", | ||
"string_array": ["label1"] | ||
}, | ||
"SUM_SERVICE.numCalls_[]": { | ||
"valueType": "LONG", | ||
"long": "1989" | ||
} | ||
} | ||
}, { | ||
"columns": { | ||
"INTERVAL_START_TIME": { | ||
"valueType": "LONG", | ||
"long": "1615597200000" | ||
}, | ||
"SERVICE.labels": { | ||
"valueType": "STRING_ARRAY" | ||
}, | ||
"SUM_SERVICE.numCalls_[]": { | ||
"valueType": "LONG", | ||
"long": "2525" | ||
} | ||
} | ||
}, { | ||
"columns": { | ||
"INTERVAL_START_TIME": { | ||
"valueType": "LONG", | ||
"long": "1615597200000" | ||
}, | ||
"SERVICE.labels": { | ||
"valueType": "STRING_ARRAY", | ||
"string_array": ["label1"] | ||
}, | ||
"SUM_SERVICE.numCalls_[]": { | ||
"valueType": "LONG", | ||
"long": "1977" | ||
} | ||
} | ||
}, { | ||
"columns": { | ||
"INTERVAL_START_TIME": { | ||
"valueType": "LONG", | ||
"long": "1615600800000" | ||
}, | ||
"SERVICE.labels": { | ||
"valueType": "STRING_ARRAY", | ||
"string_array": ["label1"] | ||
}, | ||
"SUM_SERVICE.numCalls_[]": { | ||
"valueType": "LONG", | ||
"long": "1965" | ||
} | ||
} | ||
}, { | ||
"columns": { | ||
"INTERVAL_START_TIME": { | ||
"valueType": "LONG", | ||
"long": "1615600800000" | ||
}, | ||
"SERVICE.labels": { | ||
"valueType": "STRING_ARRAY" | ||
}, | ||
"SUM_SERVICE.numCalls_[]": { | ||
"valueType": "LONG", | ||
"long": "2323" | ||
} | ||
} | ||
}] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"row": [{ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Whats the query look like for this for gateway? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh! okey, it will be an internal query. Or would be IN query from GraphQL to gateway too. That is currently not expressible, right? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So, if a gateway client needs to explicitly ask for a
This will be opposite to the current case - where we don't want the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We have all queries in the test
|
||
"columns": { | ||
"INTERVAL_START_TIME": { | ||
"valueType": "LONG", | ||
"long": "1615593600000" | ||
}, | ||
"SERVICE.labels": { | ||
"valueType": "STRING_ARRAY" | ||
}, | ||
"SUM_SERVICE.numCalls_[]": { | ||
"valueType": "LONG", | ||
"long": "1616" | ||
} | ||
} | ||
}, { | ||
"columns": { | ||
"INTERVAL_START_TIME": { | ||
"valueType": "LONG", | ||
"long": "1615597200000" | ||
}, | ||
"SERVICE.labels": { | ||
"valueType": "STRING_ARRAY" | ||
}, | ||
"SUM_SERVICE.numCalls_[]": { | ||
"valueType": "LONG", | ||
"long": "2525" | ||
} | ||
} | ||
}, { | ||
"columns": { | ||
"INTERVAL_START_TIME": { | ||
"valueType": "LONG", | ||
"long": "1615600800000" | ||
}, | ||
"SERVICE.labels": { | ||
"valueType": "STRING_ARRAY" | ||
}, | ||
"SUM_SERVICE.numCalls_[]": { | ||
"valueType": "LONG", | ||
"long": "2323" | ||
} | ||
} | ||
}] | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we adjust this naming and maybe put it with the conversion in the other direction (is that in this file?) - it's usage and implementation make sense, but the naming still feels very unintuitive. Not required if this introduces and meaningful refactoring.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not refactoring. Added a link to method which handles conversion in other direction.