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

[Python/C++] Array constructor should not truncate floats when casting to int

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not A Bug
    • Affects Version/s: 0.9.0
    • Fix Version/s: 0.10.0
    • Component/s: Python
    • Labels:
      None

      Description

      I would expect the following code to raise instead of truncating the float

      In [4]: pa.array([1.9], type=pa.int8())
      Out[4]:
      <pyarrow.lib.Int8Array object at 0x113455e58>
      [
        1
      ]
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              fjetter Florian Jetter
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: