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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dac5cdb556b00e87fb6dc56312655d8544ec3eea0b72f900699985b35789da23
4
- data.tar.gz: 985ca7b39f14c4eb756740c1314be23ed8d18df99dbf1965d4d5036198caa55a
3
+ metadata.gz: 0231a48472620e6b8f6b974583554efbfb27ff5571cd660f285bf22da1c18cb2
4
+ data.tar.gz: 158f053cadb5ae49dd9a557bc1cbcac2853ccd7c73796d0ec46527f058a3c445
5
5
  SHA512:
6
- metadata.gz: 79b0fed74bd59d48ebd03136af2ba3d964c201156c29e5d4be8d48a425c8640ab525b64b5c6631fd2e6eb30a21d5fee9558ba9cf855471f0011fd12d5ea0234f
7
- data.tar.gz: 7eeacd4d44239dac8ff56c092ec18e809ae156971b47317e17642135e8fa53fa53abbab4865fae885c5b885f2823125b6d075ae454092e51d13f9aa5d4ea9adc
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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Pinot
2
- VERSION = "1.38.0".freeze
2
+ VERSION = "1.39.0".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pinot-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.38.0
4
+ version: 1.39.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Xiang Fu