arrow-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wes McKinney (JIRA)" <>
Subject [jira] [Created] (ARROW-991) [Python] PyArray_SimpleNew should not be used with NPY_DATETIME
Date Tue, 09 May 2017 22:48:04 GMT
Wes McKinney created ARROW-991:

             Summary: [Python] PyArray_SimpleNew should not be used with NPY_DATETIME
                 Key: ARROW-991
             Project: Apache Arrow
          Issue Type: Bug
          Components: Python
    Affects Versions: 0.3.0
            Reporter: Wes McKinney
            Assignee: Wes McKinney
            Priority: Critical
             Fix For: 0.4.0

>From a non-deterministic test failure in pandas reported to me by [~jreback], I see that
{{PyArray_SimpleNew}} calls {{PyArray_DescrFromType}}, which return a reference to a cached
Since we expect to be able to mutate a datetime64 dtype in libarrow_python, this can cause
failures in other code when uses a dtype that we have accidentally mutated internally.

Luckily we are only modifying dtype metadata in a couple of places so this should not be too
invasive to fix:

This message was sent by Atlassian JIRA

View raw message