test/command/suite/wal_recover/pat/defrag/empty.expected
raw| 1 | table_create Data TABLE_PAT_KEY ShortText |
| 2 | [[0,0.0,0.0],true] |
| 3 | load --table Data |
| 4 | [ |
| 5 | {"_key": "5B>=: Groonga"}, |
| 6 | {"_key": "4B<="}, |
| 7 | {"_key": "5B>=: Normal"} |
| 8 | ] |
| 9 | [[0,0.0,0.0],3] |
| 10 | delete Data --filter true |
| 11 | [[0,0.0,0.0],true] |
| 12 | io_flush |
| 13 | [[0,0.0,0.0],true] |
| 14 | check --obj Data |
| 15 | [ |
| 16 | [ |
| 17 | 0, |
| 18 | 0.0, |
| 19 | 0.0 |
| 20 | ], |
| 21 | [ |
| 22 | { |
| 23 | "flags": "0000C001", |
| 24 | "key size": 4096, |
| 25 | "value_size": 0, |
| 26 | "tokenizer": 0, |
| 27 | "normalizer": 0, |
| 28 | "n_entries": 0, |
| 29 | "curr_rec": 3, |
| 30 | "curr_key": 25, |
| 31 | "curr_del": 3, |
| 32 | "curr_del2": 0, |
| 33 | "curr_del3": 0, |
| 34 | "n_garbages": 3 |
| 35 | } |
| 36 | ] |
| 37 | ] |
| 38 | defrag Data |
| 39 | [[0,0.0,0.0],true] |
| 40 | select Data |
| 41 | [[0,0.0,0.0],[[[0],[["_id","UInt32"],["_key","ShortText"]]]]] |
| 42 | check --obj Data |
| 43 | [ |
| 44 | [ |
| 45 | 0, |
| 46 | 0.0, |
| 47 | 0.0 |
| 48 | ], |
| 49 | [ |
| 50 | { |
| 51 | "flags": "0000C001", |
| 52 | "key size": 4096, |
| 53 | "value_size": 0, |
| 54 | "tokenizer": 0, |
| 55 | "normalizer": 0, |
| 56 | "n_entries": 0, |
| 57 | "curr_rec": 0, |
| 58 | "curr_key": 0, |
| 59 | "curr_del": 0, |
| 60 | "curr_del2": 0, |
| 61 | "curr_del3": 0, |
| 62 | "n_garbages": 0 |
| 63 | } |
| 64 | ] |
| 65 | ] |
| 66 | _database_close |
| 67 | [[0,0.0,0.0],true] |
| 68 | _database_reopen |
| 69 | [[0,0.0,0.0],true] |
| 70 | check --obj Data |
| 71 | [ |
| 72 | [ |
| 73 | 0, |
| 74 | 0.0, |
| 75 | 0.0 |
| 76 | ], |
| 77 | [ |
| 78 | { |
| 79 | "flags": "0000C001", |
| 80 | "key size": 4096, |
| 81 | "value_size": 0, |
| 82 | "tokenizer": 0, |
| 83 | "normalizer": 0, |
| 84 | "n_entries": 0, |
| 85 | "curr_rec": 0, |
| 86 | "curr_key": 0, |
| 87 | "curr_del": 0, |
| 88 | "curr_del2": 0, |
| 89 | "curr_del3": 0, |
| 90 | "n_garbages": 0 |
| 91 | } |
| 92 | ] |
| 93 | ] |
| 94 | load --table Data |
| 95 | [ |
| 96 | {"_key": "5B>=: PGroonga"} |
| 97 | ] |
| 98 | [[0,0.0,0.0],1] |
| 99 | select Data |
| 100 | [ |
| 101 | [ |
| 102 | 0, |
| 103 | 0.0, |
| 104 | 0.0 |
| 105 | ], |
| 106 | [ |
| 107 | [ |
| 108 | [ |
| 109 | 1 |
| 110 | ], |
| 111 | [ |
| 112 | [ |
| 113 | "_id", |
| 114 | "UInt32" |
| 115 | ], |
| 116 | [ |
| 117 | "_key", |
| 118 | "ShortText" |
| 119 | ] |
| 120 | ], |
| 121 | [ |
| 122 | 1, |
| 123 | "5B>=: PGroonga" |
| 124 | ] |
| 125 | ] |
| 126 | ] |
| 127 | ] |