Conversation
islamismailov
commented
Oct 24, 2019
8331662 to
e8f4301
Compare
|
I can move ExtendedHiveMetastore into the new module too, and possibly the SemiTransactionalHiveMetastore too. I am afraid that might be too coupled and monolithic (e.g. classes like HiveType etc. I will try to do in separate commits so we can reason about it in pieces, as it might be easier. |
4baee89 to
4f3fc99
Compare
|
Here are the three commits:
|
highker
left a comment
There was a problem hiding this comment.
This is a good start! Let's discuss in person what component should go to the new module. The new module needs to be self contained and flexible enough to be re-used by many other connectors.
pom.xml
Outdated
There was a problem hiding this comment.
How about calling it presto-hive-metastore?
1ce6cb5 to
a9f55aa
Compare
highker
left a comment
There was a problem hiding this comment.
Two quick comments while I'm doing the review:
- The test failure is related. It is reproducible locally.
- Could you call the new module
presto-hive-metastore?
5c082ca to
09a7c09
Compare
09a7c09 to
af8ce24
Compare
|
This should be ready for the review now :) |
af8ce24 to
1ebdb54
Compare
highker
left a comment
There was a problem hiding this comment.
There are lots of code movement within a file. Can we keep them at the same place as they were?
79a8f90 to
24602fa
Compare
24602fa to
f46a8aa
Compare
highker
left a comment
There was a problem hiding this comment.
Minor comments; otherwise looks good to me
There was a problem hiding this comment.
Shall we make 0x0100_0000 a constant and use it in both MetastoreErrorCode and HiveErrorCode?
There was a problem hiding this comment.
Let's complete the comment to say "Shared error code with HiveErrorCode".
presto-hive/pom.xml
Outdated
There was a problem hiding this comment.
Let's make sure this file has no unrelated code movement
|
@islamismailov, could you address the comments? |
|
oh whoops! I thought i did |
f46a8aa to
0a7ac43
Compare
highker
left a comment
There was a problem hiding this comment.
Some more comments
- Can we keep
HiveColumnHandleandTestHiveColumnHandleinside presto-hive.HiveColumnHandleis part of the Hive connector, it shouldn't be separated out. To make this work, just move the only callervalidateColumnsas a private method toHiveMetadata - Same for
HivePartitionKey. It is part of theHiveSplitand then part of hive connector. There is a placeHiveTypeNamegets it referenced. TheINSTANCE_SIZEis wrong. Could you fix that?
0a7ac43 to
56e1d3e
Compare
highker
left a comment
There was a problem hiding this comment.
LGTM! @jessesleeping, do you have extra comments?
56e1d3e to
9d6836e
Compare
9d6836e to
8b8cc24
Compare
|
rebasing... |
8b8cc24 to
3da78f6
Compare
3da78f6 to
eb341d2
Compare
