pinot-client 1.38.0 → 1.40.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: 984b9d9481944b87a1fc26763e093b317dac1acd006f776297b7a1ebd651d0e0
4
+ data.tar.gz: e05aad670a2355ed327100d38053d3029a41293b89d26166d7c57aa13e37fc49
5
5
  SHA512:
6
- metadata.gz: 79b0fed74bd59d48ebd03136af2ba3d964c201156c29e5d4be8d48a425c8640ab525b64b5c6631fd2e6eb30a21d5fee9558ba9cf855471f0011fd12d5ea0234f
7
- data.tar.gz: 7eeacd4d44239dac8ff56c092ec18e809ae156971b47317e17642135e8fa53fa53abbab4865fae885c5b885f2823125b6d075ae454092e51d13f9aa5d4ea9adc
6
+ metadata.gz: d0bb69658384d6cff2f053479876e34247432fc2297c6fa1e91022f6e16f37ade56228b9e45fda178b3858b95e978793288f332f4be39a7f043d1723d23c7a96
7
+ data.tar.gz: 8e3576ceb4cd21b85c66a2139445e9c3aa9f37e20fcc9b8668dbc8f90fe16958e3e45eb8eb5ba6b6a05e183de18ac9b5ce375bca332a2e1959ed3c4cc243f8bf
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.40.0".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
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.40.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Xiang Fu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-08-29 00:00:00.000000000 Z
11
+ date: 2026-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logger