rb_snowflake_client 1.1.2 → 1.1.3
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/.github/workflows/ci.yml +0 -1
- data/Gemfile.lock +1 -1
- data/lib/ruby_snowflake/client.rb +5 -3
- data/lib/ruby_snowflake/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: cc9cf812a682100ea6d9ac3a84156aa202342fa66e335e2c972ef50adc4234b8
|
4
|
+
data.tar.gz: 549c76f63232f130dcc0f810335023612e7c198d51b6cae2911e3582027157b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70a7c21d0ddcc12c64281363177c7f31e1f9b88a089fb04ae36700d2140828c0bfee4d0acb557ce823a867875b34d89d426e63ad4e6ad9d3a7646111d030f3e1
|
7
|
+
data.tar.gz: a4652f0539d923f71bffcffab0bcf212742cc8d174756d41b231869c8def8330449f5eba6dbae9aa99293208efbde57e894c76e34bbac9404b27b152492137ec
|
data/.github/workflows/ci.yml
CHANGED
@@ -34,7 +34,6 @@ jobs:
|
|
34
34
|
SNOWFLAKE_ORGANIZATION: ${{ secrets.SNOWFLAKE_ORGANIZATION }}
|
35
35
|
SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }}
|
36
36
|
SNOWFLAKE_DEFAULT_WAREHOUSE: $${{ secrets.SNOWFLAKE_DEFAULT_WAREHOUSE }}
|
37
|
-
SNOWFLAKE_DEFAULT_DATABASE: ${{ secrets.SNOWFLAKE_DEFAULT_DATABASE }}
|
38
37
|
SNOWFLAKE_USER: ${{ secrets.SNOWFLAKE_USER }}
|
39
38
|
SNOWFLAKE_PASSWORD: ${{ secrets.SNOWFLAKE_PASSWORD }}
|
40
39
|
SNOWFLAKE_PRIVATE_KEY: ${{ secrets.SNOWFLAKE_CLIENT_TEST_PRIVATE_KEY }}
|
data/Gemfile.lock
CHANGED
@@ -146,7 +146,7 @@ module RubySnowflake
|
|
146
146
|
request_body = {
|
147
147
|
"warehouse" => warehouse&.upcase,
|
148
148
|
"schema" => schema&.upcase,
|
149
|
-
"database" => database&.upcase,
|
149
|
+
"database" => database&.upcase,
|
150
150
|
"statement" => query,
|
151
151
|
"bindings" => bindings
|
152
152
|
}
|
@@ -230,8 +230,10 @@ module RubySnowflake
|
|
230
230
|
# https://github.com/snowflakedb/snowflake-connector-python/blob/eceed981f93e29d2f4663241253b48340389f4ef/src/snowflake/connector/network.py#L191
|
231
231
|
def retryable_http_response_code?(code)
|
232
232
|
# retry (in order): bad request, forbidden (token expired in flight), method not allowed,
|
233
|
-
#
|
234
|
-
|
233
|
+
# request timeout, too many requests, anything in the 500 range (504 is fairly common),
|
234
|
+
# anything in the 3xx range as those are mostly "redirect" responses
|
235
|
+
[400, 403, 405, 408, 429].include?(code.to_i) || (500..599).include?(code.to_i) ||
|
236
|
+
(300..399).include?(code.to_i)
|
235
237
|
end
|
236
238
|
|
237
239
|
def retryable_log_method
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rb_snowflake_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rinsed
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-08-
|
11
|
+
date: 2024-08-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|