Skip to content

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

Closed

Description

@jschendel

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.

Activity

  1. jreback commented on Nov 1, 2018

    @jreback
    Contributor

    @jschendel was #23442 meant to close this? or just a reminder issue?

  2. jschendel commented on Nov 2, 2018

    @jschendel
    MemberAuthor

    This is a reminder issue; created it to give me an issue number to reference in the skipped tests of #23442, and to provide more detail in case anyone else sees the comment in the tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

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