AEROSPIKE_ERR_INDEX_NOT_FOUND - Python 客户端

AEROSPIKE_ERR_INDEX_NOT_FOUND - Python Client

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

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