pinot-client 1.38.0 → 1.39.0
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/pinot/config.rb +4 -12
- data/lib/pinot/connection.rb +1 -3
- data/lib/pinot/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0231a48472620e6b8f6b974583554efbfb27ff5571cd660f285bf22da1c18cb2
|
|
4
|
+
data.tar.gz: 158f053cadb5ae49dd9a557bc1cbcac2853ccd7c73796d0ec46527f058a3c445
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6ce222fc01477a1ee339846481010fdb26a5ea9631cee028c01764dbc6f652ae1c207d2be2786294b66badc742d9b9fec0a2ad4eb9b4957924c60c61c7782b5d
|
|
7
|
+
data.tar.gz: 5442acc79dfdf405e114609b28d03942e56a7feebd0fbd7f709ffbf097bc04e578f27f1fb1461ae005bd0fcba894f61e881ca26941086e523207d4d5433b6a3b
|
data/lib/pinot/config.rb
CHANGED
|
@@ -77,23 +77,15 @@ module Pinot
|
|
|
77
77
|
!grpc_config.nil?
|
|
78
78
|
].count(true)
|
|
79
79
|
|
|
80
|
-
if sources == 0
|
|
81
|
-
raise ConfigurationError, "ClientConfig requires at least one of: broker_list, controller_config, zookeeper_config, or grpc_config"
|
|
82
|
-
end
|
|
80
|
+
raise ConfigurationError, "ClientConfig requires at least one of: broker_list, controller_config, zookeeper_config, or grpc_config" if sources == 0
|
|
83
81
|
|
|
84
|
-
if !http_timeout.nil? && http_timeout <= 0
|
|
85
|
-
raise ConfigurationError, "http_timeout must be positive, got: #{http_timeout}"
|
|
86
|
-
end
|
|
82
|
+
raise ConfigurationError, "http_timeout must be positive, got: #{http_timeout}" if !http_timeout.nil? && http_timeout <= 0
|
|
87
83
|
|
|
88
|
-
if !query_timeout_ms.nil? && query_timeout_ms <= 0
|
|
89
|
-
raise ConfigurationError, "query_timeout_ms must be positive, got: #{query_timeout_ms}"
|
|
90
|
-
end
|
|
84
|
+
raise ConfigurationError, "query_timeout_ms must be positive, got: #{query_timeout_ms}" if !query_timeout_ms.nil? && query_timeout_ms <= 0
|
|
91
85
|
|
|
92
86
|
raise ConfigurationError, "pool_size must be at least 1, got: #{pool_size}" if !pool_size.nil? && pool_size < 1
|
|
93
87
|
|
|
94
|
-
if !keep_alive_timeout.nil? && keep_alive_timeout <= 0
|
|
95
|
-
raise ConfigurationError, "keep_alive_timeout must be positive, got: #{keep_alive_timeout}"
|
|
96
|
-
end
|
|
88
|
+
raise ConfigurationError, "keep_alive_timeout must be positive, got: #{keep_alive_timeout}" if !keep_alive_timeout.nil? && keep_alive_timeout <= 0
|
|
97
89
|
|
|
98
90
|
self
|
|
99
91
|
end
|
data/lib/pinot/connection.rb
CHANGED
|
@@ -222,9 +222,7 @@ module Pinot
|
|
|
222
222
|
def format_query(pattern, params)
|
|
223
223
|
params ||= []
|
|
224
224
|
placeholders = pattern.count("?")
|
|
225
|
-
if placeholders != params.length
|
|
226
|
-
raise "failed to format query: number of placeholders in queryPattern (#{placeholders}) does not match number of params (#{params.length})"
|
|
227
|
-
end
|
|
225
|
+
raise "failed to format query: number of placeholders in queryPattern (#{placeholders}) does not match number of params (#{params.length})" if placeholders != params.length
|
|
228
226
|
|
|
229
227
|
parts = pattern.split("?", -1)
|
|
230
228
|
result = ""
|
data/lib/pinot/version.rb
CHANGED