Skip to content

Filter by time measure doesn't workΒ #9435

@Anger79

Description

@Anger79

Problem

I don't understand how to apply filter by time measure (timestampMin or timestampMax) in a cubejs playground and whether it's possible or not. I'm getting "TypeError: Cannot read properties of null (reading 'split')" when I'm trying to add a filter like timestampMin in date range/not in date range/before date/after date. No sql generated, "Run Query" button is inactive.

I do able to filter by requests measure.

Cube.js schema

cube(`Cube`, {
  ...
    measures: {
        requests: {
            sql: `count`,
            type: `sum`
        },
        timestampMin: {
            sql: `min(timestamp)`,
            type: `time`
        },
        timestampMax: {
            sql: `max(timestamp)`,
            type: `time`
        },
    },
    dimensions: {
        ....
        timestamp: {
            sql: `timestamp`,
            type: `time`
        },
        .....
})

Cubejs version: v1.2.30

Data source: Clickhouse

Metadata

Metadata

Assignees

Labels

bugLEGACY. Use the Bug issue type instead

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions