AEROSPIKE_ERR_INDEX_NOT_FOUND-Python客户端

时间:2020-01-21 07:33:50

标签: aerospike

数据是从BigQuery中提取的,我们确定该间隔存在。

使用的代码:

client = aerospike.client(config).connect()

query = client.query('test', 'demo')

query.select('pickup', 'passenger_count')

# query.where(p.between('passenger_count',1,3))


def print_result(args):
    key, metadata, record = args
    print(record)

query.foreach(print_result)

enter image description here

enter image description here

1 个答案:

答案 0 :(得分:3)

此错误表示您没有为'passenger_count'定义辅助索引。在此处了解更多信息:https://www.aerospike.com/docs/operations/plan/capacity/secondary_indexes.html