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 @@ -294,7 +294,7 @@ private boolean syncSchema(String tableName, boolean tableExists, boolean useRea
boolean schemaChanged = false;
// Check and sync schema
if (!tableExists) {
LOG.info("Hive table " + tableName + " is not found. Creating it");
LOG.info("Hive table {} is not found. Creating it with schema {}.", tableName, schema);
HoodieFileFormat baseFileFormat = HoodieFileFormat.valueOf(config.getStringOrDefault(META_SYNC_BASE_FILE_FORMAT).toUpperCase());
String inputFormatClassName = HoodieInputFormatUtils.getInputFormatClassName(baseFileFormat, useRealTimeInputFormat);

Expand All @@ -320,7 +320,7 @@ private boolean syncSchema(String tableName, boolean tableExists, boolean useRea
SchemaDifference schemaDiff = HiveSchemaUtil.getSchemaDifference(schema, tableSchema, config.getSplitStrings(META_SYNC_PARTITION_FIELDS),
config.getBooleanOrDefault(HIVE_SUPPORT_TIMESTAMP_TYPE));
if (!schemaDiff.isEmpty()) {
LOG.info("Schema difference found for " + tableName);
LOG.info("Schema difference found for {}. Updated schema: {}", tableName, schema);
syncClient.updateTableSchema(tableName, schema);
// Sync the table properties if the schema has changed
if (config.getString(HIVE_TABLE_PROPERTIES) != null || config.getBoolean(HIVE_SYNC_AS_DATA_SOURCE_TABLE)) {
Expand All @@ -330,7 +330,7 @@ private boolean syncSchema(String tableName, boolean tableExists, boolean useRea
}
schemaChanged = true;
} else {
LOG.info("No Schema difference for " + tableName);
LOG.info("No Schema difference for {}\nMessageType: {}", tableName, schema);
}
}

Expand Down