pinot-client 1.10.0 → 1.15.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: ddb501e91483838437691807ff09f98be16584f5b5e9e25c32982581db9fc226
4
- data.tar.gz: 69f4df0c9fae29d42388b5fa6e1f55a1c722f70673c91b5ad43339762ad052fe
3
+ metadata.gz: 9f8ec1d9b9dd17c63f38ddf2d30db5e331d0d1decd66a43335dc9488690ebef2
4
+ data.tar.gz: 518d0d4c6210660a9270166fdd0131c6bc363862e51449c531512bcaf2b37e8f
5
5
  SHA512:
6
- metadata.gz: 974f22a9db31c53e6a0534400347df98b419a1f6fffc351594bc6ea06456d211cda4ede80390fdf7c9b67a0f0559a6772a8225cc552b2844fb28e33ea11220b6
7
- data.tar.gz: 711718da0cb66cd42457c657f58fc29450049094a1f6bf9012557a3b484dc59ca2d66f45bbf9c2c716597779a084fc59ab7fb15730fbac4648ac47823291d9c4
6
+ metadata.gz: 550bef73ba7ad87e2712058e97836b5ad10fd3c8489e1649985fbf6ae487afccee0040bb2169e842161aa8dc788257b80aa62143e4fa028b68197f2a0616ea82
7
+ data.tar.gz: 957ca4aa0a52098aa7bb7158a8a931764bfd1d4d6bb2630c5eae2356d6719dc0909e67801f1d1db50aa14036c323d1bce9070ae8af240f8660b348190d779049
data/README.md CHANGED
@@ -40,6 +40,22 @@ resp = client.execute_sql("baseballStats", "SELECT count(*) AS cnt FROM baseba
40
40
  puts resp.result_table.get_long(0, 0) # => 97889
41
41
  ```
42
42
 
43
+ ## Examples
44
+
45
+ The [`examples/`](examples/) directory contains runnable scripts demonstrating common usage patterns:
46
+
47
+ - [`basic_query.rb`](examples/basic_query.rb) — simple SQL query and result iteration
48
+ - [`prepared_statement.rb`](examples/prepared_statement.rb) — parameterized queries with PreparedStatement
49
+ - [`controller_discovery.rb`](examples/controller_discovery.rb) — automatic broker discovery via Controller
50
+ - [`instrumentation.rb`](examples/instrumentation.rb) — attaching metrics/logging hooks
51
+ - [`multistage_query.rb`](examples/multistage_query.rb) — multi-stage query engine usage
52
+
53
+ Run any example against a local Pinot quickstart cluster:
54
+
55
+ ```bash
56
+ ruby examples/basic_query.rb
57
+ ```
58
+
43
59
  ## Creating a Connection
44
60
 
45
61
  ### From a broker list
@@ -38,6 +38,7 @@ module Pinot
38
38
  http_client: inner,
39
39
  extra_headers: config.extra_http_header || {},
40
40
  logger: config.logger,
41
+ timeout_ms: config.query_timeout_ms,
41
42
  max_retries: config.max_retries || 0,
42
43
  retry_interval_ms: config.retry_interval_ms || 200
43
44
  )
@@ -46,7 +47,8 @@ module Pinot
46
47
  transport: transport,
47
48
  broker_selector: selector,
48
49
  use_multistage_engine: config.use_multistage_engine || false,
49
- logger: config.logger
50
+ logger: config.logger,
51
+ query_timeout_ms: config.query_timeout_ms
50
52
  )
51
53
  end
52
54
 
data/lib/pinot/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Pinot
2
- VERSION = "1.10.0"
2
+ VERSION = "1.15.0"
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.10.0
4
+ version: 1.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Xiang Fu
@@ -104,6 +104,7 @@ licenses:
104
104
  metadata:
105
105
  homepage_uri: https://github.com/startreedata/ruby-pinot-client
106
106
  source_code_uri: https://github.com/startreedata/ruby-pinot-client
107
+ changelog_uri: https://github.com/startreedata/ruby-pinot-client/blob/main/CHANGELOG.md
107
108
  bug_tracker_uri: https://github.com/startreedata/ruby-pinot-client/issues
108
109
  github_repo: ssh://git@github.com/startreedata/ruby-pinot-client
109
110
  post_install_message: