TileDB-Py icon indicating copy to clipboard operation
TileDB-Py copied to clipboard

Field names of numpy structured arrays are lost

Open SleepingPills opened this issue 3 years ago • 1 comments

The fixed length attributes are very useful in TileDB, unfortunately the field names aren't preserved for some reason. When the schema is created, all field names get turned into strings like 'f0', 'f1', 'f2'...

SleepingPills avatar May 16 '21 18:05 SleepingPills

Hi @SleepingPills, thanks for the suggestion. Currently TileDB doesn't have a way to name individual cells in a multi-cell attribute. We could record the names and reproduce when recreating the numpy dtype on read, but that will require several other changes -- I will keep this open and in mind while refactoring.

ihnorton avatar May 25 '21 20:05 ihnorton