Srikanth Sundarrajan commented on LENS-1318:

While preparing the patch for this, noted that getAllQueries, may provide the 
same query handle twice in response, if the query is complete and if the copy 
of the querycontext is still in the in-memory state. Will incorporate fix for 
that as well in this along with introduction of a new api for getting query 
details in one go..

> Query Resource in the lens server offers very limited information on the 
> getAllQueries call
> -------------------------------------------------------------------------------------------
>                 Key: LENS-1318
>                 URL: https://issues.apache.org/jira/browse/LENS-1318
>             Project: Apache Lens
>          Issue Type: Improvement
>            Reporter: Srikanth Sundarrajan
>            Assignee: Srikanth Sundarrajan
> {code}
> List<QueryHandle> getAllQueries(sessionid, states, user, driver, queryName, 
> fromDate, toDate);
> {code}
> Currently provides very limited information (Query handle) upon this call. If 
> consuming service where to tabulate minimal information of query history, the 
> call to getAllQueries have to be followed by a series of 
> {code}
> LensQuery getStatus(sessionid, queryHandle)
> {code}.
> It would be very helpful to have a resource method that can provide a richer 
> set of information as an additional method.

This message was sent by Atlassian JIRA

Reply via email to