You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lens.apache.org by "Puneet Gupta (JIRA)" <ji...@apache.org> on 2016/03/01 03:19:18 UTC
[jira] [Created] (LENS-979) A client should not be able to fetch
InMemory Results more than once
Puneet Gupta created LENS-979:
---------------------------------
Summary: A client should not be able to fetch InMemory Results more than once
Key: LENS-979
URL: https://issues.apache.org/jira/browse/LENS-979
Project: Apache Lens
Issue Type: Bug
Reporter: Puneet Gupta
Assignee: Puneet Gupta
As of now a client can fetch in memory result second time also, but the result will be blank in case of hive in memory resultset. This is because, the first fetch call has read the result completely and the second fetch call is reading from end of the result (where the first fetch call left the cursor). One way to get past this is by seeking to start of result set, but the behavior will not be consistent
1. when compared to JDBC result set which may not support seek to start
2. after the first fetch call which reads the result completely, the query and hence the resultset is a candidate for purging . So if the second fetch call is made after query is purged, an exception will be thrown.
So better to allow in memory result to be read exactly once to have consistency in all flows.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)