我现在正在使用 druid 很短的时间,并且正在测试注册的查找功能。
我已经在 http://:/druid/coordinator/v1/lookups 下创建了查找,如下所示:
{
"__default": {
"home_post_code": {
"type": "map",
"map": {"13210": "Syracuse, NY"}
}
}
}
据我了解,对于下面查询部分中声明的维度“home_post_code”,此映射应将所有出现的值“13210”替换为“纽约州锡拉丘兹”:
...
},
"dimensions": [
"home_post_code",
{
"type":"registeredLookup",
"dimension" : "home_post_code",
"outputName" : "home_post_code_description",
"lookup":"home_post_code",
"retainMissingValue": true,
"injective": false
}
],
...
问题是当我执行查询时,“home_post_code_description”列中的值没有根据映射替换。
我能够在 http://:/druid/listen/v1/lookups 中列出查找,所以我相信它已正确注册。
我在这里想念什么?我应该更改任何配置吗?
提前致谢。