Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,6 @@ public void syncHoodieTable() {
private void syncHoodieTable(String tableName, boolean useRealtimeInputFormat) {
LOG.info("Trying to sync hoodie table " + tableName + " with base path " + hoodieHiveClient.getBasePath()
+ " of type " + hoodieHiveClient.getTableType());
// Check if the necessary table exists
boolean tableExists = hoodieHiveClient.doesTableExist(tableName);

// check if the database exists else create it
if (cfg.autoCreateDatabase) {
Expand All @@ -131,6 +129,9 @@ private void syncHoodieTable(String tableName, boolean useRealtimeInputFormat) {
}
}

// Check if the necessary table exists
boolean tableExists = hoodieHiveClient.doesTableExist(tableName);

// Get the parquet schema for this table looking at the latest commit
MessageType schema = hoodieHiveClient.getDataSchema();
// Sync schema if needed
Expand Down