This is an automated email from the ASF dual-hosted git repository.

wuzhiguo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/bigtop-manager.git


The following commit(s) were added to refs/heads/main by this push:
     new 74e4efb  BIGTOP-4228: Fix build failure after optimized SQLBuilder 
class (#72)
74e4efb is described below

commit 74e4efbafa5271fbb84161f9414ea556d2432dcc
Author: Zhiguo Wu <[email protected]>
AuthorDate: Sat Sep 14 23:28:14 2024 +0800

    BIGTOP-4228: Fix build failure after optimized SQLBuilder class (#72)
---
 .../src/main/java/org/apache/bigtop/manager/dao/sql/SQLBuilder.java     | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/bigtop-manager-dao/src/main/java/org/apache/bigtop/manager/dao/sql/SQLBuilder.java
 
b/bigtop-manager-dao/src/main/java/org/apache/bigtop/manager/dao/sql/SQLBuilder.java
index 35b9101..08cfdcd 100644
--- 
a/bigtop-manager-dao/src/main/java/org/apache/bigtop/manager/dao/sql/SQLBuilder.java
+++ 
b/bigtop-manager-dao/src/main/java/org/apache/bigtop/manager/dao/sql/SQLBuilder.java
@@ -38,6 +38,7 @@ import java.util.Collection;
 import java.util.List;
 import java.util.Map;
 import java.util.Objects;
+import java.util.stream.Collectors;
 
 /**
  * Multiple data source support
@@ -299,6 +300,7 @@ public class SQLBuilder {
 
     public static <Condition> String findByCondition(
             TableMetaData tableMetaData, String databaseId, Condition 
condition) throws IllegalAccessException {
+        String tableName = tableMetaData.getTableName();
         log.info("databaseId: {}", databaseId);
         SQL sql = new SQL();
         switch (DBType.toType(databaseId)) {

Reply via email to