-
Notifications
You must be signed in to change notification settings - Fork 334
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
[#4927] improvement(catalog): extract a common HMS module #4928
Conversation
326ec7f
to
6fcf97a
Compare
56e46d0
to
9ae4544
Compare
datanucleus-core = "4.1.17" | ||
datanucleus-api-jdo = "4.2.4" | ||
datanucleus-rdbms = "4.1.19" | ||
datanucleus-jdo = "3.2.0-m3" |
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.
Are they just used for test? If not, you should also update the license.bin.
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.
sd.getNumBuckets(), | ||
sd.getBucketCols().stream().map(NamedReference::field).toArray(Expression[]::new)); | ||
} | ||
Distribution distribution = ConvertUtil.getDistribution(table); |
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.
CovertUtil
seems not so reasonable, maybe "HiveUtil" or "HiveTableUtil", "HiveTableConverter"?
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.
renamed to HiveTableConverter
import org.apache.gravitino.exceptions.NoSuchPartitionException; | ||
import org.apache.gravitino.hms.miniHMS.MiniHiveMetastoreService; |
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.
Can we change the package name to "o.a.g.hive.hms.xxx", it is weird that the package name has uppercase letters...
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.
renamed
@@ -16,7 +16,7 @@ | |||
* specific language governing permissions and limitations | |||
* under the License. | |||
*/ | |||
package org.apache.gravitino.catalog.hive.dyn; | |||
package org.apache.gravitino.hms.dyn; |
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 would change to "xxx.hive.dyn"
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.
fixed
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.
LGTM.
What changes were proposed in this pull request?
extract a common HMS module
Why are the changes needed?
Fix: #4927
Does this PR introduce any user-facing change?
no
How was this patch tested?
CI passed