This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
zhangyang-zerotierone/ext/librethinkdbxx/test/upstream/regression/5222.py.yaml
2017-11-02 07:05:11 -07:00

24 lines
813 B
YAML

desc: Can't store r.minval or r.maxval in a secondary index, even when they're in an array.
table_variable_name: tbl
tests:
- py: tbl.index_create("min", lambda x: r.minval)
ot: {"created": 1}
- py: tbl.index_create("max", lambda x: r.maxval)
ot: {"created": 1}
- py: tbl.index_create("min_arr", lambda x: [r.minval])
ot: {"created": 1}
- py: tbl.index_create("max_arr", lambda x: [r.maxval])
ot: {"created": 1}
- py: tbl.index_wait("min", "max", "min_arr", "max_arr")
- py: tbl.insert({"id": 1})
ot: partial({"inserted": 1})
- py: tbl.order_by(index="min").count()
ot: 0
- py: tbl.order_by(index="max").count()
ot: 0
- py: tbl.order_by(index="min_arr").count()
ot: 0
- py: tbl.order_by(index="max_arr").count()
ot: 0