presto-client 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/presto/client/model_versions/0.153.rb +8 -0
- data/lib/presto/client/version.rb +1 -1
- data/modelgen/modelgen.rb +1 -1
- data/spec/statement_client_spec.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0e8c847c0a0e80d17c8fe94eb6a7546db1e8b2c
|
4
|
+
data.tar.gz: 67ad7ab82056e4a733ae3a46c8d8973c5f4375a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc18b8267f4636b4c1ab557efdeb513c5b1e4c1644500da4f442947ff7c0a3eb0d1839d453bd6347bcd02bcdc060d9321adbdb1393c5cdf7f5509e5182aec7c9
|
7
|
+
data.tar.gz: 06a036d16f4f3a5bec62b486bf9b624021df479d240d88e18ba065e77f76622f6260a10de888026479dac14de4ea925d179803ad1d350c053792a80db9f8462a
|
@@ -623,6 +623,7 @@ module Presto::Client::ModelVersions
|
|
623
623
|
end
|
624
624
|
obj = allocate
|
625
625
|
obj.send(:initialize_struct,
|
626
|
+
hash["connectorId"],
|
626
627
|
hash["transactionHandle"],
|
627
628
|
hash["connectorHandle"],
|
628
629
|
)
|
@@ -679,6 +680,7 @@ module Presto::Client::ModelVersions
|
|
679
680
|
end
|
680
681
|
obj = allocate
|
681
682
|
obj.send(:initialize_struct,
|
683
|
+
hash["connectorId"],
|
682
684
|
hash["schema"],
|
683
685
|
hash["table"],
|
684
686
|
hash["connectorInfo"],
|
@@ -696,6 +698,7 @@ module Presto::Client::ModelVersions
|
|
696
698
|
end
|
697
699
|
obj = allocate
|
698
700
|
obj.send(:initialize_struct,
|
701
|
+
hash["connectorId"],
|
699
702
|
hash["transactionHandle"],
|
700
703
|
hash["connectorHandle"],
|
701
704
|
)
|
@@ -853,6 +856,7 @@ module Presto::Client::ModelVersions
|
|
853
856
|
end
|
854
857
|
obj = allocate
|
855
858
|
obj.send(:initialize_struct,
|
859
|
+
hash["connectorId"],
|
856
860
|
hash["schema"],
|
857
861
|
hash["table"],
|
858
862
|
)
|
@@ -907,6 +911,7 @@ module Presto::Client::ModelVersions
|
|
907
911
|
end
|
908
912
|
obj = allocate
|
909
913
|
obj.send(:initialize_struct,
|
914
|
+
hash["connectorId"],
|
910
915
|
hash["transactionHandle"],
|
911
916
|
hash["connectorHandle"],
|
912
917
|
)
|
@@ -955,6 +960,7 @@ module Presto::Client::ModelVersions
|
|
955
960
|
end
|
956
961
|
obj = allocate
|
957
962
|
obj.send(:initialize_struct,
|
963
|
+
hash["connectorId"],
|
958
964
|
hash["transactionHandle"],
|
959
965
|
hash["connectorHandle"],
|
960
966
|
)
|
@@ -1434,6 +1440,7 @@ module Presto::Client::ModelVersions
|
|
1434
1440
|
end
|
1435
1441
|
obj = allocate
|
1436
1442
|
obj.send(:initialize_struct,
|
1443
|
+
hash["connectorId"],
|
1437
1444
|
hash["connectorHandle"],
|
1438
1445
|
)
|
1439
1446
|
obj
|
@@ -1448,6 +1455,7 @@ module Presto::Client::ModelVersions
|
|
1448
1455
|
end
|
1449
1456
|
obj = allocate
|
1450
1457
|
obj.send(:initialize_struct,
|
1458
|
+
hash["connectorId"],
|
1451
1459
|
hash["transactionHandle"],
|
1452
1460
|
hash["connectorHandle"],
|
1453
1461
|
)
|
data/modelgen/modelgen.rb
CHANGED
@@ -16,7 +16,7 @@ source_path = source_dir
|
|
16
16
|
predefined_simple_classes = %w[StageId TaskId ConnectorSession]
|
17
17
|
predefined_models = %w[DistributionSnapshot PlanNode EquiJoinClause WriterTarget DeleteHandle Specification ArgumentBinding]
|
18
18
|
|
19
|
-
assume_primitive = %w[Object Type Long Symbol QueryId PlanNodeId PlanFragmentId MemoryPoolId TransactionId URI Duration DataSize DateTime ColumnHandle ConnectorTableHandle ConnectorOutputTableHandle ConnectorIndexHandle ConnectorColumnHandle ConnectorInsertTableHandle ConnectorTableLayoutHandle Expression FunctionCall TimeZoneKey Locale TypeSignature Frame TupleDomain<ColumnHandle> SerializableNativeValue ConnectorTransactionHandle OutputBufferId ConnectorPartitioningHandle NullableValue]
|
19
|
+
assume_primitive = %w[Object Type Long Symbol QueryId PlanNodeId PlanFragmentId MemoryPoolId TransactionId URI Duration DataSize DateTime ColumnHandle ConnectorTableHandle ConnectorOutputTableHandle ConnectorIndexHandle ConnectorColumnHandle ConnectorInsertTableHandle ConnectorTableLayoutHandle Expression FunctionCall TimeZoneKey Locale TypeSignature Frame TupleDomain<ColumnHandle> SerializableNativeValue ConnectorTransactionHandle OutputBufferId ConnectorPartitioningHandle NullableValue ConnectorId]
|
20
20
|
enum_types = %w[QueryState StageState TaskState QueueState PlanDistribution OutputPartitioning Step SortOrder BufferState NullPartitioning BlockedReason ParameterKind FunctionKind PartitionFunctionHandle Scope ErrorType]
|
21
21
|
|
22
22
|
root_models = %w[QueryResults QueryInfo] + %w[
|
@@ -85,11 +85,13 @@ describe Presto::Client::StatementClient do
|
|
85
85
|
it "decodes DeleteHandle" do
|
86
86
|
dh = Models::DeleteHandle.decode({
|
87
87
|
"handle" => {
|
88
|
+
"connectorId" => "c1",
|
88
89
|
"connectorHandle" => {}
|
89
90
|
}
|
90
91
|
})
|
91
92
|
dh.handle.should be_a_kind_of Models::TableHandle
|
92
|
-
|
93
|
+
dh.handle.connector_id.should == "c1"
|
94
|
+
dh.handle.connector_handle.should == {}
|
93
95
|
end
|
94
96
|
|
95
97
|
it "validates models" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: presto-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sadayuki Furuhashi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|