# Adding attributes to existing arrays

**URL:** <https://forum.tiledb.com/t/adding-attributes-to-existing-arrays/152>\
**Category:** Uncategorized\
**Created:** [March 10, 2020, 5:46pm UTC](https://forum.tiledb.com/t/adding-attributes-to-existing-arrays/152 "2020-03-10T17:46:44Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mtrl\_Scientist](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.tiledb.com/mtrl_scientist/32/134_2.png) [@Mtrl\_Scientist](https://forum.tiledb.com/u/Mtrl_Scientist)\
**Post date:** [March 10, 2020, 5:46pm UTC](https://forum.tiledb.com/t/adding-attributes-to-existing-arrays/152/1 "2020-03-10T17:46:44Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![stavros](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@stavros](https://forum.tiledb.com/u/stavros)\
**Post date:** [March 10, 2020, 5:54pm UTC](https://forum.tiledb.com/t/adding-attributes-to-existing-arrays/152/2 "2020-03-10T17:54:38Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Hoeze](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.tiledb.com/hoeze/32/110_2.png) [@Hoeze](https://forum.tiledb.com/u/Hoeze)\
**Post date:** [October 29, 2020, 1:15am UTC](https://forum.tiledb.com/t/adding-attributes-to-existing-arrays/152/3 "2020-10-29T01:15:05Z")

</div>

Is this feature implemented for now?  
It would be cool to append columns to existing dataframes 🙂

---

<div class="post-metadata">

**Author:** ![stavros](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@stavros](https://forum.tiledb.com/u/stavros)\
**Post date:** [October 29, 2020, 5:56am UTC](https://forum.tiledb.com/t/adding-attributes-to-existing-arrays/152/4 "2020-10-29T05:56:58Z")

</div>

Not yet but it is in our roadmap. Hopefully we will start working on it before the end of the year.

---

<div class="post-metadata">

**Author:** ![Mtrl\_Scientist](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.tiledb.com/mtrl_scientist/32/134_2.png) [@Mtrl\_Scientist](https://forum.tiledb.com/u/Mtrl_Scientist)\
**Post date:** [October 29, 2020, 11:20am UTC](https://forum.tiledb.com/t/adding-attributes-to-existing-arrays/152/5 "2020-10-29T11:20:00Z")

</div>

Looking forward! 👍

---

<div class="post-metadata">

**Author:** ![evanb](https://avatars.discourse-cdn.com/v4/letter/e/90ced4/32.png) [@evanb](https://forum.tiledb.com/u/evanb)\
**Post date:** [May 28, 2021, 9:40pm UTC](https://forum.tiledb.com/t/adding-attributes-to-existing-arrays/152/6 "2021-05-28T21:40:13Z")

</div>

This feature would be really useful. Have there been any updates on this front? @stavros

Looking forward to using this! If there’s help that needs to be done in terms of a PR, please let me know.

---

<div class="post-metadata">

**Author:** ![stavros](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@stavros](https://forum.tiledb.com/u/stavros)\
**Post date:** [May 29, 2021, 9:07am UTC](https://forum.tiledb.com/t/adding-attributes-to-existing-arrays/152/7 "2021-05-29T09:07:49Z")

</div>

[This PR](https://github.com/TileDB-Inc/TileDB/pull/2258) 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.

---

<div class="post-metadata">

**Author:** ![Bin\_Deng](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.tiledb.com/bin_deng/32/157_2.png) [@Bin\_Deng](https://forum.tiledb.com/u/Bin_Deng)\
**Post date:** [October 4, 2021, 3:59pm UTC](https://forum.tiledb.com/t/adding-attributes-to-existing-arrays/152/8 "2021-10-04T15:59:15Z")

</div>

We already implemented adding or dropping attributes to existing arrays. Please checkout the latest release(2.4).

---

<div class="post-metadata">

**Author:** ![Bin\_Deng](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.tiledb.com/bin_deng/32/157_2.png) [@Bin\_Deng](https://forum.tiledb.com/u/Bin_Deng)\
**Post date:** [October 4, 2021, 4:01pm UTC](https://forum.tiledb.com/t/adding-attributes-to-existing-arrays/152/9 "2021-10-04T16:01:06Z")

</div>

Starting from release 2.4, we can add or drop attributes to the existing array. More implementation on array schema features will come soon

---

<div class="post-metadata">

**Author:** ![ihnorton](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.tiledb.com/ihnorton/32/23_2.png) [@ihnorton](https://forum.tiledb.com/u/ihnorton)\
**Post date:** [October 4, 2021, 4:06pm UTC](https://forum.tiledb.com/t/adding-attributes-to-existing-arrays/152/10 "2021-10-04T16:06:33Z")

</div>

The doc updates are still in progress for Python, but please see usage example here (compatible with TileDB-Py 0.10):

> <https://github.com/TileDB-Inc/TileDB-Py/blob/dev/tiledb/tests/test_schema_evolution.py#L37-L48>
