AEROSPIKE_ERR_INDEX_NOT_FOUND-Python客户端

问题描述 投票:0回答:1

数据是从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

aerospike
1个回答
0
投票
此错误表示您没有为'passenger_count'定义辅助索引。在此处了解更多信息:https://www.aerospike.com/docs/operations/plan/capacity/secondary_indexes.html
© www.soinside.com 2019 - 2024. All rights reserved.