paleolimbot opened a new issue, #46659:
URL: https://github.com/apache/arrow/issues/46659

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   Discovered by @kylebarron when working on GeoArrow WKB extensions! I started 
https://github.com/geoarrow/geoarrow-python/pull/72 to fix because I thought it 
was a geoarrow problem but I think it's an Arrow one. In the debugger,
   
   
https://github.com/apache/arrow/blob/6804059183485e7805edbd20c2c2447b4ad1094c/cpp/src/arrow/c/bridge.cc#L589-L590
   
   ...evaluates to `false` in the following reprex:
   
   ```python
   import pyarrow as pa
   import geoarrow.pyarrow as ga
   
   wkb_item = 
b"\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x3e\x40\x00\x00\x00\x00\x00\x00\x24\x40"
   array = ga.array([wkb_item], ga.wkb_view())
   
   schema_capsule, array_capsule = array.__arrow_c_array__()
   rearr = pa.Array._import_from_c_capsule(schema_capsule, array_capsule)
   rearr.validate(full=True)
   #> pyarrow.lib.ArrowIndexError: View at slot 0 references buffer 0 but there 
are only 0 data buffers
   ```
   
   
   ### Component(s)
   
   C++


-- 
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: issues-unsubscr...@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to