Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-1628

[Python] Incorrect serialization of numpy datetimes.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Python
    • Labels:
      None

      Description

      See https://github.com/ray-project/ray/issues/1041.

      The issue can be reproduced as follows.

      import pyarrow as pa
      import numpy as np
      
      t = np.datetime64(datetime.datetime.now())
      
      print(type(t), t)  # <class 'numpy.datetime64'> 2017-09-30T09:50:46.089952
      
      t_new = pa.deserialize(pa.serialize(t).to_buffer())
      
      print(type(t_new), t_new)  # <class 'int'> 0
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              robertnishihara Robert Nishihara
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: