presto-client 0.6.5 → 0.6.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog.md +3 -0
- data/lib/presto/client/errors.rb +4 -2
- data/lib/presto/client/query.rb +1 -1
- data/lib/presto/client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb8d9b811cc73d3512f5944e4979ca5ee5f20d94b7f9e02b3a2344b78844ee86
|
4
|
+
data.tar.gz: 37779cf08f92eb6d208767bf1cd8886764d26196b1438705d1f87b08bb227c9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4580bf4bc791612986c9f0b6f361bcc06d3211a775c80c86962c6edfeadae6b06d19df30a12b9b32017e0859f93ca06a334d185a0cf6a1b7ebf2361b53c2960
|
7
|
+
data.tar.gz: 3f87d41d12c34e6e902fa48f3153d1981f0851fc26437d23bab857c1052d76a8ee9b04f9db7b755781923bed338f0d7c4935a2fe94cadaf6f59bc9b5d1ba1bdb
|
data/ChangeLog.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
presto-client-ruby
|
2
2
|
====
|
3
|
+
## 0.6.6
|
4
|
+
* Added error_type and error_location field at PrestoQueryError
|
5
|
+
|
3
6
|
## 0.6.5
|
4
7
|
- Add gzip option ([#68](https://github.com/treasure-data/presto-client-ruby/issues/68)) [[1f43629](https://github.com/treasure-data/presto-client-ruby/commit/1f43629)]
|
5
8
|
- Bump tiny-presto to 0.0.7 to use docker image in GitHub Container Registry ([#69](https://github.com/treasure-data/presto-client-ruby/issues/69)) [[57b5045](https://github.com/treasure-data/presto-client-ruby/commit/57b5045)]
|
data/lib/presto/client/errors.rb
CHANGED
@@ -30,15 +30,17 @@ module Presto::Client
|
|
30
30
|
end
|
31
31
|
|
32
32
|
class PrestoQueryError < PrestoError
|
33
|
-
def initialize(message, query_id, error_code, error_name, failure_info)
|
33
|
+
def initialize(message, query_id, error_code, error_name, error_type, error_location, failure_info)
|
34
34
|
super(message)
|
35
35
|
@query_id = query_id
|
36
36
|
@error_code = error_code
|
37
37
|
@error_name = error_name
|
38
|
+
@error_type = error_type
|
39
|
+
@error_location = error_location
|
38
40
|
@failure_info = failure_info
|
39
41
|
end
|
40
42
|
|
41
|
-
attr_reader :error_code, :error_name, :failure_info
|
43
|
+
attr_reader :error_code, :error_name, :error_type, :error_location, :failure_info
|
42
44
|
end
|
43
45
|
|
44
46
|
class PrestoQueryTimeoutError < PrestoError
|
data/lib/presto/client/query.rb
CHANGED
@@ -136,7 +136,7 @@ module Presto::Client
|
|
136
136
|
elsif @api.query_failed?
|
137
137
|
results = @api.current_results
|
138
138
|
error = results.error
|
139
|
-
raise PrestoQueryError.new("Query #{results.id} failed: #{error.message}", results.id, error.error_code, error.error_name, error.failure_info)
|
139
|
+
raise PrestoQueryError.new("Query #{results.id} failed: #{error.message}", results.id, error.error_code, error.error_name, error.error_type, error.error_location, error.failure_info)
|
140
140
|
end
|
141
141
|
end
|
142
142
|
end
|
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.6.
|
4
|
+
version: 0.6.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sadayuki Furuhashi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|