1
0

[HUDI-3132] Minor fixes for HoodieCatalog

close apache/hudi#4486
This commit is contained in:
fengli
2021-12-31 23:25:04 +08:00
committed by yuzhao.cyz
parent eee715b3ff
commit 205e48f53f
2 changed files with 8 additions and 1 deletions

View File

@@ -305,7 +305,9 @@ public class HoodieCatalog extends AbstractCatalog {
try {
StreamerUtil.initTableIfNotExists(conf);
// prepare the non-table-options properties
options.put(TableOptionProperties.COMMENT, resolvedTable.getComment());
if (!StringUtils.isNullOrWhitespaceOnly(resolvedTable.getComment())) {
options.put(TableOptionProperties.COMMENT, resolvedTable.getComment());
}
TableOptionProperties.createProperties(tablePathStr, hadoopConf, options);
} catch (IOException e) {
throw new CatalogException(String.format("Initialize table path %s exception.", tablePathStr), e);