red-arrow-flight 25.0.0 → 26.0.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 +4 -4
- data/Rakefile +3 -1
- data/lib/arrow-flight/criteria.rb +39 -0
- data/lib/arrow-flight/loader.rb +1 -0
- data/lib/arrow-flight/ticket.rb +8 -0
- data/lib/arrow-flight/version.rb +1 -1
- data/test/test-client.rb +0 -1
- data/test/test-criteria.rb +27 -0
- metadata +7 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 881c877b76ef91cc896aee78bf850ab0dfcd4ce73b5db00ff81ce6d1c560d732
|
|
4
|
+
data.tar.gz: fa3ee80cd33375b786e23aa78e45f3e3eaba39c0132a9c1d36d3defae34c919e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: be151c7ac419089f0ceedf459526af472694dcdac50603ef2be433eb4eb990ce3bccfb2dbee97b75c71c1c2748ffee21db53640bbc53545e67422f40b82e4f2a
|
|
7
|
+
data.tar.gz: 22129ddfb4fcbdf557fe75cb3592515b0af8206268b8dae1b982a065e805ea81d96901cb57ed250a4158b6a12efb338131cc4be6d4fda7e4fd7f576fab03ed8a
|
data/Rakefile
CHANGED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Licensed to the Apache Software Foundation (ASF) under one
|
|
2
|
+
# or more contributor license agreements. See the NOTICE file
|
|
3
|
+
# distributed with this work for additional information
|
|
4
|
+
# regarding copyright ownership. The ASF licenses this file
|
|
5
|
+
# to you under the Apache License, Version 2.0 (the
|
|
6
|
+
# "License"); you may not use this file except in compliance
|
|
7
|
+
# with the License. You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
|
12
|
+
# software distributed under the License is distributed on an
|
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
# KIND, either express or implied. See the License for the
|
|
15
|
+
# specific language governing permissions and limitations
|
|
16
|
+
# under the License.
|
|
17
|
+
|
|
18
|
+
module ArrowFlight
|
|
19
|
+
class Criteria
|
|
20
|
+
class << self
|
|
21
|
+
def try_convert(value)
|
|
22
|
+
case value
|
|
23
|
+
when String, GLib::Bytes
|
|
24
|
+
new(value)
|
|
25
|
+
else
|
|
26
|
+
nil
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
alias_method :initialize_raw, :initialize
|
|
32
|
+
private :initialize_raw
|
|
33
|
+
def initialize(expression)
|
|
34
|
+
expression = GLib::Bytes.new(expression) if expression.is_a?(String)
|
|
35
|
+
initialize_raw(expression)
|
|
36
|
+
@expression = expression
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
data/lib/arrow-flight/loader.rb
CHANGED
|
@@ -32,6 +32,7 @@ module ArrowFlight
|
|
|
32
32
|
require "arrow-flight/call-options"
|
|
33
33
|
require "arrow-flight/client"
|
|
34
34
|
require "arrow-flight/client-options"
|
|
35
|
+
require "arrow-flight/criteria"
|
|
35
36
|
require "arrow-flight/location"
|
|
36
37
|
require "arrow-flight/record-batch-reader"
|
|
37
38
|
require "arrow-flight/server-call-context"
|
data/lib/arrow-flight/ticket.rb
CHANGED
|
@@ -28,5 +28,13 @@ module ArrowFlight
|
|
|
28
28
|
end
|
|
29
29
|
end
|
|
30
30
|
end
|
|
31
|
+
|
|
32
|
+
alias_method :initialize_raw, :initialize
|
|
33
|
+
private :initialize_raw
|
|
34
|
+
def initialize(data)
|
|
35
|
+
data = GLib::Bytes.new(data) if data.is_a?(String)
|
|
36
|
+
initialize_raw(data)
|
|
37
|
+
@data = data
|
|
38
|
+
end
|
|
31
39
|
end
|
|
32
40
|
end
|
data/lib/arrow-flight/version.rb
CHANGED
data/test/test-client.rb
CHANGED
|
@@ -19,7 +19,6 @@ class TestClient < Test::Unit::TestCase
|
|
|
19
19
|
def setup
|
|
20
20
|
@server = nil
|
|
21
21
|
omit("Unstable on Windows") if Gem.win_platform?
|
|
22
|
-
omit("Unstable on x86_64 macOS") if /x86_64-darwin/.match?(RUBY_PLATFORM)
|
|
23
22
|
@server = Helper::Server.new
|
|
24
23
|
@server.listen("grpc://127.0.0.1:0")
|
|
25
24
|
@location = "grpc://127.0.0.1:#{@server.port}"
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Licensed to the Apache Software Foundation (ASF) under one
|
|
2
|
+
# or more contributor license agreements. See the NOTICE file
|
|
3
|
+
# distributed with this work for additional information
|
|
4
|
+
# regarding copyright ownership. The ASF licenses this file
|
|
5
|
+
# to you under the Apache License, Version 2.0 (the
|
|
6
|
+
# "License"); you may not use this file except in compliance
|
|
7
|
+
# with the License. You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
|
12
|
+
# software distributed under the License is distributed on an
|
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
# KIND, either express or implied. See the License for the
|
|
15
|
+
# specific language governing permissions and limitations
|
|
16
|
+
# under the License.
|
|
17
|
+
|
|
18
|
+
class TestCriteria < Test::Unit::TestCase
|
|
19
|
+
sub_test_case(".try_convert") do
|
|
20
|
+
def test_string
|
|
21
|
+
expression = "expression"
|
|
22
|
+
criteria = ArrowFlight::Criteria.try_convert(expression)
|
|
23
|
+
assert_equal(expression,
|
|
24
|
+
criteria.expression.to_s)
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: red-arrow-flight
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 26.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- The Apache Software Foundation
|
|
@@ -15,14 +15,14 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - '='
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version:
|
|
18
|
+
version: 26.0.0
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - '='
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version:
|
|
25
|
+
version: 26.0.0
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
27
|
name: bundler
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -84,6 +84,7 @@ files:
|
|
|
84
84
|
- lib/arrow-flight/call-options.rb
|
|
85
85
|
- lib/arrow-flight/client-options.rb
|
|
86
86
|
- lib/arrow-flight/client.rb
|
|
87
|
+
- lib/arrow-flight/criteria.rb
|
|
87
88
|
- lib/arrow-flight/loader.rb
|
|
88
89
|
- lib/arrow-flight/location.rb
|
|
89
90
|
- lib/arrow-flight/record-batch-reader.rb
|
|
@@ -98,6 +99,7 @@ files:
|
|
|
98
99
|
- test/run-test.rb
|
|
99
100
|
- test/test-call-options.rb
|
|
100
101
|
- test/test-client.rb
|
|
102
|
+
- test/test-criteria.rb
|
|
101
103
|
- test/test-location.rb
|
|
102
104
|
- test/test-record-batch-reader.rb
|
|
103
105
|
- test/test-ticket.rb
|
|
@@ -119,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
119
121
|
- !ruby/object:Gem::Version
|
|
120
122
|
version: '0'
|
|
121
123
|
requirements: []
|
|
122
|
-
rubygems_version:
|
|
124
|
+
rubygems_version: 4.0.20
|
|
123
125
|
specification_version: 4
|
|
124
126
|
summary: Red Arrow Flight is the Ruby bindings of Apache Arrow Flight
|
|
125
127
|
test_files:
|
|
@@ -129,6 +131,7 @@ test_files:
|
|
|
129
131
|
- test/run-test.rb
|
|
130
132
|
- test/test-call-options.rb
|
|
131
133
|
- test/test-client.rb
|
|
134
|
+
- test/test-criteria.rb
|
|
132
135
|
- test/test-location.rb
|
|
133
136
|
- test/test-record-batch-reader.rb
|
|
134
137
|
- test/test-ticket.rb
|