Slackbot
04/20/2023, 12:51 PMKyle Hoondert
04/20/2023, 1:44 PMnot filter to help with this.
"transformSpec": {
"filter": {
"type": "not",
"field": {
"type": "and",
"fields": [
{
"type": "interval",
"dimension": "__time",
"intervals": [
"2016-06-27T00:00:00/2016-06-27T00:01:00"
]
},
{
"type": "selector",
"dimension": "channel",
"value": "#sv.wikipedia"
}
]
}
}
In the wikipedia example, this would remove any data with interval 2016-06-27T00:00:00/2016-06-27T00:01:00 and channel value of #sv.wikipediaRoss Boswell
04/20/2023, 2:34 PMKyle Hoondert
04/20/2023, 3:02 PMRoss Boswell
04/20/2023, 3:04 PMKyle Hoondert
04/20/2023, 3:06 PMreplace expression in the transform https://druid.apache.org/docs/latest/misc/math-expr.html#string-functionsKyle Hoondert
04/20/2023, 3:07 PM"transformSpec": {
"transforms": [
{ "type": "expression", "name": "columName", "expression": "replace(columnName, badValue, goodValue)" }
],Ross Boswell
04/20/2023, 3:11 PMVadim
04/20/2023, 4:20 PM