mirror of https://github.com/apache/druid.git
fix tests
This commit is contained in:
parent
8b5c2fcd82
commit
cada14586a
|
@ -417,6 +417,11 @@ public class SelectQueryRunnerTest
|
||||||
Lists.<Result<SelectResultValue>>newArrayList()
|
Lists.<Result<SelectResultValue>>newArrayList()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Map<String, Object> res = Maps.newHashMap();
|
||||||
|
res.put("timestamp", new DateTime("2011-01-12T00:00:00.000Z"));
|
||||||
|
res.put("foo", null);
|
||||||
|
res.put("foo2", null);
|
||||||
|
|
||||||
List<Result<SelectResultValue>> expectedResults = Arrays.asList(
|
List<Result<SelectResultValue>> expectedResults = Arrays.asList(
|
||||||
new Result<SelectResultValue>(
|
new Result<SelectResultValue>(
|
||||||
new DateTime("2011-01-12T00:00:00.000Z"),
|
new DateTime("2011-01-12T00:00:00.000Z"),
|
||||||
|
@ -426,29 +431,17 @@ public class SelectQueryRunnerTest
|
||||||
new EventHolder(
|
new EventHolder(
|
||||||
QueryRunnerTestHelper.segmentId,
|
QueryRunnerTestHelper.segmentId,
|
||||||
0,
|
0,
|
||||||
new ImmutableMap.Builder<String, Object>()
|
res
|
||||||
.put(EventHolder.timestampKey, new DateTime("2011-01-12T00:00:00.000Z"))
|
|
||||||
.put("foo", null)
|
|
||||||
.put("foo2", null)
|
|
||||||
.build()
|
|
||||||
),
|
),
|
||||||
new EventHolder(
|
new EventHolder(
|
||||||
QueryRunnerTestHelper.segmentId,
|
QueryRunnerTestHelper.segmentId,
|
||||||
1,
|
1,
|
||||||
new ImmutableMap.Builder<String, Object>()
|
res
|
||||||
.put(EventHolder.timestampKey, new DateTime("2011-01-12T00:00:00.000Z"))
|
|
||||||
.put(providerLowercase, "spot")
|
|
||||||
.put(QueryRunnerTestHelper.indexMetric, 100.000000F)
|
|
||||||
.build()
|
|
||||||
),
|
),
|
||||||
new EventHolder(
|
new EventHolder(
|
||||||
QueryRunnerTestHelper.segmentId,
|
QueryRunnerTestHelper.segmentId,
|
||||||
2,
|
2,
|
||||||
new ImmutableMap.Builder<String, Object>()
|
res
|
||||||
.put(EventHolder.timestampKey, new DateTime("2011-01-12T00:00:00.000Z"))
|
|
||||||
.put(providerLowercase, "spot")
|
|
||||||
.put(QueryRunnerTestHelper.indexMetric, 100.000000F)
|
|
||||||
.build()
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue