Skip to content

Stack overflow with lots of OR in a query #4373

@wjones127

Description

@wjones127

Possible source:

(Self::Or(l0, l1), Self::Or(r0, r1)) => l0 == r0 && l1 == r1,

Reproduction

import lance
import pyarrow as pa

ds = lance.write_dataset(pa.table({'id': [1, 2]}), "memory://")
# ds.create_scalar_index("id", "BTREE")

filter = ' OR '.join([f"id = {i}" for i in range(100)])

ds.to_table(filter=filter)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions