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

   ### Describe the enhancement requested
   
   We are looking at implementing BFloat16 data type as an extension type based 
on a FSB[2] storage type. In Python we can write the repr method for the array, 
but ChunkedArray and Table will print the storage type, which looks like 
nonsense to users:
   
   ```python
   >>> tab = pa.table({ "x": bfloat16_array([1.1, None, 3.4]) })
   >>> tab
   pyarrow.Table
   x: extension<lance.bfloat16<BFloat16Type>>
   ----
   x: [[8D3F,null,5A40]]
   >>> tab['x']
   <pyarrow.lib.ChunkedArray object at 0x12a1f3a60>
   [
     [
       8D3F,
       null,
       5A40
     ]
   ]
   >>> tab['x'].chunk(0)
   <lance.arrow.BFloat16Array object at 0x0000000129818a60>
   [1.1015625, None, 3.40625]
   ```
   
   https://github.com/lancedb/lance/pull/1002
   
   ### 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to