trino-client 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,41 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe Trino::Client::Client do
4
- before(:all) do
5
- @spec_path = File.dirname(__FILE__)
6
- WebMock.disable!
7
- @cluster = TinyPresto::Cluster.new()
8
- @container = @cluster.run
9
- @client = Trino::Client.new(server: 'localhost:8080', catalog: 'tpch', user: 'test-user', schema: 'tiny')
10
- loop do
11
- begin
12
- # Make sure to all workers are available.
13
- @client.run('show schemas')
14
- break
15
- rescue StandardError => exception
16
- puts "Waiting for cluster ready... #{exception}"
17
- sleep(3)
18
- end
19
- end
20
- puts 'Cluster is ready'
21
- end
22
-
23
- after(:all) do
24
- @cluster.stop
25
- WebMock.enable!
26
- end
27
-
28
- it 'q01' do
29
- q = File.read("#{@spec_path}/tpch/q01.sql")
30
- columns, rows = run_with_retry(@client, q)
31
- expect(columns.length).to be(10)
32
- expect(rows.length).to be(4)
33
- end
34
-
35
- it 'q02' do
36
- q = File.read("#{@spec_path}/tpch/q02.sql")
37
- columns, rows = run_with_retry(@client, q)
38
- expect(columns.length).to be(8)
39
- expect(rows.length).to be(4)
40
- end
41
- end
@@ -1 +0,0 @@
1
- require "trino-client"
@@ -1,20 +0,0 @@
1
- require File.expand_path "../lib/trino/client/version", File.dirname(__FILE__)
2
-
3
- Gem::Specification.new do |gem|
4
- gem.name = "trino-client-ruby"
5
- gem.version = Trino::Client::VERSION
6
-
7
- gem.authors = ["Sadayuki Furuhashi"]
8
- gem.email = ["sf@treasure-data.com"]
9
- gem.description = "Trino client library"
10
- gem.summary = "Trino client library"
11
- gem.homepage = "https://github.com/treasure-data/trino-client-ruby"
12
- gem.license = "Apache-2.0"
13
-
14
- gem.files = ["lib/trino-client-ruby.rb"]
15
- gem.require_paths = ["lib"]
16
-
17
- gem.required_ruby_version = ">= 1.9.1"
18
-
19
- gem.add_dependency "trino-client", Trino::Client::VERSION
20
- end