decitre commented on issue #55734: URL: https://github.com/apache/arrow/issues/55734#issuecomment-7212920587
A follow-up on where this might come from. We ran the reproducer on three more platforms, all 32-bit wasm (`sys.maxsize == 2147483647`), and the bug doesn't appear on any of them. It does on the 4x channel build. | Platform | numpy | pyarrow | `pa.array(np.int32([0, 2]))` | `take` with `int32` indices | |---|---|---|---|---| | xeus-python on emscripten-forge `4x` (Python 3.13.1) | 2.5.4 | 23.0.0 | `int64 [8589934592, 68719476738]` | `ArrowIndexError` | | xeus-python on emscripten-forge `6x` (Python 3.14.3) | 2.5.5 | 26.0.1 | `int32 [0, 2]` | `['a', 'c']` | | Pyodide v314.0.8, run in Node (Python 3.14.2) | 2.4.6 | 22.0.0 | `int32 [0, 2]` | `['a', 'c']` | On the 4x build numpy reports the right width (`x.itemsize == 4`, `x.strides == (4,)`), so the wrong width appears in pyarrow's conversion. `np.intp` indices behave like `int32` on every platform. So 32-bit wasm alone doesn't cause it. We can't say whether the fix is a change in pyarrow between 23 and 26 or in the emscripten-forge build: the Python version also differs between 4x and 6x, and we didn't find a pyarrow 23 build on 6x to compare. If someone knows whether an Arrow change in that range fixed it, that would help others on 4x. For users, moving to the 6x channel avoids the problem. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
