[Groonga-commit] groonga/groonga at 28427a0 [master] test: add a test for using nonexistent _sum as a sort key

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Jan 24 15:20:21 JST 2017


Kouhei Sutou	2017-01-24 15:20:21 +0900 (Tue, 24 Jan 2017)

  New Revision: 28427a02a00e573ebdf823ee1a3cd2c5b5208cdc
  https://github.com/groonga/groonga/commit/28427a02a00e573ebdf823ee1a3cd2c5b5208cdc

  Message:
    test: add a test for using nonexistent _sum as a sort key
    
    GitHub: #625

  Added files:
    test/command/suite/select/drilldowns/sort_keys/invalid/nonexistent/sum.expected
    test/command/suite/select/drilldowns/sort_keys/invalid/nonexistent/sum.test

  Added: test/command/suite/select/drilldowns/sort_keys/invalid/nonexistent/sum.expected (+14 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/select/drilldowns/sort_keys/invalid/nonexistent/sum.expected    2017-01-24 15:20:21 +0900 (8e51c45)
@@ -0,0 +1,14 @@
+table_create Tags TABLE_PAT_KEY ShortText
+[[0,0.0,0.0],true]
+table_create Items TABLE_HASH_KEY ShortText
+[[0,0.0,0.0],true]
+column_create Items tag COLUMN_SCALAR Tags
+[[0,0.0,0.0],true]
+load --table Items
+[
+{"_key": "Mroonga", "tag": "MySQL"},
+{"_key": "PGroonga", "tag": "PostgreSQL"}
+]
+[[0,0.0,0.0],2]
+select Items   --drilldowns[tag].keys tag   --drilldowns[tag].sort_keys -_sum
+failed to parse <json> content: 409: unexpected token at '{"tag"}]]': <[[-22,1485238798.712087,0.0003325939178466797,"invalid sort key: <_sum>: table:<(anonymous)> keys:<-_sum>",[["grn_table_sort_key_from_str","db.c",13495]]],[[[2],[["_id","UInt32"],["_key","ShortText"],["tag","Tags"]],[1,"Mroonga","MySQL"],[2,"PGroonga","PostgreSQL"]],{"tag"}]]>#|w| invalid sort key: <_sum>: table:<(anonymous)> keys:<-_sum>

  Added: test/command/suite/select/drilldowns/sort_keys/invalid/nonexistent/sum.test (+14 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/select/drilldowns/sort_keys/invalid/nonexistent/sum.test    2017-01-24 15:20:21 +0900 (88c80fa)
@@ -0,0 +1,14 @@
+table_create Tags TABLE_PAT_KEY ShortText
+
+table_create Items TABLE_HASH_KEY ShortText
+column_create Items tag COLUMN_SCALAR Tags
+
+load --table Items
+[
+{"_key": "Mroonga", "tag": "MySQL"},
+{"_key": "PGroonga", "tag": "PostgreSQL"}
+]
+
+select Items \
+  --drilldowns[tag].keys tag \
+  --drilldowns[tag].sort_keys -_sum
-------------- next part --------------
HTML����������������������������...
下载 



More information about the Groonga-commit mailing list
Back to archive index