groonga-client 0.6.6 → 0.6.7
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3a13092963c9a1d652d8c16687494adcd044ac4036e5740085aab049f3c84b77
|
|
4
|
+
data.tar.gz: 29d881eb07c7dbec1c87070f42bf19e850a8849f0b72e0d09696b10f521d5392
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8901feec4d9cb6315502d1e5e30d91df3dc9d94a628cf5e5dbb6ae9045ff0a75f0cd4c2e6ef826d4de482ea96fbe80e05d32897a9a8b2cba20c8f4ff66fc3f4d
|
|
7
|
+
data.tar.gz: ced3f733068a72491b4f2f8f5472f1fa5c605d3af4d7a345290764f97b49a2fd0d732dd6bf26499fc1af1759359052289b51026974ab9969d62b1fa37d4d6b18
|
data/doc/text/news.md
CHANGED
|
@@ -25,9 +25,9 @@ module Groonga
|
|
|
25
25
|
@client = client
|
|
26
26
|
@split_load_chunk_size = options[:split_load_chunk_size] || 10000
|
|
27
27
|
@generate_request_id = options[:generate_request_id]
|
|
28
|
-
@target_commands = options[:target_commands]
|
|
29
|
-
@target_tables = options[:target_tables]
|
|
30
|
-
@target_columns = options[:target_columns]
|
|
28
|
+
@target_commands = options[:target_commands] || []
|
|
29
|
+
@target_tables = options[:target_tables] || []
|
|
30
|
+
@target_columns = options[:target_columns] || []
|
|
31
31
|
@load_values = []
|
|
32
32
|
@parser = create_command_parser
|
|
33
33
|
end
|
|
@@ -46,7 +46,7 @@ module Groonga
|
|
|
46
46
|
last_line = line
|
|
47
47
|
@parser << line
|
|
48
48
|
end
|
|
49
|
-
if last_line and last_line.end_with?("\n")
|
|
49
|
+
if last_line and not last_line.end_with?("\n")
|
|
50
50
|
@parser << "\n"
|
|
51
51
|
end
|
|
52
52
|
end
|
|
@@ -168,11 +168,17 @@ module Groonga
|
|
|
168
168
|
command.arguments,
|
|
169
169
|
[])
|
|
170
170
|
command.path_prefix = path_prefix
|
|
171
|
-
|
|
171
|
+
load_input_type = @options[:load_input_type]
|
|
172
|
+
if defined?(Arrow) and command[:values].is_a?(Arrow::Table)
|
|
173
|
+
load_input_type = "apache-arrow"
|
|
174
|
+
arrow_table = command[:values]
|
|
175
|
+
elsif load_input_type == "apache-arrow"
|
|
176
|
+
arrow_table = command.build_arrow_table
|
|
177
|
+
end
|
|
178
|
+
case load_input_type
|
|
172
179
|
when "apache-arrow"
|
|
173
180
|
command[:input_type] = "apache-arrow"
|
|
174
181
|
content_type = "application/x-apache-arrow-streaming"
|
|
175
|
-
arrow_table = command.build_arrow_table
|
|
176
182
|
if arrow_table
|
|
177
183
|
buffer = Arrow::ResizableBuffer.new(1024)
|
|
178
184
|
arrow_table.save(buffer, format: :stream)
|
data/lib/groonga/client.rb
CHANGED
|
@@ -280,7 +280,11 @@ module Groonga
|
|
|
280
280
|
def normalize_parameters(parameters)
|
|
281
281
|
normalized_parameters = {}
|
|
282
282
|
parameters.each do |key, value|
|
|
283
|
-
|
|
283
|
+
if defined?(Arrow) and value.is_a?(Arrow::Table)
|
|
284
|
+
normalized_parameters[key] = value
|
|
285
|
+
else
|
|
286
|
+
normalized_parameters[key] = value.to_s
|
|
287
|
+
end
|
|
284
288
|
end
|
|
285
289
|
normalized_parameters
|
|
286
290
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: groonga-client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Haruka Yoshihara
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date:
|
|
13
|
+
date: 2022-01-06 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: gqtp
|
|
@@ -301,7 +301,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
301
301
|
- !ruby/object:Gem::Version
|
|
302
302
|
version: '0'
|
|
303
303
|
requirements: []
|
|
304
|
-
rubygems_version: 3.
|
|
304
|
+
rubygems_version: 3.4.0.dev
|
|
305
305
|
signing_key:
|
|
306
306
|
specification_version: 4
|
|
307
307
|
summary: Groonga-client is a client for Groonga (http://groonga.org/) implemented
|