元数据库:日期范围过滤到本机查询

时间:2018-01-20 10:40:18

标签: druid metabase

我使用Metabase进行数据可视化。

Druid(暗示-2.2.3)是数据存储。

创建元数据库问题我在仪表板上按日期范围过滤所有内容。

当我尝试将日期范围过滤器添加到由原生查询创建的问题时,元数据库无法找到用于过滤的时间戳字段,并说:“无有效字段”: enter image description here

同样的问题,即使我使用“查看原生查询”选项将UI构造函数创建的问题转换为本机查询:

enter image description here

为德鲁伊生成本机查询:

{
    "intervals": ["1900-01-01/2100-01-01"],
    "granularity": {
        "type": "period",
        "period": "P1D",
        "timeZone": "UTC"
    },
    "context": {
        "timeout": 60000
    },
    "queryType": "timeseries",
    "dataSource": "DotmailerCampaign",
    "aggregations": [{
        "type": "javascript",
        "name": "sum",
        "fieldNames": ["numOpens"],
        "fnReset": "function() { return 0 ; }",
        "fnAggregate": "function(current, x) { return current + (parseFloat(x) || 0); }",
        "fnCombine": "function(x, y) { return x + y; }"
    }],
    "descending": false
}

错过了什么?

0 个答案:

没有答案