erezsh / sqeleton

A python library for efficiently interacting and querying SQL databases
MIT License
20 stars 4 forks source link

Add trino UUID data type support #19

Closed Ryuk-me closed 3 months ago

Ryuk-me commented 3 months ago

While querying PostgreSQL using trino, getting this error

raise NotImplementedError(f"Cannot use a column of type {kt} as a key")
    NotImplementedError: Cannot use a column of type UnknownColType(text='uuid') as a key

: Primary Key of the postgres table is of data type UUID

image

erezsh commented 3 months ago

This issue was also discussed here: https://github.com/erezsh/reladiff/discussions/23

erezsh commented 3 months ago

@Ryuk-me I created a PR that is supposed to solved this. Can you give it a try and let me know if it works for you too?

https://github.com/erezsh/reladiff/pull/28

Ryuk-me commented 3 months ago

@Ryuk-me I created a PR that is supposed to solved this. Can you give it a try and let me know if it works for you too?

erezsh/reladiff#28

Solved Thank you !