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

[Python] Wrong datetime conversion when pa.array with unit

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.7.1
    • 0.8.0
    • Python
    • None

    Description

      import pyarrow as pa
      import datetime
      
      pa.array([datetime.datetime.now()], type=pa.timestamp('s')) # OverflowError 
      pa.array([datetime.datetime.now()], type=pa.timestamp('ms')) # OverflowError 
      pa.array([datetime.datetime.now()], type=pa.timestamp('us')) # correct 
      pa.array([datetime.datetime.now()], type=pa.timestamp('ns')) # 1970-01-18 11:11:02.181293587
      

      Attachments

        Issue Links

          Activity

            People

              Licht-T Licht Takeuchi
              Licht-T Licht Takeuchi
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: