abhishekmjain commented on code in PR #4121:
URL: https://github.com/apache/gobblin/pull/4121#discussion_r2226155208


##########
gobblin-metastore/src/main/java/org/apache/gobblin/metastore/MysqlErrorPatternStore.java:
##########
@@ -279,64 +302,46 @@ public List<ErrorPatternProfile> 
getErrorPatternsByCategory(String categoryName)
   }
 
   @Override
-  public Category getDefaultCategory()
+  public ErrorCategory getDefaultCategory()
       throws IOException {
-    if (hasIsDefaultColumn()) {
-      Category cat = getDefaultCategoryFromIsDefault();
+    // 1. Try to use the configured default category name if set
+    if (configuredDefaultCategoryName != null && 
!configuredDefaultCategoryName.trim().isEmpty()) {

Review Comment:
   My bad, it was `Strings.isNullOrEmpty()`. `StringUtils.isBlank()` is 
actually better, we don't need `isEmpty()` right? `isBlank()` would also check 
for `isEmpty()`.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@gobblin.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to