Skip to content

BUG: thetaSketch metrics column cannot be included in "select" query #2178

@hamlet-lee

Description

@hamlet-lee

When ingestion

{
       "type": "thetaSketch",
       "name": "userid_sketch",
       "fieldName": "userid"
}

when you issue such query

{
    "queryType": "select",
    "dataSource": "mysource",
    "granularity": "all",
    "dimensions": [
        "my_dimension"
    ],
    "metrics": [
        "userid_sketch"  #not allowed
    ],
    "intervals": [
        "2015-12-26T00:00:00+08:00/2015-12-31T00:00:00+08:00"
    ],
    "pagingSpec": {
        "pagingIdentifiers": {},
        "threshold": 100
    }
}

you get error message like:
com.fasterxml.jackson.databind.JsonMappingException: Unexpected end-of-input: expected close marker for OBJECT (from [Source: java.io.SequenceInputStream@9d71041; line: -1, column: -1]) at [Source: java.io.SequenceInputStream@9d71041; line: -1, column: 2410](through reference chain: java.util.ArrayList[0])

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