【问题标题】:how to fetch json data from cassandra table using cqlsh [closed]如何使用 cqlsh 从 cassandra 表中获取 json 数据 [关闭]
【发布时间】:2014-07-28 04:39:58
【问题描述】:

我的 cassandra 表中有一个 JSON 字符串数据。 在获取记录时,它显示返回的 JSON 字符串,但我想要使用 cqlsh 从整个 json 数据中获取特定属性。 如何使用 cqlsh 或任何其他方式获取。

【问题讨论】:

    标签: python cassandra cqlsh nosql


    【解决方案1】:

    CQLSH 中没有这样的功能,而且不太可能会有(见https://issues.apache.org/jira/browse/CASSANDRA-6833

    但是您可以使用 https://github.com/datastax/python-driver 构建自己的脚本,它将按照您需要的方式解析 JSON

    【讨论】:

      猜你喜欢
      • 2013-10-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-10-24
      • 1970-01-01
      • 2017-09-02
      • 1970-01-01
      • 2013-07-27
      相关资源
      最近更新 更多