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

[Python] Aware timestamp type fails pickling

    Details

      Description

      >>> ty = pa.timestamp('ms')
      >>> pickle.loads(pickle.dumps(ty))
      TimestampType(timestamp[ms])
      >>> ty = pa.timestamp('ms', tz='UTC')
      >>> pickle.loads(pickle.dumps(ty))
      Traceback (most recent call last):
        File "<ipython-input-15-889e5adab733>", line 1, in <module>
          pickle.loads(pickle.dumps(ty))
        File "types.pxi", line 82, in pyarrow.lib.DataType.__setstate__
        File "types.pxi", line 1246, in pyarrow.lib.type_for_alias
      ValueError: No type alias for timestamp[ms, tz=utc]
      
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pitrou Antoine Pitrou
                Reporter:
                pitrou Antoine Pitrou
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: