mirror of
https://github.com/apache/impala.git
synced 2026-01-07 18:02:33 -05:00
69 lines
1.5 KiB
Thrift
69 lines
1.5 KiB
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
|
|
|
|
typedef i64 TTimestamp
|
|
typedef i32 TPlanNodeId
|
|
typedef i32 TTupleId
|
|
typedef i32 TSlotId
|
|
typedef i32 TTableId
|
|
|
|
enum TPrimitiveType {
|
|
INVALID_TYPE,
|
|
NULL_TYPE,
|
|
BOOLEAN,
|
|
TINYINT,
|
|
SMALLINT,
|
|
INT,
|
|
BIGINT,
|
|
FLOAT,
|
|
DOUBLE,
|
|
DATE,
|
|
DATETIME,
|
|
TIMESTAMP,
|
|
STRING,
|
|
// Unsupported types
|
|
BINARY,
|
|
DECIMAL
|
|
}
|
|
|
|
enum TStmtType {
|
|
QUERY,
|
|
DDL, // Data definition, e.g. CREATE TABLE (includes read-only functions e.g. SHOW)
|
|
DML // Data modification e.g. INSERT
|
|
}
|
|
|
|
// level of verboseness for "explain" output
|
|
// TODO: should this go somewhere else?
|
|
enum TExplainLevel {
|
|
NORMAL,
|
|
VERBOSE
|
|
}
|
|
|
|
// A TNetworkAddress is the standard host, port representation of a
|
|
// network address. The hostname field must be resolvable to an IPv4
|
|
// address.
|
|
struct TNetworkAddress {
|
|
1: required string hostname
|
|
2: required i32 port
|
|
}
|
|
|
|
// Wire format for UniqueId
|
|
struct TUniqueId {
|
|
1: required i64 hi
|
|
2: required i64 lo
|
|
}
|