[Groonga-commit] groonga/groonga at 772f45e [master] test scorer: add a test that applies "!=" for empty vector column.

アーカイブの一覧に戻る

Yasuhiro Horimoto null+****@clear*****
Tue Sep 25 11:36:35 JST 2018


Yasuhiro Horimoto	2018-09-25 11:36:35 +0900 (Tue, 25 Sep 2018)

  Revision: 772f45ee3b4ae22bc30d0cd966796e88ba941dff
  https://github.com/groonga/groonga/commit/772f45ee3b4ae22bc30d0cd966796e88ba941dff

  Merged c38c8e1: Merge pull request #873 from komainu8/fix_test_for_scorer

  Message:
    test scorer: add a test that applies "!=" for empty vector column.

  Added files:
    test/command/suite/select/scorer/expression/not_match.expected
    test/command/suite/select/scorer/expression/not_match.test

  Added: test/command/suite/select/scorer/expression/not_match.expected (+11 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/select/scorer/expression/not_match.expected    2018-09-25 11:36:35 +0900 (288092d6d)
@@ -0,0 +1,11 @@
+table_create Users TABLE_HASH_KEY ShortText
+[[0,0.0,0.0],true]
+column_create Users tags COLUMN_VECTOR ShortText
+[[0,0.0,0.0],true]
+load --table Users
+[
+{"_key": "alice"}
+]
+[[0,0.0,0.0],1]
+select Users   --filter true   --scorer '_score = (tags != "")'   --output_columns _score
+[[0,0.0,0.0],[[[1],[["_score","Int32"]],[0]]]]

  Added: test/command/suite/select/scorer/expression/not_match.test (+7 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/select/scorer/expression/not_match.test    2018-09-25 11:36:35 +0900 (fddbbb588)
@@ -0,0 +1,7 @@
+table_create Users TABLE_HASH_KEY ShortText
+column_create Users tags COLUMN_VECTOR ShortText
+load --table Users
+[
+{"_key": "alice"}
+]
+select Users   --filter true   --scorer '_score = (tags != "")'   --output_columns _score
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180925/41bd53a5/attachment-0002.htm 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る