mirror of
https://github.com/apache/impala.git
synced 2026-01-06 06:01:03 -05:00
Adds a bounded query-result cache that clients can enable by setting an 'impala.resultset.cache.size' option in the HS2 confOverlay mapof the HS2 exec request. Impala permits FETCH_FIRST for a particular stmt iff result caching is enabled. FETCH_FIRST will succeed as long all previously fetched rows fit into the bounded result cache. Regardless of whether a FETCH_FIRST succeeds or not, clients may always resume fetching with FETCH_NEXT. The FETCH_FIRST feature is intended to allow HUE users to export an entire result set (to Excel, CSV, etc.) after browsing through a few pages of results, without having ro re-run the query from scratch. Change-Id: I71ab4794ddef30842594c5e1f7bc94724d6ce89f Reviewed-on: http://gerrit.ent.cloudera.com:8080/1356 Reviewed-by: Alex Behm <alex.behm@cloudera.com> Tested-by: jenkins Reviewed-on: http://gerrit.ent.cloudera.com:8080/1406
33 lines
898 B
Thrift
33 lines
898 B
Thrift
// Copyright 2012 Cloudera Inc.
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
namespace cpp impala
|
|
namespace java com.cloudera.impala.thrift
|
|
|
|
enum TStatusCode {
|
|
OK,
|
|
CANCELLED,
|
|
ANALYSIS_ERROR,
|
|
NOT_IMPLEMENTED_ERROR,
|
|
RUNTIME_ERROR,
|
|
MEM_LIMIT_EXCEEDED,
|
|
INTERNAL_ERROR,
|
|
RECOVERABLE_ERROR
|
|
}
|
|
|
|
struct TStatus {
|
|
1: required TStatusCode status_code
|
|
2: list<string> error_msgs
|
|
}
|