presto-client 0.6.5 → 0.6.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8cb6ac1dfeb58b647cc65a99ccce35255a53bbf4d06b9f7079f37f079f514e1e
4
- data.tar.gz: eb1128d76aa3997753e599d004017ad237e246076e81fd4590f7b13d0c0051fa
3
+ metadata.gz: cb8d9b811cc73d3512f5944e4979ca5ee5f20d94b7f9e02b3a2344b78844ee86
4
+ data.tar.gz: 37779cf08f92eb6d208767bf1cd8886764d26196b1438705d1f87b08bb227c9d
5
5
  SHA512:
6
- metadata.gz: 2f1edf235287c8f796ff8b68c6692ec40e9553f92553005762464316c315382c90141f6a0482985c13460fad3a817271de8fcf51bb22267ec987e6366c7da2c7
7
- data.tar.gz: 703da9686376aa49ac0fb477d7a41ac4eae255a10342aecb1ce6bd1646c9f64f67ab43a03f53f47409489f99f5078e5cbdf790982cae48b714105b28db2df99c
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)]
@@ -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
@@ -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
@@ -15,6 +15,6 @@
15
15
  #
16
16
  module Presto
17
17
  module Client
18
- VERSION = "0.6.5"
18
+ VERSION = "0.6.6"
19
19
  end
20
20
  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.5
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-04-01 00:00:00.000000000 Z
11
+ date: 2021-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday