Skip to content
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

Hive: Add ObjectInspector implementations for UUID, Fixed and Time type #2077

Merged
merged 3 commits into from
Jan 16, 2021

Conversation

lcspinter
Copy link
Contributor

@lcspinter lcspinter commented Jan 12, 2021

This PR covers the schema conversion for UUID, Fixed and Time types between Iceberg and Hive.
The following mapping is used:

  • UUID -> String
  • Fixed -> Binary
  • Time -> String

@github-actions github-actions bot added the MR label Jan 12, 2021
@lcspinter
Copy link
Contributor Author

@pvary @marton-bod If you have some spare time, could you please have a look at this PR? Thanks

@pvary
Copy link
Contributor

pvary commented Jan 15, 2021

@lcspinter: Thanks for the PR and the fixes. LGTM +1 non-binding

@rdblue
Copy link
Contributor

rdblue commented Jan 16, 2021

Looks like this needs to be updated after merging the fix to use source object inspectors. It should probably have the same fix applied, too?

ByteBuffer copy = ByteBuffer.wrap(((ByteBuffer) o).array(), ((ByteBuffer) o).arrayOffset(),
((ByteBuffer) o).limit());
ByteBuffer copy =
ByteBuffer.wrap(((ByteBuffer) o).array(), ((ByteBuffer) o).arrayOffset(), ((ByteBuffer) o).limit());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this just change formatting? If so, please revert it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need, since this is the only issue, I'll merge with it.

@rdblue rdblue merged commit 9ed3216 into apache:master Jan 16, 2021
@rdblue
Copy link
Contributor

rdblue commented Jan 16, 2021

Thanks @lcspinter!

@lcspinter lcspinter deleted the missing_types branch January 17, 2021 10:09
@lcspinter
Copy link
Contributor Author

Thanks for the review @pvary @rdblue!

@lcspinter
Copy link
Contributor Author

fixes #1925 #1926 #1927

XuQianJin-Stars pushed a commit to XuQianJin-Stars/iceberg that referenced this pull request Mar 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants