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

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?

Hi :wave: I see that you’ve opened an issue? GitHub Issue #14825
I suggest to use a string type as a workaround for now until we look into it.

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.

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