presto-client 0.5.14 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/CODEOWNERS +1 -0
- data/.github/PULL_REQUEST_TEMPLATE.md +18 -0
- data/.travis.yml +6 -6
- data/ChangeLog.md +160 -0
- data/Gemfile +4 -0
- data/LICENSE +202 -0
- data/README.md +23 -9
- data/Rakefile +4 -4
- data/lib/presto/client/faraday_client.rb +6 -1
- data/lib/presto/client/model_versions/303.rb +2574 -0
- data/lib/presto/client/model_versions/316.rb +2595 -0
- data/lib/presto/client/models.rb +3 -1
- data/lib/presto/client/query.rb +3 -5
- data/lib/presto/client/statement_client.rb +50 -36
- data/lib/presto/client/version.rb +1 -1
- data/modelgen/model_versions.rb +27 -3
- data/modelgen/modelgen.rb +16 -14
- data/modelgen/presto_models.rb +29 -9
- data/presto-client.gemspec +2 -1
- data/release.rb +56 -0
- data/spec/basic_query_spec.rb +82 -0
- data/spec/spec_helper.rb +24 -0
- data/spec/statement_client_spec.rb +79 -18
- data/spec/tpch/q01.sql +21 -0
- data/spec/tpch/q02.sql +43 -0
- data/spec/tpch_query_spec.rb +41 -0
- metadata +33 -6
- data/ChangeLog +0 -171
data/ChangeLog
DELETED
@@ -1,171 +0,0 @@
|
|
1
|
-
2019-01-30 version 0.5.14
|
2
|
-
|
3
|
-
* Added `Query#current_results_headers` that returns HTTP response headers
|
4
|
-
|
5
|
-
2018-12-10 version 0.5.13
|
6
|
-
|
7
|
-
* Added `query_timeout` and `plan_timeout` options with default disabled
|
8
|
-
* Changed timer to use CLOCK_MONOTONIC to avoid unexpected behavior when
|
9
|
-
system clock is updated
|
10
|
-
|
11
|
-
2018-08-07 version 0.5.12
|
12
|
-
|
13
|
-
* Upgrade to Presto 0.205 model
|
14
|
-
|
15
|
-
2018-06-27 version 0.5.11
|
16
|
-
|
17
|
-
* Support multiple session properties
|
18
|
-
* Check invalid JSON data response
|
19
|
-
|
20
|
-
2018-03-22 version 0.5.10
|
21
|
-
|
22
|
-
* Added client_info, client_tags, and http_headers options.
|
23
|
-
|
24
|
-
2018-03-02 version 0.5.9
|
25
|
-
|
26
|
-
* Added error_name field at PrestoQueryError
|
27
|
-
|
28
|
-
2017-11-13 version 0.5.8
|
29
|
-
|
30
|
-
* Added `Client#kill(query_id)` method.
|
31
|
-
* Added additional checking of internal exceptions so that client doesn't
|
32
|
-
silently return in case when Presto query is killed and Presto returns a
|
33
|
-
valid `200 OK` response with `result_uri: null`.
|
34
|
-
* Fixed `undefined local variable 'body'` error that was possibly happening
|
35
|
-
when Presto returned an unexpected data structure.
|
36
|
-
|
37
|
-
2017-08-28 version 0.5.7
|
38
|
-
* Support a password option with HTTP basic auth
|
39
|
-
* Changed retry timeout from hard coded 2h to configurable default 2min
|
40
|
-
* Fix too deep nested json failure
|
41
|
-
|
42
|
-
2017-07-03 version 0.5.6:
|
43
|
-
* Added missing inner class models for version 0.178
|
44
|
-
|
45
|
-
2017-06-28 version 0.5.5:
|
46
|
-
* Added support for model version 0.178
|
47
|
-
|
48
|
-
2017-05-15 version 0.5.4:
|
49
|
-
|
50
|
-
* Support "Content-Type: application/x-msgpack" for more efficient parsing of
|
51
|
-
HTTP response body.
|
52
|
-
* Added "enable_x_msgpack: true" option to send Accept header with
|
53
|
-
application/x-msgpack.
|
54
|
-
|
55
|
-
|
56
|
-
2017-04-26 version 0.5.3:
|
57
|
-
|
58
|
-
* Added support for model version 0.173.
|
59
|
-
* Changed the default latest model version to 0.173.
|
60
|
-
* Fixed compatibility with the new major version of Farady
|
61
|
-
* Require Faraday 0.12 or later
|
62
|
-
|
63
|
-
|
64
|
-
2017-02-01 version 0.5.2:
|
65
|
-
|
66
|
-
* Relax dependent version of Faraday to be able to use all 0.x versions.
|
67
|
-
* Fix build script that was broken due to new major version of rake.
|
68
|
-
|
69
|
-
|
70
|
-
2016-11-01 version 0.5.1:
|
71
|
-
|
72
|
-
* Assume ConnectorId as a primitive type to be able to decode "connectorId"
|
73
|
-
fields.
|
74
|
-
|
75
|
-
|
76
|
-
2016-10-28 version 0.5.0:
|
77
|
-
|
78
|
-
* Support multiple model versions
|
79
|
-
* Added support for model version 0.153.
|
80
|
-
* Changed the default latest model version to 0.513.
|
81
|
-
|
82
|
-
|
83
|
-
2016-08-09 version 0.4.17:
|
84
|
-
|
85
|
-
* Added support for :ssl option.
|
86
|
-
|
87
|
-
|
88
|
-
2016-08-03 version 0.4.16:
|
89
|
-
|
90
|
-
* Upgraded Presto model version to 0.151
|
91
|
-
|
92
|
-
|
93
|
-
2016-08-03 version 0.4.15:
|
94
|
-
|
95
|
-
* decode method of model classes validate Hash type
|
96
|
-
|
97
|
-
|
98
|
-
2016-08-02 version 0.4.14:
|
99
|
-
|
100
|
-
* Added support for resuming fetching query results by using new `Query.resume(next_uri, options)` method (@tetrakai++)
|
101
|
-
|
102
|
-
|
103
|
-
2016-08-02 version 0.4.13:
|
104
|
-
|
105
|
-
* Added support for :http_proxy option to use a HTTP proxy server
|
106
|
-
* Added support for hashed Client response using `run_with_names` (thanks to MoovWeb for allowing me to contribute)
|
107
|
-
* Upgraded Presto model version to 0.134
|
108
|
-
|
109
|
-
2015-04-01 version 0.4.5:
|
110
|
-
|
111
|
-
* Upgraded Presto model version to 0.99
|
112
|
-
|
113
|
-
|
114
|
-
2014-11-20 version 0.4.3:
|
115
|
-
|
116
|
-
* Updated gem dependency to accept faraday ~> 0.9.x as well as ~> 0.8.8
|
117
|
-
|
118
|
-
|
119
|
-
2014-10-15 version 0.4.2:
|
120
|
-
|
121
|
-
* Added support for :properties option to set session properties introduced
|
122
|
-
since Presto 0.78
|
123
|
-
|
124
|
-
|
125
|
-
2014-06-12 version 0.4.1:
|
126
|
-
|
127
|
-
* Added EquiJoinClause model class
|
128
|
-
* Added StageId#query_id and #id methods
|
129
|
-
* Added TaskId#query_id, #stage_id and #id methods
|
130
|
-
|
131
|
-
|
132
|
-
2014-06-10 version 0.4.0:
|
133
|
-
|
134
|
-
* Added Query#current_results, #advance and #query_info for advanced users
|
135
|
-
* Generate model classes from Presto source code to include complete classes
|
136
|
-
|
137
|
-
|
138
|
-
2014-05-06 version 0.3.3:
|
139
|
-
|
140
|
-
* Added :time_zone and :language options added by Presto 0.66
|
141
|
-
|
142
|
-
|
143
|
-
2014-04-01 version 0.3.2:
|
144
|
-
|
145
|
-
* Fixed a problem that client skips the last chunk if result is large
|
146
|
-
|
147
|
-
|
148
|
-
2014-01-30 version 0.3.1:
|
149
|
-
|
150
|
-
* Added http_debug option
|
151
|
-
* Disabled HTTP debug logging by default
|
152
|
-
|
153
|
-
|
154
|
-
2014-01-22 version 0.3.0:
|
155
|
-
|
156
|
-
* Added http_timeout option
|
157
|
-
* Added http_open_timeout option
|
158
|
-
* Changed Query.start API to start(query, options) to http options
|
159
|
-
|
160
|
-
|
161
|
-
2014-01-22 version 0.2.0:
|
162
|
-
|
163
|
-
* Added Query#cancel
|
164
|
-
* Added Query#close
|
165
|
-
* Added Client#run
|
166
|
-
* Changed required_ruby_version from 1.9.3 to 1.9.1
|
167
|
-
|
168
|
-
|
169
|
-
2014-01-07 version 0.1.0:
|
170
|
-
|
171
|
-
* First release
|