-
Notifications
You must be signed in to change notification settings - Fork 2.5k
fix(flink): Fix reflection ctor signature for AwsGlueCatalogSyncTool in HiveSyncContext #18697
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,6 +19,8 @@ | |
| package org.apache.hudi.sink.utils; | ||
|
|
||
| import org.apache.hudi.common.config.TypedProperties; | ||
| import org.apache.hudi.common.table.HoodieTableMetaClient; | ||
| import org.apache.hudi.common.util.Option; | ||
| import org.apache.hudi.common.util.ReflectionUtils; | ||
| import org.apache.hudi.configuration.FlinkOptions; | ||
| import org.apache.hudi.configuration.HadoopConfigurations; | ||
|
|
@@ -78,8 +80,8 @@ public HiveSyncTool hiveSyncTool() { | |
| HiveSyncMode syncMode = HiveSyncMode.of(props.getProperty(HIVE_SYNC_MODE.key())); | ||
| if (syncMode == HiveSyncMode.GLUE) { | ||
| return ((HiveSyncTool) ReflectionUtils.loadClass(AWS_GLUE_CATALOG_SYNC_TOOL_CLASS, | ||
| new Class<?>[] {Properties.class, org.apache.hadoop.conf.Configuration.class}, | ||
| props, hiveConf)); | ||
| new Class<?>[] {Properties.class, org.apache.hadoop.conf.Configuration.class, Option.class}, | ||
| props, hiveConf, Option.<HoodieTableMetaClient>empty())); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🤖 nit: the - AI-generated; verify before applying. React 👍/👎 to flag quality. |
||
| } | ||
| return new HiveSyncTool(props, hiveConf); | ||
| } | ||
|
|
||
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.
do you think we can write a simple UT of
HiveSyncContextto validate the instantiation of theAWS_GLUE_CATALOG_SYNC_TOOL_CLASS?