Skip to content

BUG: IntervalTree construction fails for 32bit when n_elements > leaf_size #23440

Open
@jschendel

Description

Code Sample, a copy-pastable example if possible

See https://travis-ci.org/MacPython/pandas-wheels/jobs/448674095 for some specific test failures. The basic setup on a 32bit system is along the lines of:

In [2]: left = np.arange(5)

In [3]: tree = pd._libs.interval.IntervalTree(left, left+2, leaf_size=2)
---------------------------------------------------------------------------
TypeError: Cannot cast array data from dtype('int64') to dtype('int32') according to the rule 'safe'

xref #23353 (comment)

Problem description

IntervalTree construction fails for 32bit when n_elements > leaf_size.

Expected Output

I'd expect construction to be successful.

Metadata

Assignees

No one assigned

    Labels

    32bit32-bit systemsBugIntervalInterval data type

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions