Skip to content

regression: quantilesDoublesSketch returns null instead of empty array  #7486

@pdeva

Description

@pdeva

This seems to be new behavior in 0.14

Affected Version

0.14.0-incubating-iap3

Description

query code:

"queryType": "timeseries",
"aggregations": [
    {
      "type": "quantilesDoublesSketch",
      "name": "value",
      "fieldName": "value",
      "k": 512
    }
  ],
  "postAggregations": [
    {
      "type": "quantilesDoublesSketchToQuantiles",
      "name": "qtl",
      "field": {
        "type": "fieldAccess",
        "fieldName": "value"
      },
      "fractions": [
        0.5,
        0.9,
        0.95,
        0.99
      ]
    }
  ],

in the response, whenever there is no value present for the value column, the result would look like this:

{
    "timestamp": "2019-04-16T03:15:00.000Z",
    "result": {
      "qtl": null,
      "value": 0
    }
  },

Previous druid versions would return "qtl": [], which seems like correct behavior rather than just returning null

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions