-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for UUID type in PostgreSQL connector #1011
Conversation
presto-postgresql/src/main/java/io/prestosql/plugin/postgresql/PostgreSqlClient.java
Show resolved
Hide resolved
presto-postgresql/src/test/java/io/prestosql/plugin/postgresql/TestPostgreSqlTypeMapping.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good.
presto-postgresql/src/main/java/io/prestosql/plugin/postgresql/PostgreSqlClient.java
Outdated
Show resolved
Hide resolved
02f48a4
to
96458ce
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found that the tests were failing because TestingPrestoClient
doesn't have support for UUID. This should fix it:
else if (UUID.equals(type)) {
return java.util.UUID.fromString((String) value);
}
Note that you can run the test method or test class by clicking the green arrow next to it in IntelliJ.
presto-postgresql/src/main/java/io/prestosql/plugin/postgresql/PostgreSqlClient.java
Outdated
Show resolved
Hide resolved
presto-postgresql/src/main/java/io/prestosql/plugin/postgresql/PostgreSqlClient.java
Outdated
Show resolved
Hide resolved
CI has passed. 🎉 |
Merged, thanks! |
Closes #647