# Request for help creating a UUID type column in CloudQuery source plugin

**URL:** <https://community.cloudquery.io/t/request-for-help-creating-a-uuid-type-column-in-cloudquery-source-plugin/640>\
**Category:** CloudQuery Plugins\
**Created:** [October 22, 2023, 12:22pm UTC](https://community.cloudquery.io/t/request-for-help-creating-a-uuid-type-column-in-cloudquery-source-plugin/640 "2023-10-22T12:22:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![balanced-corgi](https://avatars.discourse-cdn.com/v4/letter/b/d6d6ee/32.png) [@balanced-corgi](https://community.cloudquery.io/u/balanced-corgi)\
**Post date:** [October 22, 2023, 12:22pm UTC](https://community.cloudquery.io/t/request-for-help-creating-a-uuid-type-column-in-cloudquery-source-plugin/640/1 "2023-10-22T12:22:35Z")

</div>

Hi,

I wrote a Python source plugin and would like to add a UUID type to one of the tables. I am creating a UUID object with Python’s `uuid.UUID(...)` and receive the following error.

Is there somewhere in the source code an example of creating a UUID type column in Python?

---

<div class="post-metadata">

**Author:** ![erez](https://sea1.discourse-cdn.com/flex001/user_avatar/community.cloudquery.io/erez/32/40_2.png) [@erez](https://community.cloudquery.io/u/erez)\
**Post date:** [October 23, 2023, 9:15am UTC](https://community.cloudquery.io/t/request-for-help-creating-a-uuid-type-column-in-cloudquery-source-plugin/640/2 "2023-10-23T09:15:01Z")

</div>

Hi 👋 I see that you’ve opened an issue? [GitHub Issue #14825](https://github.com/cloudquery/cloudquery/issues/14825)  
I suggest to use a string type as a workaround for now until we look into it.

---

<div class="post-metadata">

**Author:** ![balanced-corgi](https://avatars.discourse-cdn.com/v4/letter/b/d6d6ee/32.png) [@balanced-corgi](https://community.cloudquery.io/u/balanced-corgi)\
**Post date:** [October 23, 2023, 9:22am UTC](https://community.cloudquery.io/t/request-for-help-creating-a-uuid-type-column-in-cloudquery-source-plugin/640/3 "2023-10-23T09:22:40Z")

</div>

Hi,

Yes, this looks like a bug in `scalar/uuid.py`. In the `set()` method, it should be setting to `uuid.UUID()` instead of the underlying bytes value.

---

<div class="post-metadata">

**Author:** ![erez](https://sea1.discourse-cdn.com/flex001/user_avatar/community.cloudquery.io/erez/32/40_2.png) [@erez](https://community.cloudquery.io/u/erez)\
**Post date:** [October 23, 2023, 10:36am UTC](https://community.cloudquery.io/t/request-for-help-creating-a-uuid-type-column-in-cloudquery-source-plugin/640/4 "2023-10-23T10:36:05Z")

</div>

Feel free to open a PR for a fix; we’d be happy to accept a contribution.
