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

[Python] Error casting decimal(38, 4) to int64

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.0.0
    • Python
    • Python version : 3.6.5
      Pyarrow version : 0.10.0

    Description

      Git issue LInk : https://github.com/apache/arrow/issues/2627

      I want to cast pyarrow table column from decimal(38,4) to int64.

      col.cast(pa.int64())

      Error:
      File "pyarrow/table.pxi", line 443, in pyarrow.lib.Column.cast
      File "pyarrow/error.pxi", line 89, in pyarrow.lib.check_status
      pyarrow.lib.ArrowNotImplementedError: No cast implemented from decimal(38, 4) to int64

      Python version : 3.6.5
      Pyarrow version : 0.10.0

      is it not implemented yet or I am not using it correctly? If not implemented yet, then any work around to cast columns?

      Attachments

        Issue Links

          Activity

            People

              jacek.pliszka Jacek Pliszka
              kavitasheth Kavita Sheth
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 8h 10m
                  8h 10m