[HUDI-2757] Implement Hudi AWS Glue sync (#5076)
This commit is contained in:
@@ -167,7 +167,7 @@ public class TestHiveIncrementalPuller {
|
||||
puller.saveDelta();
|
||||
HoodieHiveClient assertingClient = new HoodieHiveClient(new HiveSyncConfig(getAssertionSyncConfig(cfg.tmpDb)), HiveTestUtil.getHiveConf(), fileSystem);
|
||||
String tmpTable = cfg.targetTable + "__" + cfg.sourceTable;
|
||||
assertTrue(assertingClient.doesTableExist(tmpTable));
|
||||
assertTrue(assertingClient.tableExists(tmpTable));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1240,8 +1240,8 @@ public class TestHoodieDeltaStreamer extends HoodieDeltaStreamerTestBase {
|
||||
HiveSyncConfig hiveSyncConfig = getHiveSyncConfig(tableBasePath, "hive_trips");
|
||||
hiveSyncConfig.partitionFields = CollectionUtils.createImmutableList("year", "month", "day");
|
||||
HoodieHiveClient hiveClient = new HoodieHiveClient(hiveSyncConfig, hiveServer.getHiveConf(), dfs);
|
||||
assertTrue(hiveClient.doesTableExist(hiveSyncConfig.tableName), "Table " + hiveSyncConfig.tableName + " should exist");
|
||||
assertEquals(3, hiveClient.scanTablePartitions(hiveSyncConfig.tableName).size(),
|
||||
assertTrue(hiveClient.tableExists(hiveSyncConfig.tableName), "Table " + hiveSyncConfig.tableName + " should exist");
|
||||
assertEquals(3, hiveClient.getAllPartitions(hiveSyncConfig.tableName).size(),
|
||||
"Table partitions should match the number of partitions we wrote");
|
||||
assertEquals(lastInstantForUpstreamTable,
|
||||
hiveClient.getLastCommitTimeSynced(hiveSyncConfig.tableName).get(),
|
||||
|
||||
@@ -201,7 +201,7 @@ public class UtilitiesTestBase {
|
||||
*
|
||||
* @throws IOException
|
||||
*/
|
||||
private static void clearHiveDb() throws IOException {
|
||||
private static void clearHiveDb() throws Exception {
|
||||
HiveConf hiveConf = new HiveConf();
|
||||
// Create Dummy hive sync config
|
||||
HiveSyncConfig hiveSyncConfig = getHiveSyncConfig("/dummy", "dummy");
|
||||
|
||||
Reference in New Issue
Block a user