我正在尝试使用此摄取斑点在德鲁伊中加载 TSV:
最新更新的规格如下:
{
"type" : "index",
"spec" : {
"ioConfig" : {
"type" : "index",
"inputSpec" : {
"type": "local",
"baseDir": "quickstart",
"filter": "test_data.json"
}
},
"dataSchema" : {
"dataSource" : "local",
"granularitySpec" : {
"type" : "uniform",
"segmentGranularity" : "hour",
"queryGranularity" : "none",
"intervals" : ["2016-07-18/2016-07-22"]
},
"parser" : {
"type" : "string",
"parseSpec" : {
"format" : "json",
"dimensionsSpec" : {
"dimensions" : ["name", "email", "age"]
},
"timestampSpec" : {
"format" : "yyyy-MM-dd HH:mm:ss",
"column" : "date"
}
}
},
"metricsSpec" : [
{
"name" : "count",
"type" : "count"
},
{
"type" : "doubleSum",
"name" : "age",
"fieldName" : "age"
}
]
}
}
}
如果我的架构如下所示:
Schema: name email age
实际数据集如下所示:
name email age Bob Jones 23 Billy Jones 45
这是 TSV 的上述数据集中的列应该如何格式化^^?Likename email age
应该是第一个(列),然后是实际数据。我很困惑德鲁伊如何知道如何将列映射到 TSV 格式的实际数据集。