-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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 in PostgreSQL connector #16875
Conversation
8683294
to
600ffa3
Compare
This pull request has been automatically marked as stale because it has not had recent activity. If you'd still like this PR merged, please comment on the task, make sure you've addressed reviewer comments, and rebase on the latest master. Thank you for your contributions! |
600ffa3
to
088c44c
Compare
a525f36
to
6f55ccd
Compare
@agrawalreetika - Unable to check out your code. I get the error "This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository". Could you please validate whether this PR was based off a legitimate branch? |
Hi @ClarenceThreepwood, Thanks for taking the time to review the PR. I think you are looking at a different fork since my prestodb fork has a branch available - https://github.com/agrawalreetika/prestodb/tree/UUID-datatype |
@ClarenceThreepwood You probably need to add Reetika's fork as a remote in your local repo. |
6f55ccd
to
b215655
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.
Couple of nits. Otherwise LGTM
.addRoundTrip(uuidDataType, "71f9206a-75aa-4005-9ab6-4525c6fdec99"); | ||
} | ||
|
||
public static DataType<String> uuidDataType() |
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.
make private
@@ -107,6 +108,7 @@ | |||
.put(TIME_WITH_TIME_ZONE, "time with timezone") | |||
.put(TIMESTAMP, "timestamp") | |||
.put(TIMESTAMP_WITH_TIME_ZONE, "timestamp with timezone") | |||
.put(UuidType.UUID, "uuid") |
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.
static import UUID
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.
There is UUID import from util package exist in this class, which is why I didn't use static import for this
b215655
to
a608c92
Compare
a608c92
to
a6a9df1
Compare
Fixes #16817