[Groonga-commit] groonga/groonga at a7487e9 [master] Add tast of `--sort_hash_table` option

Back to archive index

HorimotoYasuhiro null+****@clear*****
Wed Jul 12 18:59:28 JST 2017


HorimotoYasuhiro	2017-07-12 18:59:28 +0900 (Wed, 12 Jul 2017)

  New Revision: a7487e997055cf88083e52c4a5cd9d4c49f2d0c0
  https://github.com/groonga/groonga/commit/a7487e997055cf88083e52c4a5cd9d4c49f2d0c0

  Merged 88adb62: Merge pull request #736 from komainu8/feature/add_sort_hash_table

  Message:
    Add tast of `--sort_hash_table` option

  Added files:
    test/command/suite/dump/record/dump_hash_table_sort.expected
    test/command/suite/dump/record/dump_hash_table_sort.test

  Added: test/command/suite/dump/record/dump_hash_table_sort.expected (+26 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/dump/record/dump_hash_table_sort.expected    2017-07-12 18:59:28 +0900 (7a7d866)
@@ -0,0 +1,26 @@
+table_create Users TABLE_HASH_KEY ShortText
+[[0,0.0,0.0],true]
+column_create Users name COLUMN_SCALAR ShortText
+[[0,0.0,0.0],true]
+load --table Users
+[
+{"_key": "bob", "name": "Bob"},
+{"_key": "mallory", "name": "Mallory"},
+{"_key": "peggy", "name": "Peggy"},
+{"_key": "alice", "name": "Alice"},
+{"_key": "eve", "name": "Eve"}
+]
+[[0,0.0,0.0],5]
+dump --sort_hash_table yes
+table_create Users TABLE_HASH_KEY ShortText
+column_create Users name COLUMN_SCALAR ShortText
+
+load --table Users
+[
+["_key","name"],
+["alice","Alice"],
+["bob","Bob"],
+["eve","Eve"],
+["mallory","Mallory"],
+["peggy","Peggy"]
+]

  Added: test/command/suite/dump/record/dump_hash_table_sort.test (+13 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/dump/record/dump_hash_table_sort.test    2017-07-12 18:59:28 +0900 (8fde052)
@@ -0,0 +1,13 @@
+table_create Users TABLE_HASH_KEY ShortText
+column_create Users name COLUMN_SCALAR ShortText
+
+load --table Users
+[
+{"_key": "bob", "name": "Bob"},
+{"_key": "mallory", "name": "Mallory"},
+{"_key": "peggy", "name": "Peggy"},
+{"_key": "alice", "name": "Alice"},
+{"_key": "eve", "name": "Eve"}
+]
+
+dump --sort_hash_table yes
-------------- next part --------------
HTML����������������������������...
Télécharger 



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