test/command/suite/select/function/string/string_truncate/short_target/truncate.expected
raw| 1 | plugin_register functions/string |
| 2 | [[0,0.0,0.0],true] |
| 3 | table_create Memos TABLE_HASH_KEY ShortText |
| 4 | [[0,0.0,0.0],true] |
| 5 | load --table Memos |
| 6 | [ |
| 7 | {"_key": "gr"} |
| 8 | ] |
| 9 | [[0,0.0,0.0],1] |
| 10 | select Memos --output_columns '_key, string_truncate(_key, 1)' |
| 11 | [ |
| 12 | [ |
| 13 | 0, |
| 14 | 0.0, |
| 15 | 0.0 |
| 16 | ], |
| 17 | [ |
| 18 | [ |
| 19 | [ |
| 20 | 1 |
| 21 | ], |
| 22 | [ |
| 23 | [ |
| 24 | "_key", |
| 25 | "ShortText" |
| 26 | ], |
| 27 | [ |
| 28 | "string_truncate", |
| 29 | null |
| 30 | ] |
| 31 | ], |
| 32 | [ |
| 33 | "gr", |
| 34 | "..." |
| 35 | ] |
| 36 | ] |
| 37 | ] |
| 38 | ] |