red-arrow-flight 5.0.0 → 6.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/arrow-flight/version.rb +1 -1
- data/test/helper/info-generator.rb +5 -1
- data/test/helper/server.rb +9 -0
- data/test/test-client.rb +8 -0
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4eb9e3b820f14e53bf89d133d8424ee27aee47a93b83f1cb4ecc4831acff5692
|
4
|
+
data.tar.gz: 46d537529a5ca4d34449ec456902b9f3c10dc7105107ddc8d6e5eb5971f92a8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a75a5d72cd3fe1389c64f3f0857bce86a7f972e9d4b945c9dc1c4e8eac672980c13bcef6e6f67bfa5cdedfd3bf58da996e72dabc3eed5103aba8bfb0b6b275cd
|
7
|
+
data.tar.gz: 658a7b105fedb6839f27774651254b4c7d890bbfcdaf98c92cf811830446459dfe7d2e024b1682b844b227162f2a3a206499ac97189da3c94884d9da3e2c9c31
|
data/lib/arrow-flight/version.rb
CHANGED
@@ -27,13 +27,17 @@ module Helper
|
|
27
27
|
ArrowFlight::PathDescriptor.new(["page-view"])
|
28
28
|
end
|
29
29
|
|
30
|
+
def page_view_ticket
|
31
|
+
"page-view"
|
32
|
+
end
|
33
|
+
|
30
34
|
def page_view_endpoints
|
31
35
|
locations = [
|
32
36
|
ArrowFlight::Location.new("grpc+tcp://127.0.0.1:10000"),
|
33
37
|
ArrowFlight::Location.new("grpc+tcp://127.0.0.1:10001"),
|
34
38
|
]
|
35
39
|
[
|
36
|
-
ArrowFlight::Endpoint.new(
|
40
|
+
ArrowFlight::Endpoint.new(page_view_ticket, locations),
|
37
41
|
]
|
38
42
|
end
|
39
43
|
|
data/test/helper/server.rb
CHANGED
@@ -26,5 +26,14 @@ module Helper
|
|
26
26
|
generator = InfoGenerator.new
|
27
27
|
[generator.page_view]
|
28
28
|
end
|
29
|
+
|
30
|
+
def virtual_do_do_get(context, ticket)
|
31
|
+
generator = InfoGenerator.new
|
32
|
+
if ticket.data.to_s != generator.page_view_ticket
|
33
|
+
raise Arrow::Error::Invalid.new("invalid ticket")
|
34
|
+
end
|
35
|
+
table = generator.page_view_table
|
36
|
+
ArrowFlight::RecordBatchStream.new(table)
|
37
|
+
end
|
29
38
|
end
|
30
39
|
end
|
data/test/test-client.rb
CHANGED
@@ -35,4 +35,12 @@ class TestClient < Test::Unit::TestCase
|
|
35
35
|
assert_equal([generator.page_view],
|
36
36
|
client.list_flights)
|
37
37
|
end
|
38
|
+
|
39
|
+
def test_do_get
|
40
|
+
client = ArrowFlight::Client.new(@location)
|
41
|
+
generator = Helper::InfoGenerator.new
|
42
|
+
reader = client.do_get(generator.page_view_ticket)
|
43
|
+
assert_equal(generator.page_view_table,
|
44
|
+
reader.read_all)
|
45
|
+
end
|
38
46
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: red-arrow-flight
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 6.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Apache Arrow Developers
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: red-arrow
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 6.0.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 6.0.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -101,7 +101,7 @@ homepage: https://arrow.apache.org/
|
|
101
101
|
licenses:
|
102
102
|
- Apache-2.0
|
103
103
|
metadata: {}
|
104
|
-
post_install_message:
|
104
|
+
post_install_message:
|
105
105
|
rdoc_options: []
|
106
106
|
require_paths:
|
107
107
|
- lib
|
@@ -116,15 +116,15 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: '0'
|
118
118
|
requirements: []
|
119
|
-
rubygems_version: 3.2.
|
120
|
-
signing_key:
|
119
|
+
rubygems_version: 3.2.27
|
120
|
+
signing_key:
|
121
121
|
specification_version: 4
|
122
122
|
summary: Red Arrow Flight is the Ruby bindings of Apache Arrow Flight
|
123
123
|
test_files:
|
124
|
-
- test/helper/info-generator.rb
|
125
|
-
- test/helper/server.rb
|
126
124
|
- test/helper.rb
|
127
125
|
- test/run-test.rb
|
128
|
-
- test/test-client.rb
|
129
|
-
- test/test-location.rb
|
130
126
|
- test/test-ticket.rb
|
127
|
+
- test/test-location.rb
|
128
|
+
- test/helper/info-generator.rb
|
129
|
+
- test/helper/server.rb
|
130
|
+
- test/test-client.rb
|