groonga-query-log 1.7.9 → 1.8.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: d37a2e35f6eb1b0002f81d5d3e5e3f1cbb3115816da95d0d2fba95e40d4602ac
4
- data.tar.gz: f790ad37a5cb6748181588534a8ce6fc06979921e0c5eb68e016c56b2df8f906
3
+ metadata.gz: ae803e531a9de7b9dde04c51ee0bfe903f363b522c6c409d54379ffed90092ca
4
+ data.tar.gz: 14025325da45477c2f4b30023bef1776b25998e3ce26366f3a364086866fb3cc
5
5
  SHA512:
6
- metadata.gz: 61c8927fe0bc65eeeb763694af65e2988047264dd1f05a3daf6b2c7fa702f7793e1a9466e5c7764a9f2f48f804a5927093fd62e09414f7ed88184bcee659dbf7
7
- data.tar.gz: a7aee9d119a6e1569320bf3e4b2abf2b78e8eccb69c694fcc3850ac37fb3848d8fc01e62c2bbd8e845bb2435f13e7e10c2104f1b01bc2275095ee9f9a8ae134d
6
+ metadata.gz: 7ca696e6d91aa061d0ef26daec4485526d21770bc7285ce7de4c3bdd7491d9a81343f1e338674d0e3d0cccdbcab8231213d644f08e71fba15687f9c2a579218e
7
+ data.tar.gz: 7273e19841b3f33e0747bd59b63a01758eb790a2413b164214d0304a5a52be8f18c327951f1fe29afde49092040d75b5d9ce8ae17294b57911e8c1d7385ab199
data/doc/text/news.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # News
2
2
 
3
+ ## 1.8.0: 2026-10-07
4
+
5
+ ### Fixes
6
+
7
+ * `server-verifier`: Stopped overriding `output_type` with `json`. It now uses the request's `output_type` as is.
8
+ * As a result, regression tests now compare responses in the request's `output_type` format.
9
+
3
10
  ## 1.7.9: 2026-01-27
4
11
 
5
12
  ### Improvements
@@ -355,10 +355,16 @@ module GroongaQueryLog
355
355
  def normalize_columns(columns)
356
356
  columns.collect do |name, type|
357
357
  type = nil if type == "null"
358
+ type = normalize_type(type) if type
358
359
  [name, type]
359
360
  end
360
361
  end
361
362
 
363
+ def normalize_type(type)
364
+ type.gsub(/dictionary<values=([^,]+), indices=[a-z0-9]+, ordered=\d+>/,
365
+ '\1')
366
+ end
367
+
362
368
  def normalize_value(value, column)
363
369
  type = column[1]
364
370
  case type
@@ -187,7 +187,6 @@ module GroongaQueryLog
187
187
  command["limit"] = @options.max_limit.to_s
188
188
  end
189
189
  end
190
- command["output_type"] = "json"
191
190
  rewrite_filter(command, "filter")
192
191
  rewrite_filter(command, "scorer")
193
192
 
@@ -15,5 +15,5 @@
15
15
  # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
17
  module GroongaQueryLog
18
- VERSION = "1.7.9"
18
+ VERSION = "1.8.0"
19
19
  end
@@ -115,6 +115,44 @@ class ResponseComparerTest < Test::Unit::TestCase
115
115
  end
116
116
  end
117
117
 
118
+ class ArrowDictionaryTypeTest < self
119
+ def test_dictionary_string
120
+ assert_true(same?([
121
+ [
122
+ [1],
123
+ [["User", "string"]],
124
+ ["groonga"],
125
+ ],
126
+ ],
127
+ [
128
+ [
129
+ [1],
130
+ [["User",
131
+ "dictionary<values=string, indices=int32, ordered=0>"]],
132
+ ["groonga"],
133
+ ],
134
+ ]))
135
+ end
136
+
137
+ def test_list_dictionary_list_string
138
+ assert_true(same?([
139
+ [
140
+ [1],
141
+ [["Details", "list<item: string>"]],
142
+ [["groonga", "mroonga"]],
143
+ ],
144
+ ],
145
+ [
146
+ [
147
+ [1],
148
+ [["Details",
149
+ "list<item: dictionary<values=string, indices=int32, ordered=0>>"]],
150
+ [["groonga", "mroonga"]],
151
+ ],
152
+ ]))
153
+ end
154
+ end
155
+
118
156
  class SortKeysTest < self
119
157
  class DetectScoreSortTest < self
120
158
  private
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: groonga-query-log
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.9
4
+ version: 1.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-01-27 00:00:00.000000000 Z
11
+ date: 2026-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64