AQL在通过控制台查询时切断数据

时间:2018-04-27 21:28:17

标签: aerospike aql

尝试通过AQL查询某些bin以获取某些记录,但是,数据被截断。

如何让AQL打印完整数据?

aql> select tokens from user.users where pk='some_pk'
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| tokens                                                                                                                                                                                                                                                 |
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| MAP('{"93836":"external-jfbl8squ-zWLoOuBgXD-test::1527455663", "39720":"external-jfbl8squ-UZWvWVMjtc-test::1527455663", "40870":"external-jfbl8squ-kIFcZKdimg-test::1527455663", "70065":"external-jfbl8squ-PezniJBRgE-test::1527455663", "36903":"external-jf |
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.000 secs)

如您所见,数据最终未完成。

1 个答案:

答案 0 :(得分:3)

发布此问题后,我尝试使用" -o json"启动AQL。它有效。

AQL>从user.users中选择partner_tokens,其中pk =' cfef295b-dbd6-4f5f-8ad6-b0332c950772'

[
  {
    "tokens": {
      "93836": "external-jfbl8squ-zWLoOuBgXD-test::1527455663",
      "39720": "external-jfbl8squ-UZWvWVMjtc-test::1527455663",
      "40870": "external-jfbl8squ-kIFcZKdimg-test::1527455663",
      "70065": "external-jfbl8squ-PezniJBRgE-test::1527455663",
      "36903": "external-jfbl8squ-yYSCVcZeuF-test::1527455663",
      "78608": "external-jfbl8squ-vYukUUHCSa-test::1527455663",
      "50785": "external-jfbl8squ-kOonwnEZiL-test::1527455663"
    }
  }
]