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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not A Bug
    • 0.9.0
    • 0.10.0
    • Python
    • 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

            Unassigned Unassigned
            fjetter Florian Jetter
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: