As far as I can tell, attributes have to be added before creating the schema and the array.
Would it be possible to allow the addition of other attributes to already existing arrays in the future or is this fundamentally not possible with the tileDB tech?
Yeap, it is in our backlog. Nothing fundamentally difficult. In fact, the opposite; TileDB stores the values of each attribute in separate files, so removing/adding attributes should be easy. There are a couple of nuances with respect to updating the array schema file (e.g., to work well with object stores and provide time traveling). We’ll try to add the functionality very soon. Thanks.
This PR sets us up for implementing full-fledged schema evolution. We are about to release 2.3 over the next couple of days, and the first schema evolution features (which will include adding/removing attributes) will be added in 2.4 in a few weeks.
We of course always welcome contributions, please feel free to contact us if you’d like to learn more about the design and participate in the implementation.