kairosdb / kairosdb-client

Java Client for KairosDB
65 stars 67 forks source link

QueryTagBuilder the range time is not effect bug #84

Closed liuxianqiang001 closed 4 years ago

liuxianqiang001 commented 5 years ago

QueryTagBuilder queryTagBuilder = QueryTagBuilder.getInstance(); queryTagBuilder.addMetric("aaa".toUpperCase()); queryTagBuilder.setStart(new Date(1357023600000L)); queryTagBuilder.setEnd(new Date(1357023600006L));

the result is all tags , not the range time's tag

I guess the reason may be : set HttpClient ((HttpPost) apacheRequest).setEntity(((StringBodySource) request.getBodySource()).toHttpEntity());

get ProtocolExec HttpParams params = request.getParams();

BrentonPoke commented 4 years ago

I'm having trouble understanding why those two lines are at fault. Can you walk me through how you got here?

liuxianqiang001 commented 4 years ago

I'm having trouble understanding why those two lines are at fault. Can you walk me through how you got here?

the first set the query time, the second get the query time, maybe it is not the reason, it is only my guess. In fact ,when i use QueryTagBuilder ,I set the range time ,but it not effect.

liuxianqiang001 commented 4 years ago

so so