impala 0.1.6 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +0 -2
- data/impala.gemspec +1 -2
- data/lib/impala.rb +1 -1
- data/lib/impala/cursor.rb +10 -4
- data/lib/impala/protocol/beeswax_constants.rb +2 -1
- data/lib/impala/protocol/beeswax_service.rb +46 -46
- data/lib/impala/protocol/beeswax_types.rb +31 -30
- data/lib/impala/protocol/cli_service_constants.rb +60 -0
- data/lib/impala/protocol/cli_service_types.rb +1452 -0
- data/lib/impala/protocol/facebook_service.rb +17 -17
- data/lib/impala/protocol/fb303_constants.rb +2 -1
- data/lib/impala/protocol/fb303_types.rb +3 -2
- data/lib/impala/protocol/hive_metastore_constants.rb +2 -1
- data/lib/impala/protocol/hive_metastore_types.rb +102 -101
- data/lib/impala/protocol/impala_hive_server2_service.rb +29 -0
- data/lib/impala/protocol/impala_service.rb +135 -18
- data/lib/impala/protocol/impala_service_constants.rb +2 -1
- data/lib/impala/protocol/impala_service_types.rb +54 -10
- data/lib/impala/protocol/status_constants.rb +2 -1
- data/lib/impala/protocol/status_types.rb +9 -7
- data/lib/impala/protocol/t_c_l_i_service.rb +948 -0
- data/lib/impala/protocol/thrift_hive_metastore.rb +507 -507
- data/lib/impala/version.rb +1 -1
- data/test/test_impala_connected.rb +93 -13
- data/thrift/ImpalaService.thrift +78 -6
- data/thrift/Status.thrift +2 -1
- data/thrift/beeswax.thrift +1 -1
- data/thrift/cli_service.thrift +1015 -0
- metadata +9 -75
- data/lib/impala/protocol/data_constants.rb +0 -12
- data/lib/impala/protocol/data_sinks_constants.rb +0 -12
- data/lib/impala/protocol/data_sinks_types.rb +0 -107
- data/lib/impala/protocol/data_types.rb +0 -77
- data/lib/impala/protocol/descriptors_constants.rb +0 -12
- data/lib/impala/protocol/descriptors_types.rb +0 -266
- data/lib/impala/protocol/exprs_constants.rb +0 -12
- data/lib/impala/protocol/exprs_types.rb +0 -345
- data/lib/impala/protocol/frontend_constants.rb +0 -12
- data/lib/impala/protocol/frontend_types.rb +0 -347
- data/lib/impala/protocol/impala_internal_service.rb +0 -244
- data/lib/impala/protocol/impala_internal_service_constants.rb +0 -12
- data/lib/impala/protocol/impala_internal_service_types.rb +0 -362
- data/lib/impala/protocol/impala_plan_service.rb +0 -310
- data/lib/impala/protocol/impala_plan_service_constants.rb +0 -12
- data/lib/impala/protocol/impala_plan_service_types.rb +0 -36
- data/lib/impala/protocol/java_constants_constants.rb +0 -42
- data/lib/impala/protocol/java_constants_types.rb +0 -14
- data/lib/impala/protocol/opcodes_constants.rb +0 -12
- data/lib/impala/protocol/opcodes_types.rb +0 -309
- data/lib/impala/protocol/partitions_constants.rb +0 -12
- data/lib/impala/protocol/partitions_types.rb +0 -44
- data/lib/impala/protocol/plan_nodes_constants.rb +0 -12
- data/lib/impala/protocol/plan_nodes_types.rb +0 -345
- data/lib/impala/protocol/planner_constants.rb +0 -12
- data/lib/impala/protocol/planner_types.rb +0 -78
- data/lib/impala/protocol/runtime_profile_constants.rb +0 -12
- data/lib/impala/protocol/runtime_profile_types.rb +0 -97
- data/lib/impala/protocol/state_store_service.rb +0 -244
- data/lib/impala/protocol/state_store_service_constants.rb +0 -12
- data/lib/impala/protocol/state_store_service_types.rb +0 -185
- data/lib/impala/protocol/state_store_subscriber_service.rb +0 -82
- data/lib/impala/protocol/state_store_subscriber_service_constants.rb +0 -12
- data/lib/impala/protocol/state_store_subscriber_service_types.rb +0 -67
- data/lib/impala/protocol/statestore_types_constants.rb +0 -12
- data/lib/impala/protocol/statestore_types_types.rb +0 -77
- data/lib/impala/protocol/types_constants.rb +0 -12
- data/lib/impala/protocol/types_types.rb +0 -86
- data/thrift/Data.thrift +0 -52
- data/thrift/DataSinks.thrift +0 -61
- data/thrift/Descriptors.thrift +0 -115
- data/thrift/Exprs.thrift +0 -134
- data/thrift/Frontend.thrift +0 -193
- data/thrift/ImpalaInternalService.thrift +0 -265
- data/thrift/ImpalaPlanService.thrift +0 -44
- data/thrift/JavaConstants.thrift +0 -60
- data/thrift/Opcodes.thrift +0 -317
- data/thrift/Partitions.thrift +0 -41
- data/thrift/PlanNodes.thrift +0 -184
- data/thrift/Planner.thrift +0 -72
- data/thrift/RuntimeProfile.thrift +0 -58
- data/thrift/StateStoreService.thrift +0 -121
- data/thrift/StateStoreSubscriberService.thrift +0 -64
- data/thrift/StatestoreTypes.thrift +0 -50
- data/thrift/Types.thrift +0 -71
@@ -1,50 +0,0 @@
|
|
1
|
-
// Copyright 2012 Cloudera Inc.
|
2
|
-
//
|
3
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
// you may not use this file except in compliance with the License.
|
5
|
-
// You may obtain a copy of the License at
|
6
|
-
//
|
7
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
//
|
9
|
-
// Unless required by applicable law or agreed to in writing, software
|
10
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
// See the License for the specific language governing permissions and
|
13
|
-
// limitations under the License.
|
14
|
-
|
15
|
-
namespace cpp impala
|
16
|
-
namespace java com.cloudera.impala.thrift
|
17
|
-
namespace rb Impala.Protocol
|
18
|
-
|
19
|
-
include "Types.thrift"
|
20
|
-
|
21
|
-
struct TVersionedObject {
|
22
|
-
// Service that the object is associated with.
|
23
|
-
1: string service_id
|
24
|
-
|
25
|
-
// Unique (within the given service) identifier for the object.
|
26
|
-
2: string key
|
27
|
-
|
28
|
-
// Type of the value.
|
29
|
-
3: string type
|
30
|
-
|
31
|
-
// Unique (within the given key) identifier for the value.
|
32
|
-
4: i64 version
|
33
|
-
|
34
|
-
5: binary value
|
35
|
-
}
|
36
|
-
|
37
|
-
// Information about a running instance of a particular service.
|
38
|
-
struct TServiceInstance {
|
39
|
-
// Unique identifier for the corresponding StateStoreSubscriber.
|
40
|
-
1: required i32 subscriber_id
|
41
|
-
|
42
|
-
2: required Types.THostPort host_port
|
43
|
-
}
|
44
|
-
|
45
|
-
// Information about all running instances of the service identified by service_id.
|
46
|
-
struct TServiceMembership {
|
47
|
-
1: required string service_id
|
48
|
-
|
49
|
-
2: required list<TServiceInstance> service_instances
|
50
|
-
}
|
data/thrift/Types.thrift
DELETED
@@ -1,71 +0,0 @@
|
|
1
|
-
// Copyright 2012 Cloudera Inc.
|
2
|
-
//
|
3
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
// you may not use this file except in compliance with the License.
|
5
|
-
// You may obtain a copy of the License at
|
6
|
-
//
|
7
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
//
|
9
|
-
// Unless required by applicable law or agreed to in writing, software
|
10
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
// See the License for the specific language governing permissions and
|
13
|
-
// limitations under the License.
|
14
|
-
|
15
|
-
namespace cpp impala
|
16
|
-
namespace java com.cloudera.impala.thrift
|
17
|
-
namespace rb Impala.Protocol
|
18
|
-
|
19
|
-
typedef i64 TTimestamp
|
20
|
-
typedef i32 TPlanNodeId
|
21
|
-
typedef i32 TTupleId
|
22
|
-
typedef i32 TSlotId
|
23
|
-
typedef i32 TTableId
|
24
|
-
|
25
|
-
enum TPrimitiveType {
|
26
|
-
INVALID_TYPE,
|
27
|
-
BOOLEAN,
|
28
|
-
TINYINT,
|
29
|
-
SMALLINT,
|
30
|
-
INT,
|
31
|
-
BIGINT,
|
32
|
-
FLOAT,
|
33
|
-
DOUBLE,
|
34
|
-
DATE,
|
35
|
-
DATETIME,
|
36
|
-
TIMESTAMP,
|
37
|
-
STRING
|
38
|
-
}
|
39
|
-
|
40
|
-
enum TStmtType {
|
41
|
-
QUERY,
|
42
|
-
DDL, // Data definition, e.g. CREATE TABLE (includes read-only functions e.g. SHOW)
|
43
|
-
DML // Data modification e.g. INSERT
|
44
|
-
}
|
45
|
-
|
46
|
-
// level of verboseness for "explain" output
|
47
|
-
// TODO: should this go somewhere else?
|
48
|
-
enum TExplainLevel {
|
49
|
-
NORMAL,
|
50
|
-
VERBOSE
|
51
|
-
}
|
52
|
-
|
53
|
-
// A THostPort represents a general network address. It includes both
|
54
|
-
// hostname and IP address fields in order to support use cases that may
|
55
|
-
// require either one or both these fields set. An example is those
|
56
|
-
// network addresses stored by the state-store which require IP addresses
|
57
|
-
// in order for the scheduler to correctly assign data locations to
|
58
|
-
// Impala backends but also fully qualified hostnames to be able to
|
59
|
-
// establish secure connections with subscribers. Which of the fields are
|
60
|
-
// set in general is usage specific.
|
61
|
-
struct THostPort {
|
62
|
-
1: required string hostname
|
63
|
-
2: required string ipaddress
|
64
|
-
3: required i32 port
|
65
|
-
}
|
66
|
-
|
67
|
-
// Wire format for UniqueId
|
68
|
-
struct TUniqueId {
|
69
|
-
1: required i64 hi
|
70
|
-
2: required i64 lo
|
71
|
-
}
|